aboutsummaryrefslogtreecommitdiff
path: root/src/include/ipxe/efi
diff options
context:
space:
mode:
authorMichael Brown <mcb30@ipxe.org>2020-09-24 21:41:35 +0100
committerMichael Brown <mcb30@ipxe.org>2020-09-25 14:20:18 +0100
commit27e886c67b63b9a381f87238ed7a856775199fd9 (patch)
treeed3d5f0028da8f1d40bc25d7d672b9a97631e3d2 /src/include/ipxe/efi
parenteecb75ba4809bd5d3e6d63413a45c5fccbda2bc2 (diff)
downloadipxe-27e886c67b63b9a381f87238ed7a856775199fd9.zip
ipxe-27e886c67b63b9a381f87238ed7a856775199fd9.tar.gz
ipxe-27e886c67b63b9a381f87238ed7a856775199fd9.tar.bz2
[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>
Diffstat (limited to 'src/include/ipxe/efi')
-rw-r--r--src/include/ipxe/efi/efi_pci_api.h13
1 files changed, 0 insertions, 13 deletions
diff --git a/src/include/ipxe/efi/efi_pci_api.h b/src/include/ipxe/efi/efi_pci_api.h
index df28cef..887d5ee 100644
--- a/src/include/ipxe/efi/efi_pci_api.h
+++ b/src/include/ipxe/efi/efi_pci_api.h
@@ -148,17 +148,4 @@ PCIAPI_INLINE ( efi, pci_write_config_dword ) ( struct pci_device *pci,
value );
}
-/**
- * Map PCI bus address as an I/O address
- *
- * @v bus_addr PCI bus address
- * @v len Length of region
- * @ret io_addr I/O address, or NULL on error
- */
-static inline __always_inline void *
-PCIAPI_INLINE ( efi, pci_ioremap ) ( struct pci_device *pci __unused,
- unsigned long bus_addr, size_t len ) {
- return ioremap ( bus_addr, len );
-}
-
#endif /* _IPXE_EFI_PCI_API_H */