]> git.proxmox.com Git - mirror_edk2.git/commit
MdeModulePkg/PciBus: convert host address to device address
authorHeyi Guo <heyi.guo@linaro.org>
Thu, 8 Feb 2018 03:13:27 +0000 (11:13 +0800)
committerArd Biesheuvel <ard.biesheuvel@linaro.org>
Thu, 15 Mar 2018 08:26:05 +0000 (08:26 +0000)
commitc03860d052335be405d45d9b6bb19de0d4693951
tree25e6176234cb9f8c0266c01fd086f976a5217f9d
parent74d0a339b8324a0533c7d444ef247a025409ec3a
MdeModulePkg/PciBus: convert host address to device address

According to UEFI spec 2.7, PciRootBridgeIo->Configuration() should
return host address (CPU view ddress) rather than device address
(PCI view address), so in function GetMmioAddressTranslationOffset we
need to convert the range to device address before comparing.

And device address = host address + translation offset.

Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Heyi Guo <heyi.guo@linaro.org>
Signed-off-by: Yi Li <phoenix.liyi@huawei.com>
Reviewed-by: Ni Ruiyu <ruiyu.ni@intel.com>
Reviewed-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>
MdeModulePkg/Bus/Pci/PciBusDxe/PciIo.c