From abb5590b297076f071b72f347d8d3204163e097b Mon Sep 17 00:00:00 2001 From: Michael Brown Date: Sat, 12 Feb 2011 02:08:28 +0000 Subject: [pci] Replace pci_max_bus() with pci_num_bus() Signed-off-by: Michael Brown --- src/include/ipxe/efi/efi_pci.h | 8 ++++---- src/include/ipxe/pci_io.h | 6 +++--- 2 files changed, 7 insertions(+), 7 deletions(-) (limited to 'src/include/ipxe') 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 /** - * 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 -- cgit v1.2.3-55-g7522