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