]> git.ipfire.org Git - thirdparty/ipxe.git/commit
[pci] Separate permission to probe buses from bus:dev.fn range discovery
authorMichael Brown <mcb30@ipxe.org>
Thu, 15 Aug 2024 07:46:41 +0000 (08:46 +0100)
committerMichael Brown <mcb30@ipxe.org>
Thu, 15 Aug 2024 08:31:14 +0000 (09:31 +0100)
commit7c82ff0b6b12437bfc25d01d52308fc6fe2e1311
treec62f116dedfe6b5a590ac77beee26ec882db335e
parent9d9465b140cf59750f97995c501d054d2543c29a
[pci] Separate permission to probe buses from bus:dev.fn range discovery

The UEFI device model requires us to not probe the PCI bus directly,
but instead to wait to be offered the opportunity to drive devices via
our driver service binding handle.

We currently inhibit PCI bus probing by having pci_discover() return
an empty range when using the EFI PCI I/O API.  This has the unwanted
side effect that scanning the bus manually using the "pciscan" command
will also fail to discover any devices.

Separate out the concept of being allowed to probe PCI buses from the
mechanism for discovering PCI bus:dev.fn address ranges, so that this
limitation may be removed.

Signed-off-by: Michael Brown <mcb30@ipxe.org>
14 files changed:
src/arch/x86/core/pcidirect.c
src/arch/x86/include/ipxe/pcibios.h
src/arch/x86/include/ipxe/pcicloud.h
src/arch/x86/include/ipxe/pcidirect.h
src/arch/x86/interface/pcbios/pcibios.c
src/arch/x86/interface/pcbios/pcicloud.c
src/drivers/bus/ecam.c
src/drivers/bus/pci.c
src/include/ipxe/ecam.h
src/include/ipxe/efi/efi_pci_api.h
src/include/ipxe/linux/linux_pci.h
src/include/ipxe/pci_io.h
src/interface/efi/efi_pci.c
src/interface/linux/linux_pci.c