mirror of
https://github.com/ipxe/ipxe
synced 2025-12-22 13:00:39 +03:00
[pci] Replace pci_max_bus() with pci_num_bus()
Signed-off-by: Michael Brown <mcb30@ipxe.org>
This commit is contained in:
@@ -38,7 +38,7 @@ void pcidirect_prepare ( struct pci_device *pci, int where ) {
|
||||
PCIDIRECT_CONFIG_ADDRESS );
|
||||
}
|
||||
|
||||
PROVIDE_PCIAPI_INLINE ( direct, pci_max_bus );
|
||||
PROVIDE_PCIAPI_INLINE ( direct, pci_num_bus );
|
||||
PROVIDE_PCIAPI_INLINE ( direct, pci_read_config_byte );
|
||||
PROVIDE_PCIAPI_INLINE ( direct, pci_read_config_word );
|
||||
PROVIDE_PCIAPI_INLINE ( direct, pci_read_config_dword );
|
||||
|
||||
@@ -26,14 +26,14 @@ struct pci_device;
|
||||
extern void pcidirect_prepare ( struct pci_device *pci, int where );
|
||||
|
||||
/**
|
||||
* 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 ( direct, pci_max_bus ) ( void ) {
|
||||
PCIAPI_INLINE ( direct, pci_num_bus ) ( void ) {
|
||||
/* No way to work this out via Type 1 accesses */
|
||||
return 0xff;
|
||||
return 0x100;
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user