X-Git-Url: https://git.proxmox.com/?p=mirror_edk2.git;a=blobdiff_plain;f=IntelFrameworkModulePkg%2FUniversal%2FPcatSingleSegmentPciCfgPei%2FPciCfg.c;h=361f5be40b549c218c6eb6aa128be9282fb8b825;hp=20bee53355cf8fa8e39949bded6da6c687a5aae7;hb=d8b61daacca489c69b3f21d2f8d6bd6e33e16e13;hpb=38d64b32506f653abe2decc05b5bd90d524d028f diff --git a/IntelFrameworkModulePkg/Universal/PcatSingleSegmentPciCfgPei/PciCfg.c b/IntelFrameworkModulePkg/Universal/PcatSingleSegmentPciCfgPei/PciCfg.c index 20bee53355..361f5be40b 100644 --- a/IntelFrameworkModulePkg/Universal/PcatSingleSegmentPciCfgPei/PciCfg.c +++ b/IntelFrameworkModulePkg/Universal/PcatSingleSegmentPciCfgPei/PciCfg.c @@ -53,7 +53,7 @@ PciCfgRead ( { UINTN PciLibAddress; - PciLibAddress = COMMON_TO_PCILIB_ADDRESS (Address); + PciLibAddress = PciCfgAddressConvert ((EFI_PEI_PCI_CFG_PPI_PCI_ADDRESS *) &Address); switch (Width) { case EfiPeiPciCfgWidthUint8: * (UINT8 *) Buffer = PciRead8 (PciLibAddress); @@ -103,7 +103,7 @@ PciCfgWrite ( { UINTN PciLibAddress; - PciLibAddress = COMMON_TO_PCILIB_ADDRESS (Address); + PciLibAddress = PciCfgAddressConvert ((EFI_PEI_PCI_CFG_PPI_PCI_ADDRESS *) &Address); switch (Width) { case EfiPeiPciCfgWidthUint8: PciWrite8 (PciLibAddress, *(UINT8 *) Buffer); @@ -153,7 +153,7 @@ PciCfgModify ( { UINTN PciLibAddress; - PciLibAddress = COMMON_TO_PCILIB_ADDRESS (Address); + PciLibAddress = PciCfgAddressConvert ((EFI_PEI_PCI_CFG_PPI_PCI_ADDRESS *) &Address); switch (Width) { case EfiPeiPciCfgWidthUint8: PciAndThenOr8 (PciLibAddress, (UINT8)~ClearBits, (UINT8)SetBits);