aurel32 | f652e6a | 2008-12-16 10:43:48 +0000 | [diff] [blame] | 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 | |
| 14 | #ifndef __DEVICE_TREE_H__ |
| 15 | #define __DEVICE_TREE_H__ |
| 16 | |
pbrook | 7ec632b | 2009-04-10 16:23:59 +0000 | [diff] [blame] | 17 | void *load_device_tree(const char *filename_path, int *sizep); |
aurel32 | f652e6a | 2008-12-16 10:43:48 +0000 | [diff] [blame] | 18 | |
| 19 | int qemu_devtree_setprop(void *fdt, const char *node_path, |
David Gibson | c489749 | 2011-04-01 15:15:09 +1100 | [diff] [blame] | 20 | const char *property, void *val_array, int size); |
aurel32 | f652e6a | 2008-12-16 10:43:48 +0000 | [diff] [blame] | 21 | int qemu_devtree_setprop_cell(void *fdt, const char *node_path, |
| 22 | const char *property, uint32_t val); |
| 23 | int qemu_devtree_setprop_string(void *fdt, const char *node_path, |
| 24 | const char *property, const char *string); |
| 25 | |
| 26 | #endif /* __DEVICE_TREE_H__ */ |