diff options
| author | Michael Brown | 2020-09-24 22:45:03 +0200 |
|---|---|---|
| committer | Michael Brown | 2020-09-25 15:17:07 +0200 |
| commit | eecb75ba4809bd5d3e6d63413a45c5fccbda2bc2 (patch) | |
| tree | dcb9379c726dd4a02566c6866803fa45d7ee0649 /src/drivers/bus | |
| parent | [pci] Define pci_ioremap() for mapping PCI bus addresses (diff) | |
| download | ipxe-eecb75ba4809bd5d3e6d63413a45c5fccbda2bc2.tar.gz ipxe-eecb75ba4809bd5d3e6d63413a45c5fccbda2bc2.tar.xz ipxe-eecb75ba4809bd5d3e6d63413a45c5fccbda2bc2.zip | |
[pci] Update drivers to use pci_ioremap()
Signed-off-by: Michael Brown <mcb30@ipxe.org>
Diffstat (limited to 'src/drivers/bus')
| -rw-r--r-- | src/drivers/bus/pcimsix.c | 2 | ||||
| -rw-r--r-- | src/drivers/bus/virtio-pci.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/drivers/bus/pcimsix.c b/src/drivers/bus/pcimsix.c index 80893c418..eb0450d91 100644 --- a/src/drivers/bus/pcimsix.c +++ b/src/drivers/bus/pcimsix.c @@ -84,7 +84,7 @@ static void * pci_msix_ioremap ( struct pci_device *pci, struct pci_msix *msix, msix, pci_msix_name ( cfg ), base, bar, offset ); /* Map BAR portion */ - io = ioremap ( ( start + offset ), PCI_MSIX_LEN ); + io = pci_ioremap ( pci, ( start + offset ), PCI_MSIX_LEN ); if ( ! io ) { DBGC ( msix, "MSI-X %p %s could not map %#08lx\n", msix, pci_msix_name ( cfg ), base ); diff --git a/src/drivers/bus/virtio-pci.c b/src/drivers/bus/virtio-pci.c index 402bf4f12..5d2d62750 100644 --- a/src/drivers/bus/virtio-pci.c +++ b/src/drivers/bus/virtio-pci.c @@ -321,7 +321,7 @@ int virtio_pci_map_capability(struct pci_device *pci, int cap, size_t minlen, region->flags = VIRTIO_PCI_REGION_PORT; } else { /* Region mapped into memory space */ - region->base = ioremap(base + offset, length); + region->base = pci_ioremap(pci, base + offset, length); region->flags = VIRTIO_PCI_REGION_MEMORY; } } |
