@"Buses & Interconnects" @(parent := hal) def bus_if(): """ System/platform bus interface """ @"PCI" def pci_enable() -> bool: """ Peripheral Component Interconnect (PCI) Bus """ return True @"PCI Express" def pcie_ext() -> bool: """ Enable support of PCI-Express extension """ require (pci_enable) return False @"Use PMIO for PCI" def pci_pmio() -> bool: """ Use port-mapped I/O interface for controlling PCI """ require (not pcie_ext and pci_enable) require (arch_x86) return True