diff options
author | Michael Brown <mcb30@ipxe.org> | 2021-03-02 18:02:21 +0000 |
---|---|---|
committer | Michael Brown <mcb30@ipxe.org> | 2021-03-02 18:02:33 +0000 |
commit | 8055d5c48b4194f24c1705fd6a15e7125e8ef4c5 (patch) | |
tree | 5f63e8979bb1d936630f8b6dc8a3a09f2ad675be | |
parent | 3b8aff94bfc7932cfed7198d48de6bc273fe951d (diff) | |
download | ipxe-8055d5c48b4194f24c1705fd6a15e7125e8ef4c5.tar.gz |
[linux] Add missing pci_num_bus() stub
Signed-off-by: Michael Brown <mcb30@ipxe.org>
-rw-r--r-- | src/include/ipxe/linux/linux_pci.h | 11 |
1 files changed, 11 insertions, 0 deletions
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 @@ -23,6 +23,17 @@ 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 * * @v pci PCI device |