]> git.proxmox.com Git - mirror_edk2.git/blobdiff - OvmfPkg/AcpiPlatformDxe/AcpiPlatform.h
OvmfPkg: AcpiPlatformDxe: enable PCI IO and MMIO while fetching QEMU tables
[mirror_edk2.git] / OvmfPkg / AcpiPlatformDxe / AcpiPlatform.h
index 55b380b285057be0b6d7ab683980cf1f3f28eb12..08dd7f8f7dd7a5fe36f39bcb566c8578224aa5f8 100644 (file)
@@ -19,6 +19,7 @@
 \r
 #include <Protocol/AcpiTable.h>\r
 #include <Protocol/FirmwareVolume2.h>\r
+#include <Protocol/PciIo.h>\r
 \r
 #include <Library/BaseLib.h>\r
 #include <Library/UefiBootServicesTableLib.h>\r
 \r
 #include <IndustryStandard/Acpi.h>\r
 \r
+typedef struct {\r
+  EFI_PCI_IO_PROTOCOL *PciIo;\r
+  UINT64              PciAttributes;\r
+} ORIGINAL_ATTRIBUTES;\r
+\r
 EFI_STATUS\r
 EFIAPI\r
 InstallAcpiTable (\r
@@ -73,5 +79,17 @@ InstallAcpiTables (
   IN   EFI_ACPI_TABLE_PROTOCOL       *AcpiTable\r
   );\r
 \r
+VOID\r
+EnablePciDecoding (\r
+  OUT ORIGINAL_ATTRIBUTES **OriginalAttributes,\r
+  OUT UINTN               *Count\r
+  );\r
+\r
+VOID\r
+RestorePciDecoding (\r
+  IN ORIGINAL_ATTRIBUTES *OriginalAttributes,\r
+  IN UINTN               Count\r
+  );\r
+\r
 #endif\r
 \r