diff options
Diffstat (limited to 'src/include')
| -rw-r--r-- | src/include/ipxe/efi/efi_pci.h | 8 | ||||
| -rw-r--r-- | src/include/ipxe/pci_io.h | 6 |
2 files changed, 7 insertions, 7 deletions
diff --git a/src/include/ipxe/efi/efi_pci.h b/src/include/ipxe/efi/efi_pci.h index b280d801d..e06473d3e 100644 --- a/src/include/ipxe/efi/efi_pci.h +++ b/src/include/ipxe/efi/efi_pci.h @@ -33,14 +33,14 @@ extern int efipci_write ( struct pci_device *pci, unsigned long location, unsigned long value ); /** - * Determine maximum PCI bus number within system + * Determine number of PCI buses within system * - * @ret max_bus Maximum bus number + * @ret num_bus Number of buses */ static inline __always_inline int -PCIAPI_INLINE ( efi, pci_max_bus ) ( void ) { +PCIAPI_INLINE ( efi, pci_num_bus ) ( void ) { /* No way to work this out via EFI */ - return 0xff; + return 0x100; } /** diff --git a/src/include/ipxe/pci_io.h b/src/include/ipxe/pci_io.h index 118809072..dab5b7807 100644 --- a/src/include/ipxe/pci_io.h +++ b/src/include/ipxe/pci_io.h @@ -49,11 +49,11 @@ FILE_LICENCE ( GPL2_OR_LATER ); #include <bits/pci_io.h> /** - * Determine maximum PCI bus number within system + * Determine number of PCI buses within system * - * @ret max_bus Maximum bus number + * @ret num_bus Number of buses */ -int pci_max_bus ( void ); +int pci_num_bus ( void ); /** * Read byte from PCI configuration space |
