Rewrite the lunabuild toolchain with enhanced feature (#60)
[lunaix-os.git] / lunaix-os / hal / bus / LConfig
1
2 @"Buses & Interconnects"
3 @(parent := hal)
4 def bus_if():
5     """ System/platform bus interface """
6
7     @"PCI"
8     def pci_enable() -> bool:
9         """ Peripheral Component Interconnect (PCI) Bus """
10         return True
11
12     @"PCI Express"
13     def pcie_ext() -> bool:
14         """ Enable support of PCI-Express extension """
15         require (pci_enable)
16
17         return False
18
19     @"Use PMIO for PCI"
20     def pci_pmio() -> bool:
21         """ Use port-mapped I/O interface for controlling PCI """
22         require (not pcie_ext and pci_enable)
23         require (arch_x86)
24
25         return True