mirror of
https://github.com/ipxe/ipxe
synced 2025-12-27 01:52:39 +03:00
[pci] Generalise pci_num_bus() to pci_discover()
Allow pci_find_next() to discover devices beyond the first PCI segment, by generalising pci_num_bus() (which implicitly assumes that there is only a single PCI segment) with pci_discover() (which has the ability to return an arbitrary contiguous chunk of PCI bus:dev.fn address space). Signed-off-by: Michael Brown <mcb30@ipxe.org>
This commit is contained in:
@@ -362,7 +362,7 @@ void * efipci_ioremap ( struct pci_device *pci, unsigned long bus_addr,
|
||||
return ioremap ( bus_addr, len );
|
||||
}
|
||||
|
||||
PROVIDE_PCIAPI_INLINE ( efi, pci_num_bus );
|
||||
PROVIDE_PCIAPI_INLINE ( efi, pci_discover );
|
||||
PROVIDE_PCIAPI_INLINE ( efi, pci_read_config_byte );
|
||||
PROVIDE_PCIAPI_INLINE ( efi, pci_read_config_word );
|
||||
PROVIDE_PCIAPI_INLINE ( efi, pci_read_config_dword );
|
||||
|
||||
@@ -188,7 +188,7 @@ int linux_pci_write ( struct pci_device *pci, unsigned long where,
|
||||
return rc;
|
||||
}
|
||||
|
||||
PROVIDE_PCIAPI_INLINE ( linux, pci_num_bus );
|
||||
PROVIDE_PCIAPI_INLINE ( linux, pci_discover );
|
||||
PROVIDE_PCIAPI_INLINE ( linux, pci_read_config_byte );
|
||||
PROVIDE_PCIAPI_INLINE ( linux, pci_read_config_word );
|
||||
PROVIDE_PCIAPI_INLINE ( linux, pci_read_config_dword );
|
||||
|
||||
Reference in New Issue
Block a user