mirror of
https://github.com/ipxe/ipxe
synced 2026-03-16 03:02:07 +03:00
[linux] Add missing pci_num_bus() stub
Signed-off-by: Michael Brown <mcb30@ipxe.org>
This commit is contained in:
@@ -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,
|
extern int linux_pci_write ( struct pci_device *pci, unsigned long where,
|
||||||
unsigned long value, size_t len );
|
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
|
* Read byte from PCI configuration space
|
||||||
*
|
*
|
||||||
|
|||||||
Reference in New Issue
Block a user