Closed andreiw closed 7 months ago
Also, just like EFI_DT_REG, if BusDtIo == NULL, we ought to try ensuring the region is visible to UEFI. Again, this helps client code since it avoids having to deal with GCD manipulation (making such drivers UEFI drivers, not DXE drivers, yay)
PciHostBridgeLibEcam.c assumes the "ranges" map from PCI memory/IO spaces to CPU space, but that doesn't necessarily have to be true. But the code has no way of detecting whether the parent value is a CPU address or not. Like the reg parsing code, we ought to try translating all the way to the root and let clients see the additional translatedbase value.