root / device_tree.h @ e3e87df4
History | View | Annotate | Download (1 kB)
1 | f652e6af | aurel32 | /*
|
---|---|---|---|
2 | f652e6af | aurel32 | * Header with function prototypes to help device tree manipulation using
|
3 | f652e6af | aurel32 | * libfdt. It also provides functions to read entries from device tree proc
|
4 | f652e6af | aurel32 | * interface.
|
5 | f652e6af | aurel32 | *
|
6 | f652e6af | aurel32 | * Copyright 2008 IBM Corporation.
|
7 | f652e6af | aurel32 | * Authors: Jerone Young <jyoung5@us.ibm.com>
|
8 | f652e6af | aurel32 | * Hollis Blanchard <hollisb@us.ibm.com>
|
9 | f652e6af | aurel32 | *
|
10 | f652e6af | aurel32 | * This work is licensed under the GNU GPL license version 2 or later.
|
11 | f652e6af | aurel32 | *
|
12 | f652e6af | aurel32 | */
|
13 | f652e6af | aurel32 | |
14 | f652e6af | aurel32 | #ifndef __DEVICE_TREE_H__
|
15 | f652e6af | aurel32 | #define __DEVICE_TREE_H__
|
16 | f652e6af | aurel32 | |
17 | 7ec632b4 | pbrook | void *load_device_tree(const char *filename_path, int *sizep); |
18 | f652e6af | aurel32 | |
19 | f652e6af | aurel32 | int qemu_devtree_setprop(void *fdt, const char *node_path, |
20 | c4897490 | David Gibson | const char *property, void *val_array, int size); |
21 | f652e6af | aurel32 | int qemu_devtree_setprop_cell(void *fdt, const char *node_path, |
22 | f652e6af | aurel32 | const char *property, uint32_t val); |
23 | f652e6af | aurel32 | int qemu_devtree_setprop_string(void *fdt, const char *node_path, |
24 | f652e6af | aurel32 | const char *property, const char *string); |
25 | d69a8e63 | Alexander Graf | int qemu_devtree_nop_node(void *fdt, const char *node_path); |
26 | 80ad7816 | Alexander Graf | int qemu_devtree_add_subnode(void *fdt, const char *name); |
27 | f652e6af | aurel32 | |
28 | f652e6af | aurel32 | #endif /* __DEVICE_TREE_H__ */ |