device_tree.h 947 B

1234567891011121314151617181920212223242526
  1. /*
  2. * Header with function prototypes to help device tree manipulation using
  3. * libfdt. It also provides functions to read entries from device tree proc
  4. * interface.
  5. *
  6. * Copyright 2008 IBM Corporation.
  7. * Authors: Jerone Young <jyoung5@us.ibm.com>
  8. * Hollis Blanchard <hollisb@us.ibm.com>
  9. *
  10. * This work is licensed under the GNU GPL license version 2 or later.
  11. *
  12. */
  13. #ifndef __DEVICE_TREE_H__
  14. #define __DEVICE_TREE_H__
  15. void *load_device_tree(const char *filename_path, void *load_addr);
  16. int qemu_devtree_setprop(void *fdt, const char *node_path,
  17. const char *property, uint32_t *val_array, int size);
  18. int qemu_devtree_setprop_cell(void *fdt, const char *node_path,
  19. const char *property, uint32_t val);
  20. int qemu_devtree_setprop_string(void *fdt, const char *node_path,
  21. const char *property, const char *string);
  22. #endif /* __DEVICE_TREE_H__ */