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 (3): MdeModulePkg/PciBus: Change local variable AddressSpace to Descriptor MdeModulePkg/PciBus: reorganize case-statement to reduce code lines MdeModuelPkg/PciBus: Return AddrTranslationOffset in GetBarAttributes MdeModulePkg/Bus/Pci/PciBusDxe/PciIo.c | 130 ++++++++++++++++++++++----------- 1 file changed, 87 insertions(+), 43 deletions(-) -- 2.7.0.windows.1 _______________________________________________ edk2-devel mailing list [email protected] https://lists.01.org/mailman/listinfo/edk2-devel

