From: Michael Brown Date: Tue, 2 Mar 2021 18:02:21 +0000 (+0000) Subject: [linux] Add missing pci_num_bus() stub X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8055d5c48b4194f24c1705fd6a15e7125e8ef4c5;p=thirdparty%2Fipxe.git [linux] Add missing pci_num_bus() stub Signed-off-by: Michael Brown --- 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 @@ -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 *