mirror of https://github.com/ipxe/ipxe.git
[linux] Add missing pci_num_bus() stub
Signed-off-by: Michael Brown <mcb30@ipxe.org>pull/310/head
parent
3b8aff94bf
commit
8055d5c48b
|
@ -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
|
||||
*
|
||||
|
|
Loading…
Reference in New Issue