[linux] Add missing pci_num_bus() stub

Signed-off-by: Michael Brown <mcb30@ipxe.org>
pull/310/head
Michael Brown 2021-03-02 18:02:21 +00:00
parent 3b8aff94bf
commit 8055d5c48b
1 changed files with 11 additions and 0 deletions

View 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
*