ofw: add BUS_GET_DEVICE_PATH interface to openfirm/fdt, somewhat incomplete.

This add BUS_GET_DEVICE_PATH interface,
which shows device tree of openfirm/fdt.

In qemu-system-arm64 with "virt" machine with device-tree firmware,
% devctl getpath OFW cpu0

Reviewed by: andrew
Differential Revision: https://reviews.freebsd.org/D37031
This commit is contained in:
Takanori Watanabe
2022-10-18 15:08:53 +09:00
parent 469ad86031
commit 7b5d62bb73
7 changed files with 22 additions and 0 deletions
+1
View File
@@ -90,6 +90,7 @@ static device_method_t gic_fdt_methods[] = {
/* Bus interface */
DEVMETHOD(bus_get_resource_list,gic_fdt_get_resource_list),
DEVMETHOD(bus_get_device_path, ofw_bus_gen_get_device_path),
/* ofw_bus interface */
DEVMETHOD(ofw_bus_get_devinfo, gic_ofw_get_devinfo),