PcdPciIoTranslation PCD is relocated to MdePkg and leveraged by
both ARM and RISC-V arch. This patch removes the one from ArmPkg
and address the corresponding changes required for other modules
under ArmVirtPkg.
Signed-off-by: Abner Chang <abner.chang@hpe.com>
Cc: Ard Biesheuvel <ardb+tianocore@kernel.org>
Cc: Leif Lindholm <leif@nuviainc.com>
Cc: Sami Mujawar <sami.mujawar@arm.com>
Cc: Gerd Hoffmann <kraxel@redhat.com>
Cc: Daniel Schaefer <daniel.schaefer@hpe.com>
Cc: Sunil V L <sunilvl@ventanamicro.com>
Reviewed-by: Daniel Schaefer <daniel.schaefer@hpe.com>
Reviewed-by: Sunil V L <sunilvl@ventanamicro.com>
Acked-by: Gerd Hoffmann <kraxel@redhat.com>
# UINT64 Mmio32CpuBase; // mapping target in 64-bit cpu-physical space\r
# UINT64 Mmio64CpuBase; // mapping target in 64-bit cpu-physical space\r
#\r
# UINT64 Mmio32CpuBase; // mapping target in 64-bit cpu-physical space\r
# UINT64 Mmio64CpuBase; // mapping target in 64-bit cpu-physical space\r
#\r
- # PcdPciIoTranslation = IoCpuBase - PcdPciIoBase;\r
+ # gEfiMdePkgTokenSpaceGuid.PcdPciIoTranslation = IoCpuBase - PcdPciIoBase;\r
# PcdPciMmio32Translation = Mmio32CpuBase - (UINT64)PcdPciMmio32Base;\r
# PcdPciMmio64Translation = Mmio64CpuBase - PcdPciMmio64Base;\r
#\r
# PcdPciMmio32Translation = Mmio32CpuBase - (UINT64)PcdPciMmio32Base;\r
# PcdPciMmio64Translation = Mmio64CpuBase - PcdPciMmio64Base;\r
#\r
# UINT64 TranslatedMmio64Address; // output parameter\r
#\r
# TranslatedIoAddress = UntranslatedIoAddress +\r
# UINT64 TranslatedMmio64Address; // output parameter\r
#\r
# TranslatedIoAddress = UntranslatedIoAddress +\r
- # PcdPciIoTranslation;\r
+ # gEfiMdePkgTokenSpaceGuid.PcdPciIoTranslation;\r
# TranslatedMmio32Address = (UINT64)UntranslatedMmio32Address +\r
# PcdPciMmio32Translation;\r
# TranslatedMmio64Address = UntranslatedMmio64Address +\r
# TranslatedMmio32Address = (UINT64)UntranslatedMmio32Address +\r
# PcdPciMmio32Translation;\r
# TranslatedMmio64Address = UntranslatedMmio64Address +\r
#\r
gArmTokenSpaceGuid.PcdPciIoBase|0x0|UINT64|0x00000050\r
gArmTokenSpaceGuid.PcdPciIoSize|0x0|UINT64|0x00000051\r
#\r
gArmTokenSpaceGuid.PcdPciIoBase|0x0|UINT64|0x00000050\r
gArmTokenSpaceGuid.PcdPciIoSize|0x0|UINT64|0x00000051\r
- gArmTokenSpaceGuid.PcdPciIoTranslation|0x0|UINT64|0x00000052\r
gArmTokenSpaceGuid.PcdPciMmio32Base|0x0|UINT32|0x00000053\r
gArmTokenSpaceGuid.PcdPciMmio32Size|0x0|UINT32|0x00000054\r
gArmTokenSpaceGuid.PcdPciMmio32Translation|0x0|UINT64|0x00000055\r
gArmTokenSpaceGuid.PcdPciMmio32Base|0x0|UINT32|0x00000053\r
gArmTokenSpaceGuid.PcdPciMmio32Size|0x0|UINT32|0x00000054\r
gArmTokenSpaceGuid.PcdPciMmio32Translation|0x0|UINT64|0x00000055\r
UefiBootServicesTableLib\r
\r
[Pcd]\r
UefiBootServicesTableLib\r
\r
[Pcd]\r
- gArmTokenSpaceGuid.PcdPciIoTranslation\r
+ gEfiMdePkgTokenSpaceGuid.PcdPciIoTranslation\r
\r
[Protocols]\r
gEfiCpuIo2ProtocolGuid ## PRODUCES\r
\r
[Protocols]\r
gEfiCpuIo2ProtocolGuid ## PRODUCES\r
# PCD and PcdPciDisableBusEnumeration above have not been assigned yet\r
gEfiMdePkgTokenSpaceGuid.PcdPciExpressBaseAddress|0xFFFFFFFFFFFFFFFF\r
\r
# PCD and PcdPciDisableBusEnumeration above have not been assigned yet\r
gEfiMdePkgTokenSpaceGuid.PcdPciExpressBaseAddress|0xFFFFFFFFFFFFFFFF\r
\r
- gArmTokenSpaceGuid.PcdPciIoTranslation|0\r
+ gEfiMdePkgTokenSpaceGuid.PcdPciIoTranslation|0\r
\r
gEfiSecurityPkgTokenSpaceGuid.PcdTpmBaseAddress|0x0\r
\r
\r
gEfiSecurityPkgTokenSpaceGuid.PcdTpmBaseAddress|0x0\r
\r
# PCD and PcdPciDisableBusEnumeration above have not been assigned yet\r
gEfiMdePkgTokenSpaceGuid.PcdPciExpressBaseAddress|0xFFFFFFFFFFFFFFFF\r
\r
# PCD and PcdPciDisableBusEnumeration above have not been assigned yet\r
gEfiMdePkgTokenSpaceGuid.PcdPciExpressBaseAddress|0xFFFFFFFFFFFFFFFF\r
\r
- gArmTokenSpaceGuid.PcdPciIoTranslation|0x0\r
+ gEfiMdePkgTokenSpaceGuid.PcdPciIoTranslation|0x0\r
\r
#\r
# Set video resolution for boot options and for text setup.\r
\r
#\r
# Set video resolution for boot options and for text setup.\r
# PCD and PcdPciDisableBusEnumeration above have not been assigned yet\r
gEfiMdePkgTokenSpaceGuid.PcdPciExpressBaseAddress|0xFFFFFFFFFFFFFFFF\r
\r
# PCD and PcdPciDisableBusEnumeration above have not been assigned yet\r
gEfiMdePkgTokenSpaceGuid.PcdPciExpressBaseAddress|0xFFFFFFFFFFFFFFFF\r
\r
- gArmTokenSpaceGuid.PcdPciIoTranslation|0x0\r
+ gEfiMdePkgTokenSpaceGuid.PcdPciIoTranslation|0x0\r
\r
#\r
# Set video resolution for boot options and for text setup.\r
\r
#\r
# Set video resolution for boot options and for text setup.\r
# PCD and PcdPciDisableBusEnumeration above have not been assigned yet\r
gEfiMdePkgTokenSpaceGuid.PcdPciExpressBaseAddress|0xFFFFFFFFFFFFFFFF\r
\r
# PCD and PcdPciDisableBusEnumeration above have not been assigned yet\r
gEfiMdePkgTokenSpaceGuid.PcdPciExpressBaseAddress|0xFFFFFFFFFFFFFFFF\r
\r
- gArmTokenSpaceGuid.PcdPciIoTranslation|0x0\r
+ gEfiMdePkgTokenSpaceGuid.PcdPciIoTranslation|0x0\r
\r
#\r
# Set video resolution for boot options and for text setup.\r
\r
#\r
# Set video resolution for boot options and for text setup.\r
gArmTokenSpaceGuid.PcdPciMmio64Translation\r
\r
[Pcd]\r
gArmTokenSpaceGuid.PcdPciMmio64Translation\r
\r
[Pcd]\r
- gArmTokenSpaceGuid.PcdPciIoTranslation\r
+ gEfiMdePkgTokenSpaceGuid.PcdPciIoTranslation\r
gEfiMdePkgTokenSpaceGuid.PcdPciExpressBaseAddress\r
\r
[Depex]\r
gEfiMdePkgTokenSpaceGuid.PcdPciExpressBaseAddress\r
\r
[Depex]\r
gFdtClientProtocolGuid ## CONSUMES\r
\r
[Pcd]\r
gFdtClientProtocolGuid ## CONSUMES\r
\r
[Pcd]\r
- gArmTokenSpaceGuid.PcdPciIoTranslation ## PRODUCES\r
+ gEfiMdePkgTokenSpaceGuid.PcdPciIoTranslation ## PRODUCES\r
gEfiMdePkgTokenSpaceGuid.PcdPciExpressBaseAddress ## PRODUCES\r
gEfiMdeModulePkgTokenSpaceGuid.PcdPciDisableBusEnumeration ## PRODUCES\r
\r
gEfiMdePkgTokenSpaceGuid.PcdPciExpressBaseAddress ## PRODUCES\r
gEfiMdeModulePkgTokenSpaceGuid.PcdPciDisableBusEnumeration ## PRODUCES\r
\r