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.

Ruiyu Ni (2):
  MdeModulePkg/PciBus: Refine to reduce code lines.
  MdeModuelPkg/PciBus: Return AddrTranslationOffset in GetBarAttributes

 MdeModulePkg/Bus/Pci/PciBusDxe/PciIo.c | 130 +++++++++++++++++++++------------
 1 file changed, 85 insertions(+), 45 deletions(-)

-- 
2.7.0.windows.1

_______________________________________________
edk2-devel mailing list
[email protected]
https://lists.01.org/mailman/listinfo/edk2-devel

Reply via email to