]> git.proxmox.com Git - mirror_edk2.git/commit - MdeModulePkg/Bus/Pci/PciBusDxe/PciIo.c
MdeModuelPkg/PciBus: Return AddrTranslationOffset in GetBarAttributes
authorRuiyu Ni <ruiyu.ni@intel.com>
Wed, 17 Feb 2016 10:06:36 +0000 (18:06 +0800)
committerRuiyu Ni <ruiyu.ni@intel.com>
Mon, 29 Feb 2016 02:19:57 +0000 (10:19 +0800)
commit7b0a1ead7d2efa7f9eae4c2b254ff154d9c5f74f
tree2145934f1af7e9fa030d4b44c7bfc1a36b431404
parente90f51a822c319b0e36bf55e260684239da325b4
MdeModuelPkg/PciBus: Return AddrTranslationOffset in GetBarAttributes

Some platform doesn't use CPU(HOST)/Device 1:1 mapping for PCI Bus.
But PCI IO doesn't have interface to tell caller (device driver)
whether the address returned by GetBarAttributes() is HOST address
or device address.
UEFI Spec 2.6 addresses this issue by clarifying the address returned
is HOST address and caller can use AddrTranslationOffset to calculate
the device address.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Ruiyu Ni <ruiyu.ni@intel.com>
Reviewed-by: Feng Tian <feng.tian@intel.com>
Reviewed-by: Laszlo Ersek <lersek@redhat.com>
MdeModulePkg/Bus/Pci/PciBusDxe/PciIo.c