diff options
author | Alexander Graf <agraf@suse.de> | 2012-05-17 15:33:54 +0200 |
---|---|---|
committer | Alexander Graf <agraf@suse.de> | 2012-06-24 01:04:46 +0200 |
commit | ce36252cc1711a5e222ed68e72235088aec2529d (patch) | |
tree | d8bed75b452a6a9fae70c465196f01285a84d113 /device_tree.h | |
parent | 7d5fd1089c36391ffc53a694101f441ab8cbbc05 (diff) | |
download | qemu-ce36252cc1711a5e222ed68e72235088aec2529d.tar.gz qemu-ce36252cc1711a5e222ed68e72235088aec2529d.tar.bz2 qemu-ce36252cc1711a5e222ed68e72235088aec2529d.zip |
dt: add helper for empty dt creation
We want to get rid of the concept of loading an external device tree and instead
generate our own. However, to do this we need to also create a device tree
template programatically.
This patch adds a helper to create an empty device tree in memory.
Signed-off-by: Alexander Graf <agraf@suse.de>
Reviewed-by: Peter Crosthwaite <peter.crosthwaite@petalogix.com>
Diffstat (limited to 'device_tree.h')
-rw-r--r-- | device_tree.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/device_tree.h b/device_tree.h index 36fc9dbede..5f76f40eeb 100644 --- a/device_tree.h +++ b/device_tree.h @@ -14,6 +14,7 @@ #ifndef __DEVICE_TREE_H__ #define __DEVICE_TREE_H__ +void *create_device_tree(int *sizep); void *load_device_tree(const char *filename_path, int *sizep); int qemu_devtree_setprop(void *fdt, const char *node_path, |