[pci] Replace pci_max_bus() with pci_num_bus()

Signed-off-by: Michael Brown <mcb30@ipxe.org>
This commit is contained in:
Michael Brown
2011-02-12 02:08:28 +00:00
parent f9b3fae8d4
commit abb5590b29
7 changed files with 19 additions and 19 deletions

View File

@@ -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;
}
/**

View File

@@ -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