Page MenuHomeFreeBSD

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

Authored by takawata on Oct 18 2022, 6:26 AM.
Tags
None
Referenced Files
Unknown Object (File)
Sun, Nov 23, 6:08 PM
Unknown Object (File)
Thu, Nov 20, 12:48 AM
Unknown Object (File)
Sat, Nov 15, 8:30 PM
Unknown Object (File)
Thu, Nov 13, 10:52 PM
Unknown Object (File)
Nov 10 2025, 1:56 PM
Unknown Object (File)
Nov 2 2025, 5:36 AM
Unknown Object (File)
Oct 30 2025, 1:35 AM
Unknown Object (File)
Oct 16 2025, 3:19 AM
Subscribers

Details

Summary

This add BUS_GET_DEVICE_PATH allow device tree of openfirm/fdt.

Test Plan

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

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 47868
Build 44755: arc lint + arc unit

Event Timeline

It might be better to name the selector "OFW" to be consistant with the directory name, ofwdump, etc.

sys/arm/arm/gic.c
1215

This should be in gic_fdt.c

sys/dev/ofw/ofw_bus_subr.c
113

Extra space before strcmp and "OF" should be BUS_LOCATOR_OF and defined in sys/bus.h

120

return (bus_generic_get_device_path(...));

This revision is now accepted and ready to land.Oct 18 2022, 7:14 AM