summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--MdeModulePkg/Bus/Pci/PciBusDxe/PciIo.c34
1 files changed, 10 insertions, 24 deletions
diff --git a/MdeModulePkg/Bus/Pci/PciBusDxe/PciIo.c b/MdeModulePkg/Bus/Pci/PciBusDxe/PciIo.c
index 020048d4ad..334a6ac309 100644
--- a/MdeModulePkg/Bus/Pci/PciBusDxe/PciIo.c
+++ b/MdeModulePkg/Bus/Pci/PciBusDxe/PciIo.c
@@ -1819,53 +1819,39 @@ PciIoGetBarAttributes (
Descriptor->ResType = ACPI_ADDRESS_SPACE_TYPE_IO;
break;
- case PciBarTypeMem32:
+ case PciBarTypePMem32:
//
- // Mem
+ // prefechable
//
- Descriptor->ResType = ACPI_ADDRESS_SPACE_TYPE_MEM;
+ Descriptor->SpecificFlag = EFI_ACPI_MEMORY_RESOURCE_SPECIFIC_FLAG_CACHEABLE_PREFETCHABLE;
//
- // 32 bit
+ // Fall through
//
- Descriptor->AddrSpaceGranularity = 32;
- break;
-
- case PciBarTypePMem32:
+ case PciBarTypeMem32:
//
// Mem
//
Descriptor->ResType = ACPI_ADDRESS_SPACE_TYPE_MEM;
//
- // prefechable
- //
- Descriptor->SpecificFlag = 0x6;
- //
// 32 bit
//
Descriptor->AddrSpaceGranularity = 32;
break;
- case PciBarTypeMem64:
+ case PciBarTypePMem64:
//
- // Mem
+ // prefechable
//
- Descriptor->ResType = ACPI_ADDRESS_SPACE_TYPE_MEM;
+ Descriptor->SpecificFlag = EFI_ACPI_MEMORY_RESOURCE_SPECIFIC_FLAG_CACHEABLE_PREFETCHABLE;
//
- // 64 bit
+ // Fall through
//
- Descriptor->AddrSpaceGranularity = 64;
- break;
-
- case PciBarTypePMem64:
+ case PciBarTypeMem64:
//
// Mem
//
Descriptor->ResType = ACPI_ADDRESS_SPACE_TYPE_MEM;
//
- // prefechable
- //
- Descriptor->SpecificFlag = 0x6;
- //
// 64 bit
//
Descriptor->AddrSpaceGranularity = 64;