mirror of
https://github.com/tianocore/edk2
synced 2026-08-27 00:23:19 -04:00
OvmfPkg/FdtPciHostBridgeLib: Map PCI MMIO windows in GCD
Map the PCI MMIO32 and MMIO64 windows into the GCD memory map after parsing the DT ranges property. This makes the PCI memory apertures available as MMIO regions. Signed-off-by: Sami Mujawar <sami.mujawar@arm.com>
This commit is contained in:
parent
d46e38c5ea
commit
da1ccea67c
1 changed files with 16 additions and 0 deletions
|
|
@ -297,6 +297,22 @@ ProcessPciHost (
|
|||
//
|
||||
Status = MapMmioMemory (*IoBase + IoTranslation, *IoSize, EFI_MEMORY_UC);
|
||||
ASSERT_EFI_ERROR (Status);
|
||||
if (EFI_ERROR (Status)) {
|
||||
return Status;
|
||||
}
|
||||
}
|
||||
|
||||
if (*Mmio32Size != 0) {
|
||||
Status = MapMmioMemory (*Mmio32Base, *Mmio32Size, EFI_MEMORY_UC);
|
||||
ASSERT_EFI_ERROR (Status);
|
||||
if (EFI_ERROR (Status)) {
|
||||
return Status;
|
||||
}
|
||||
}
|
||||
|
||||
if (*Mmio64Size != 0) {
|
||||
Status = MapMmioMemory (*Mmio64Base, *Mmio64Size, EFI_MEMORY_UC);
|
||||
ASSERT_EFI_ERROR (Status);
|
||||
}
|
||||
|
||||
return Status;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue