device_tree: introduce load_device_tree_from_sysfs
commit60e43e987c3d188855dc7e95ff4979be78db3574
authorEric Auger <eric.auger@linaro.org>
Fri, 19 Feb 2016 16:42:29 +0000 (19 09:42 -0700)
committerAlex Williamson <alex.williamson@redhat.com>
Fri, 19 Feb 2016 16:42:29 +0000 (19 09:42 -0700)
tree3df464614d85b0c721c0b84af71721dff9faa4f0
parent62d9551247a2db3937d99e5495bc36b32abb41be
device_tree: introduce load_device_tree_from_sysfs

This function returns the host device tree blob from sysfs
(/proc/device-tree). It uses a recursive function inspired
from dtc read_fstree.

Signed-off-by: Eric Auger <eric.auger@linaro.org>
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Alex Williamson <alex.williamson@redhat.com>
device_tree.c
include/sysemu/device_tree.h