]> git.proxmox.com Git - mirror_edk2.git/commit - MdeModulePkg/Include/Library/PciHostBridgeLib.h
MdeModulePkg/PciHostBridgeLib.h: add address Translation
authorHeyi Guo <heyi.guo@linaro.org>
Tue, 27 Feb 2018 11:53:34 +0000 (19:53 +0800)
committerArd Biesheuvel <ard.biesheuvel@linaro.org>
Thu, 15 Mar 2018 08:26:05 +0000 (08:26 +0000)
commit5bb1866e5383f3f54252d9838c2dd53759ffc4af
tree0480b9e7c34582c51f5a3b4c98b070ce1ce1b6cc
parente33305ea6c6a7c9946ca4ec60aa270764a91ab8f
MdeModulePkg/PciHostBridgeLib.h: add address Translation

Add Translation field to PCI_ROOT_BRIDGE_APERTURE. Translation is used
to represent the difference between device address and host address,
if they are not the same on some platforms.

In UEFI 2.7, "Address Translation Offset" is "Offset to apply to the
Starting address to convert it to a PCI address".  This means:

  Translation = device address - host address

So we also use the above calculation for this Translation field to
keep consistent.

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/Include/Library/PciHostBridgeLib.h