DEBUG ((EFI_D_INFO, "%s\n", DevicePathStr = ConvertDevicePathToText (Bridge->DevicePath, FALSE, FALSE)));\r
DEBUG ((EFI_D_INFO, " Support/Attr: %lx / %lx\n", Bridge->Supports, Bridge->Attributes));\r
DEBUG ((EFI_D_INFO, " DmaAbove4G: %s\n", Bridge->DmaAbove4G ? L"Yes" : L"No"));\r
+ DEBUG ((EFI_D_INFO, "NoExtConfSpace: %s\n", Bridge->NoExtendedConfigSpace ? L"Yes" : L"No"));\r
DEBUG ((EFI_D_INFO, " AllocAttr: %lx (%s%s)\n", Bridge->AllocationAttributes,\r
(Bridge->AllocationAttributes & EFI_PCI_HOST_BRIDGE_COMBINE_MEM_PMEM) != 0 ? L"CombineMemPMem " : L"",\r
(Bridge->AllocationAttributes & EFI_PCI_HOST_BRIDGE_MEM64_DECODE) != 0 ? L"Mem64Decode" : L""\r
RootBridge->Supports = Bridge->Supports;\r
RootBridge->Attributes = Bridge->Attributes;\r
RootBridge->DmaAbove4G = Bridge->DmaAbove4G;\r
+ RootBridge->NoExtendedConfigSpace = Bridge->NoExtendedConfigSpace;\r
RootBridge->AllocationAttributes = Bridge->AllocationAttributes;\r
RootBridge->DevicePath = DuplicateDevicePath (Bridge->DevicePath);\r
RootBridge->DevicePathStr = DevicePathStr;\r
Address = PciRbAddr->Register;\r
}\r
Base = 0;\r
- Limit = 0xFFF;\r
+ Limit = RootBridge->NoExtendedConfigSpace ? 0xFF : 0xFFF;\r
}\r
\r
if (Address < Base) {\r
///< and SetAttributes() in EFI_PCI_ROOT_BRIDGE_IO_PROTOCOL.\r
BOOLEAN DmaAbove4G; ///< DMA above 4GB memory.\r
///< Set to TRUE when root bridge supports DMA above 4GB memory.\r
+ BOOLEAN NoExtendedConfigSpace; ///< When FALSE, the root bridge supports\r
+ ///< Extended (4096-byte) Configuration Space.\r
+ ///< When TRUE, the root bridge supports\r
+ ///< 256-byte Configuration Space only.\r
UINT64 AllocationAttributes; ///< Allocation attributes.\r
///< Refer to EFI_PCI_HOST_BRIDGE_COMBINE_MEM_PMEM and\r
///< EFI_PCI_HOST_BRIDGE_MEM64_DECODE used by GetAllocAttributes()\r