summaryrefslogtreecommitdiffstats
path: root/src/include
diff options
context:
space:
mode:
authorMichael Brown2025-11-24 21:27:53 +0100
committerMichael Brown2025-11-25 00:25:31 +0100
commitdfea3bbfad75aa742623beb4d88e2be086a4b8ee (patch)
treef04cae9203f88f7ae3c4fc176bb56aaef38c89fa /src/include
parent[pci] Allow probing permission to vary by range (diff)
downloadipxe-dfea3bbfad75aa742623beb4d88e2be086a4b8ee.tar.gz
ipxe-dfea3bbfad75aa742623beb4d88e2be086a4b8ee.tar.xz
ipxe-dfea3bbfad75aa742623beb4d88e2be086a4b8ee.zip
[pci] Use runtime selectable PCI I/O API for EFI cloud builds
On some systems (observed on an AWS m8g.medium instance in eu-west-2), the UEFI firmware omits the PCI host bridge drivers for all but the first PCI bus. The observable result is that any devices on other PCI buses (such as the ENA network device) are not enumerated by the UEFI firmware and are therefore unusable by iPXE. Support these systems by switching to using PCIAPI_CLOUD for EFI cloud builds, trying the EFI PCI I/O API first and falling back to direct access (via ECAM) for devices that the UEFI firmware has failed to enumerate itself. Signed-off-by: Michael Brown <mcb30@ipxe.org>
Diffstat (limited to 'src/include')
-rw-r--r--src/include/ipxe/pci_io.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/include/ipxe/pci_io.h b/src/include/ipxe/pci_io.h
index 0d32adf81..7ac09efb0 100644
--- a/src/include/ipxe/pci_io.h
+++ b/src/include/ipxe/pci_io.h
@@ -192,9 +192,10 @@ struct pci_api {
#endif
/* PCI runtime selectable API priorities */
-#define PCIAPI_PRIORITY_ECAM 01 /**< ACPI ECAM */
-#define PCIAPI_PRIORITY_PCBIOS 02 /**< PCI BIOS calls */
-#define PCIAPI_PRIORITY_DIRECT 03 /**< Direct Type 1 accesses */
+#define PCIAPI_PRIORITY_EFI 01 /**< EFI PCI I/O protocols */
+#define PCIAPI_PRIORITY_ECAM 02 /**< ACPI ECAM */
+#define PCIAPI_PRIORITY_PCBIOS 03 /**< PCI BIOS calls */
+#define PCIAPI_PRIORITY_DIRECT 04 /**< Direct Type 1 accesses */
/** Provide a runtime selectable PCI I/O API */
#define PROVIDE_PCIAPI_RUNTIME( subsys, priority ) \