from . import char, bus, ahci @"Devices & Peripherials" def hal(): """ Lunaix hardware asbtraction layer """ @"Devicetree for hardware discovery" def use_devicetree() -> bool: """ Decide whether to use Devicetree for platform resource topology sensing. On some architecture, Lunaix will fallback to use devicetree when ran out of options. For others, such as those designed with embedded support in mind, devicetree might be mandatory and perhaps the only way. """ return arch.val not in ["x86_64", "i386"] @"Maximum size of device tree blob (in KiB)" @readonly def dtb_maxsize() -> int: """ Maximum size for a firmware provided device tree blob """ require(use_devicetree) return 256