diff options
author | David Vrabel <david.vrabel@citrix.com> | 2012-03-22 14:26:46 +0000 |
---|---|---|
committer | David Vrabel <david.vrabel@citrix.com> | 2012-03-22 14:26:46 +0000 |
commit | e7df25ebdf8f302c440412c5eae3818a82dd5386 (patch) | |
tree | 6034c6881ee40adfc65d6a6f57d94ab7ec395987 /xen/include/xen/device_tree.h | |
parent | 9cf4a9a467171c8a2c3d97c2bfadb1bc8b15a3d6 (diff) | |
download | xen-e7df25ebdf8f302c440412c5eae3818a82dd5386.tar.gz xen-e7df25ebdf8f302c440412c5eae3818a82dd5386.tar.bz2 xen-e7df25ebdf8f302c440412c5eae3818a82dd5386.zip |
device tree: add device_tree_dump() to print a flat device tree
Add a device_tree_dump() function which prints to main structure and
properties names of a flat device tree (but not the properties values
yet).
This will be useful for debugging problems with the device tree
generated for dom0.
Signed-off-by: David Vrabel <david.vrabel@citrix.com>
Acked-by: Ian Campbell <ian.campbell@citrix.com>
Committed-by: Ian Campbell <ian.campbell@citrix.com>
Diffstat (limited to 'xen/include/xen/device_tree.h')
-rw-r--r-- | xen/include/xen/device_tree.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/xen/include/xen/device_tree.h b/xen/include/xen/device_tree.h index 505f3e326e..b91b39f352 100644 --- a/xen/include/xen/device_tree.h +++ b/xen/include/xen/device_tree.h @@ -41,5 +41,6 @@ paddr_t device_tree_get_xen_paddr(void); int device_tree_for_each_node(const void *fdt, device_tree_node_func func, void *data); +void device_tree_dump(const void *fdt); #endif |