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)
Wed, Jan 22, 11:13 AM
Unknown Object (File)
Dec 24 2024, 12:59 PM
Unknown Object (File)
Dec 15 2024, 9:57 AM
Unknown Object (File)
Dec 9 2024, 12:13 PM
Unknown Object (File)
Dec 6 2024, 9:39 PM
Unknown Object (File)
Oct 13 2024, 10:06 PM
Unknown Object (File)
Sep 30 2024, 1:43 PM
Unknown Object (File)
Sep 30 2024, 1:32 PM
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 Not Applicable
Unit
Tests Not Applicable

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 ↗(On Diff #111910)

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