]> git.proxmox.com Git - mirror_edk2.git/commit
ArmPkg: implement CpuIo2 protocol driver specific for PCI
authorArd Biesheuvel <ard.biesheuvel@linaro.org>
Wed, 27 Apr 2016 12:52:05 +0000 (14:52 +0200)
committerArd Biesheuvel <ard.biesheuvel@linaro.org>
Fri, 29 Apr 2016 16:04:25 +0000 (18:04 +0200)
commit3dece14502b972c6b68525c1d7dba9088611da92
treea2f11339ff91171cfd115cdc619a8d4bc9557bf9
parentd7c06eb030c928d7f1364899e37d6449c13bcbd3
ArmPkg: implement CpuIo2 protocol driver specific for PCI

The CpuIo2 protocol is required by the generic PciHostBridgeDxe driver,
which relies on it to back its own I/O and MMIO operations.

Since ARM has no native I/O port equivalent, such accesses can only
originate from PCI drivers, and the PCI I/O space is translated to MMIO
in this case.

So we can implement this protocol using MMIO operations only, and take
the PCI I/O translation offset into account when performing I/O port
accesses.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>
Reviewed-by: Leif Lindholm <leif.lindholm@linaro.org>
ArmPkg/Drivers/ArmPciCpuIo2Dxe/ArmPciCpuIo2Dxe.c [new file with mode: 0644]
ArmPkg/Drivers/ArmPciCpuIo2Dxe/ArmPciCpuIo2Dxe.inf [new file with mode: 0644]