]> git.ipfire.org Git - thirdparty/ipxe.git/commit
[pci] Generalise pci_num_bus() to pci_discover()
authorMichael Brown <mcb30@ipxe.org>
Thu, 15 Sep 2022 15:47:04 +0000 (16:47 +0100)
committerMichael Brown <mcb30@ipxe.org>
Thu, 15 Sep 2022 15:49:47 +0000 (16:49 +0100)
commitff228f745c15594291fd3cbf3c02af27753a3885
tree20fcd06b1407db029e1969095c9f4a449451ba64
parent56b30364c5db6367279ffe88929f286f15680b40
[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>
src/arch/x86/core/pcidirect.c
src/arch/x86/include/ipxe/pcidirect.h
src/arch/x86/interface/pcbios/pcibios.c
src/drivers/bus/pci.c
src/include/ipxe/efi/efi_pci_api.h
src/include/ipxe/linux/linux_pci.h
src/include/ipxe/pci.h
src/include/ipxe/pci_io.h
src/interface/efi/efi_pci.c
src/interface/linux/linux_pci.c