aboutsummaryrefslogtreecommitdiffstats
path: root/src/include/ipxe/linux/linux_pci.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/include/ipxe/linux/linux_pci.h')
-rw-r--r--src/include/ipxe/linux/linux_pci.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/include/ipxe/linux/linux_pci.h b/src/include/ipxe/linux/linux_pci.h
index 76ed8f252..de42f766b 100644
--- a/src/include/ipxe/linux/linux_pci.h
+++ b/src/include/ipxe/linux/linux_pci.h
@@ -23,6 +23,17 @@ extern int linux_pci_write ( struct pci_device *pci, unsigned long where,
unsigned long value, size_t len );
/**
+ * Determine number of PCI buses within system
+ *
+ * @ret num_bus Number of buses
+ */
+static inline __always_inline int
+PCIAPI_INLINE ( linux, pci_num_bus ) ( void ) {
+ /* Assume all buses may exist */
+ return 0x100;
+}
+
+/**
* Read byte from PCI configuration space
*
* @v pci PCI device