mirror of
https://github.com/ipxe/ipxe
synced 2025-12-25 09:01:24 +03:00
[pci] Replace pci_max_bus() with pci_num_bus()
Signed-off-by: Michael Brown <mcb30@ipxe.org>
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user