]> git.ipfire.org Git - thirdparty/ipxe.git/commit
[efi] Use address offset as reported by EFI_PCI_ROOT_BRIDGE_IO_PROTOCOL 146/head
authorMichael Brown <mcb30@ipxe.org>
Thu, 24 Sep 2020 20:41:35 +0000 (21:41 +0100)
committerMichael Brown <mcb30@ipxe.org>
Fri, 25 Sep 2020 13:20:18 +0000 (14:20 +0100)
commit27e886c67b63b9a381f87238ed7a856775199fd9
treeed3d5f0028da8f1d40bc25d7d672b9a97631e3d2
parenteecb75ba4809bd5d3e6d63413a45c5fccbda2bc2
[efi] Use address offset as reported by EFI_PCI_ROOT_BRIDGE_IO_PROTOCOL

Retrieve the address windows and translation offsets for the
appropriate PCI root bridge and use them to adjust the PCI BAR address
prior to calling ioremap().

Originally-implemented-by: Pankaj Bansal <pankaj.bansal@nxp.com>
Signed-off-by: Michael Brown <mcb30@ipxe.org>
src/include/ipxe/acpi.h
src/include/ipxe/efi/efi_pci_api.h
src/interface/efi/efi_pci.c