root / device_tree.h @ a8a358bf
History | View | Annotate | Download (942 Bytes)
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 | f652e6af | aurel32 | const char *property, uint32_t *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 | f652e6af | aurel32 | |
26 | f652e6af | aurel32 | #endif /* __DEVICE_TREE_H__ */ |