danos/system/devices/device-tree.zig

17 lines
783 B
Zig

//! Device-tree (Flattened Device Tree / FDT) discovery backend — stub.
//!
//! This is the second backend the platform facade dispatches to, for machines
//! that describe hardware with a device-tree blob instead of ACPI (typically
//! ARM). It is intentionally unimplemented: the bootloader has no DTB handoff
//! field yet, so this path is currently unreachable. It exists so the facade
//! already routes to a backend rather than hard-coding ACPI — wiring the FDT
//! parser in later is a local change here, not an architectural one.
const device_model = @import("device-model.zig");
/// Populate `device_tree` from a device-tree blob. Not implemented yet.
pub fn discover(device_tree: *device_model.DeviceTree) !void {
_ = device_tree;
return error.Unsupported;
}