From 0f714ddea536a2489e5654c949cda862bce35bcd Mon Sep 17 00:00:00 2001 From: Yang Wang Date: Thu, 26 Sep 2024 09:51:45 +0800 Subject: [PATCH] Platform/RISC-V: Add PCD variables related to PCI Pcihostbridgelib uses the general PCD variable. Like PcdPciBusMin PcdPciBusMax ... Cc: Sunil V L Cc: Leif Lindholm Cc: Michael D Kinney Cc: Daniel Schaefer Cc: Ray Ni Cc: Ran Wang Signed-off-by: Yang Wang --- .../RISC-V/PlatformPkg/RiscVPlatformPkg.dec | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/Platform/RISC-V/PlatformPkg/RiscVPlatformPkg.dec b/Platform/RISC-V/PlatformPkg/RiscVPlatformPkg.dec index b45f48fdc58..4f01ec3db8e 100644 --- a/Platform/RISC-V/PlatformPkg/RiscVPlatformPkg.dec +++ b/Platform/RISC-V/PlatformPkg/RiscVPlatformPkg.dec @@ -84,6 +84,25 @@ gUefiRiscVPlatformPkgTokenSpaceGuid.PcdDeviceTreeAddress|0|UINT32|0x00001106 + # + # PCI configuration info + # + gUefiRiscVPlatformPkgTokenSpaceGuid.PcdPciConfigBase|0x0|UINT64|0x00001200 + gUefiRiscVPlatformPkgTokenSpaceGuid.PcdPciConfigSize|0x0|UINT64|0x00001201 + + gUefiRiscVPlatformPkgTokenSpaceGuid.PcdPciIoBase|0x0|UINT64|0x00001202 + gUefiRiscVPlatformPkgTokenSpaceGuid.PcdPciIoSize|0x0|UINT64|0x00001203 + gUefiRiscVPlatformPkgTokenSpaceGuid.PcdPciMmio32Base|0x0|UINT32|0x00001204 + gUefiRiscVPlatformPkgTokenSpaceGuid.PcdPciMmio32Size|0x0|UINT32|0x00001205 + gUefiRiscVPlatformPkgTokenSpaceGuid.PcdPciMmio64Base|0x0|UINT64|0x00001206 + gUefiRiscVPlatformPkgTokenSpaceGuid.PcdPciMmio64Size|0x0|UINT64|0x00001207 + + # + # Inclusive range of allowed PCI buses. + # + gUefiRiscVPlatformPkgTokenSpaceGuid.PcdPciBusMin|0x0|UINT32|0x0000120a + gUefiRiscVPlatformPkgTokenSpaceGuid.PcdPciBusMax|0x0|UINT32|0x0000120b + [PcdsPatchableInModule] [PcdsFeatureFlag]