]> git.ipfire.org Git - thirdparty/ipxe.git/commitdiff
[linux] Add missing pci_num_bus() stub
authorMichael Brown <mcb30@ipxe.org>
Tue, 2 Mar 2021 18:02:21 +0000 (18:02 +0000)
committerMichael Brown <mcb30@ipxe.org>
Tue, 2 Mar 2021 18:02:33 +0000 (18:02 +0000)
Signed-off-by: Michael Brown <mcb30@ipxe.org>
src/include/ipxe/linux/linux_pci.h

index 76ed8f252b273444486da0c75f6fd6d406a99c19..de42f766b1c22d760123326e88fcedf679eab10c 100644 (file)
@@ -22,6 +22,17 @@ extern int linux_pci_read ( struct pci_device *pci, unsigned long where,
 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
  *