aboutsummaryrefslogtreecommitdiff
path: root/device_tree.h
diff options
context:
space:
mode:
authorPeter Maydell <peter.maydell@linaro.org>2012-07-20 13:34:50 +0100
committerPeter Maydell <peter.maydell@linaro.org>2012-07-20 13:34:50 +0100
commitf0aa713f65e83ff39882b6c21d4b83500bf5ae80 (patch)
tree7e777dd9cb0e68629f8361b1b4d035c66922a502 /device_tree.h
parent3871481c0a3f64f25563a5a246c188acdc01ee49 (diff)
device_tree: Add support for reading device tree properties
Add support for reading device tree properties (both generic and single-cell ones) to QEMU's convenience wrapper layer. Signed-off-by: Peter Maydell <peter.maydell@linaro.org> Reviewed-by: Peter A. G. Crosthwaite <peter.crosthwaite@petalogix.com>
Diffstat (limited to 'device_tree.h')
-rw-r--r--device_tree.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/device_tree.h b/device_tree.h
index 2244270b2d..f7a3e6cfc5 100644
--- a/device_tree.h
+++ b/device_tree.h
@@ -28,6 +28,10 @@ int qemu_devtree_setprop_string(void *fdt, const char *node_path,
int qemu_devtree_setprop_phandle(void *fdt, const char *node_path,
const char *property,
const char *target_node_path);
+const void *qemu_devtree_getprop(void *fdt, const char *node_path,
+ const char *property, int *lenp);
+uint32_t qemu_devtree_getprop_cell(void *fdt, const char *node_path,
+ const char *property);
uint32_t qemu_devtree_get_phandle(void *fdt, const char *path);
uint32_t qemu_devtree_alloc_phandle(void *fdt);
int qemu_devtree_nop_node(void *fdt, const char *node_path);