X-Git-Url: https://git.proxmox.com/?a=blobdiff_plain;ds=sidebyside;f=OvmfPkg%2FLibrary%2FPciHostBridgeLib%2FPciHostBridgeLib.c;h=b23939d166c11ff76b140bca5f44ea4f82c399f4;hb=390951c2b803535e7fe8ecbba3fc1ff6bdaa3da5;hp=f1cefe416996867c2397e870e3ab8ff6640a1959;hpb=c789d61dcb6b1990133a947351f67751cf0c4e31;p=mirror_edk2.git diff --git a/OvmfPkg/Library/PciHostBridgeLib/PciHostBridgeLib.c b/OvmfPkg/Library/PciHostBridgeLib/PciHostBridgeLib.c index f1cefe4169..b23939d166 100644 --- a/OvmfPkg/Library/PciHostBridgeLib/PciHostBridgeLib.c +++ b/OvmfPkg/Library/PciHostBridgeLib/PciHostBridgeLib.c @@ -17,6 +17,7 @@ #include +#include #include #include @@ -84,6 +85,22 @@ InitRootBridge ( RootBus->DmaAbove4G = FALSE; + RootBus->AllocationAttributes = EFI_PCI_HOST_BRIDGE_COMBINE_MEM_PMEM; + RootBus->PMem.Base = 0; + RootBus->PMem.Limit = 0; + RootBus->PMemAbove4G.Base = 0; + RootBus->PMemAbove4G.Limit = 0; + RootBus->MemAbove4G.Base = 0; + RootBus->MemAbove4G.Limit = 0; + + RootBus->Bus.Base = RootBusNumber; + RootBus->Bus.Limit = MaxSubBusNumber; + RootBus->Io.Base = PcdGet64 (PcdPciIoBase); + RootBus->Io.Limit = PcdGet64 (PcdPciIoBase) + (PcdGet64 (PcdPciIoSize) - 1); + RootBus->Mem.Base = PcdGet64 (PcdPciMmio32Base); + RootBus->Mem.Limit = PcdGet64 (PcdPciMmio32Base) + + (PcdGet64 (PcdPciMmio32Size) - 1); + return EFI_OUT_OF_RESOURCES; }