]> git.proxmox.com Git - mirror_edk2.git/blobdiff - IntelFrameworkModulePkg/Include/Guid/AcpiVariableCompatibility.h
Clean and split AcpiVariable.h in IntelFrameworkModulePkg into 2 new .h files for...
[mirror_edk2.git] / IntelFrameworkModulePkg / Include / Guid / AcpiVariableCompatibility.h
diff --git a/IntelFrameworkModulePkg/Include/Guid/AcpiVariableCompatibility.h b/IntelFrameworkModulePkg/Include/Guid/AcpiVariableCompatibility.h
new file mode 100644 (file)
index 0000000..6c9f851
--- /dev/null
@@ -0,0 +1,69 @@
+/** @file\r
+  Definitions for data structures used in S3 resume.\r
+\r
+Copyright (c) 2011, Intel Corporation. All rights reserved.<BR>\r
+\r
+This program and the accompanying materials\r
+are licensed and made available under the terms and conditions\r
+of the BSD License which accompanies this distribution.  The\r
+full text of the license may be found at\r
+http://opensource.org/licenses/bsd-license.php\r
+\r
+THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
+\r
+**/\r
+\r
+#ifndef _ACPI_VARIABLE_COMPATIBILITY_H_\r
+#define _ACPI_VARIABLE_COMPATIBILITY_H_\r
+\r
+#define EFI_ACPI_VARIABLE_COMPATIBILITY_GUID \\r
+  { \\r
+    0xc020489e, 0x6db2, 0x4ef2, {0x9a, 0xa5, 0xca, 0x6, 0xfc, 0x11, 0xd3, 0x6a } \\r
+  }\r
+\r
+#define ACPI_GLOBAL_VARIABLE  L"AcpiGlobalVariable"\r
+\r
+extern EFI_GUID gEfiAcpiVariableCompatiblityGuid;\r
+\r
+typedef struct {\r
+  BOOLEAN               APState;\r
+  BOOLEAN               S3BootPath;\r
+  EFI_PHYSICAL_ADDRESS  WakeUpBuffer;\r
+  EFI_PHYSICAL_ADDRESS  GdtrProfile;\r
+  EFI_PHYSICAL_ADDRESS  IdtrProfile;\r
+  EFI_PHYSICAL_ADDRESS  CpuPrivateData;\r
+  EFI_PHYSICAL_ADDRESS  StackAddress;\r
+  EFI_PHYSICAL_ADDRESS  MicrocodePointerBuffer;\r
+  EFI_PHYSICAL_ADDRESS  SmramBase;\r
+  EFI_PHYSICAL_ADDRESS  SmmStartImageBase;\r
+  UINT32                SmmStartImageSize;\r
+  UINT32                NumberOfCpus;\r
+} ACPI_CPU_DATA_COMPATIBILITY;\r
+\r
+typedef struct {\r
+  //\r
+  // Acpi Related variables\r
+  //\r
+  EFI_PHYSICAL_ADDRESS  AcpiReservedMemoryBase;\r
+  UINT32                AcpiReservedMemorySize;\r
+  EFI_PHYSICAL_ADDRESS  S3ReservedLowMemoryBase;\r
+  EFI_PHYSICAL_ADDRESS  AcpiBootScriptTable;\r
+  EFI_PHYSICAL_ADDRESS  RuntimeScriptTableBase;\r
+  EFI_PHYSICAL_ADDRESS  AcpiFacsTable;\r
+  UINT64                SystemMemoryLength;\r
+  ACPI_CPU_DATA_COMPATIBILITY         AcpiCpuData;\r
+  //\r
+  // VGA OPROM to support Video Re-POST for Linux S3\r
+  //\r
+  EFI_PHYSICAL_ADDRESS  VideoOpromAddress;\r
+  UINT32                VideoOpromSize;\r
+\r
+  //\r
+  // S3 Debug extension\r
+  //\r
+  EFI_PHYSICAL_ADDRESS  S3DebugBufferAddress; \r
+  EFI_PHYSICAL_ADDRESS  S3ResumeNvsEntryPoint;    \r
+} ACPI_VARIABLE_SET_COMPATIBILITY;\r
+\r
+#endif\r