summaryrefslogtreecommitdiffstats
path: root/src/include
diff options
context:
space:
mode:
authorMichael Brown2021-03-02 19:02:21 +0100
committerMichael Brown2021-03-02 19:02:33 +0100
commit8055d5c48b4194f24c1705fd6a15e7125e8ef4c5 (patch)
tree5f63e8979bb1d936630f8b6dc8a3a09f2ad675be /src/include
parent[build] Fix building on older versions of gcc (diff)
downloadipxe-8055d5c48b4194f24c1705fd6a15e7125e8ef4c5.tar.gz
ipxe-8055d5c48b4194f24c1705fd6a15e7125e8ef4c5.tar.xz
ipxe-8055d5c48b4194f24c1705fd6a15e7125e8ef4c5.zip
[linux] Add missing pci_num_bus() stub
Signed-off-by: Michael Brown <mcb30@ipxe.org>
Diffstat (limited to 'src/include')
-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