1 from . import char, bus, ahci
3 @"Devices & Peripherials"
5 """ Lunaix hardware asbtraction layer """
7 @"Devicetree for hardware discovery"
8 def use_devicetree() -> bool:
10 Decide whether to use Devicetree for platform
11 resource topology sensing.
13 On some architecture, Lunaix will fallback to use
14 devicetree when ran out of options. For others, such
15 as those designed with embedded support in mind,
16 devicetree might be mandatory and perhaps the only
19 require (not arch_x86)
23 @"Maximum size of device tree blob (in KiB)"
25 def dtb_maxsize() -> int:
27 Maximum size for a firmware provided device tree blob
29 require (use_devicetree)
34 def use_graphic_dev() -> int:
36 Support of graphical devices and display protocol