]> git.proxmox.com Git - mirror_edk2.git/blobdiff - MdeModulePkg/Include/Guid/BootScriptExecutorVariable.h
MdeModulePkg: Add BootScriptExecutorDxe driver
[mirror_edk2.git] / MdeModulePkg / Include / Guid / BootScriptExecutorVariable.h
diff --git a/MdeModulePkg/Include/Guid/BootScriptExecutorVariable.h b/MdeModulePkg/Include/Guid/BootScriptExecutorVariable.h
new file mode 100644 (file)
index 0000000..420ccea
--- /dev/null
@@ -0,0 +1,49 @@
+/** @file\r
+  Define Name, GUID and data format for an EFI Variable that is used to save the entry point\r
+  of a code segment which will be loaded and executed by a standalone boot script \r
+  executor on S3 boot path.\r
+\r
+  Copyright (c) 2006 - 2010, 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 _BOOT_SCRIPT_EXECUTOR_VARIABLE_H_\r
+#define _BOOT_SCRIPT_EXECUTOR_VARIABLE_H_\r
+\r
+#define EFI_BOOT_SCRIPT_EXECUTOR_VARIABLE_GUID \\r
+  { \\r
+    0x3079818c, 0x46d4, 0x4a73, {0xae, 0xf3, 0xe3, 0xe4, 0x6c, 0xf1, 0xee, 0xdb} \\r
+  }\r
+\r
+//\r
+// The following structure boosts performance by combining structure all ACPI related variables into one.\r
+//\r
+#pragma pack(1)\r
+\r
+typedef struct {\r
+  EFI_PHYSICAL_ADDRESS  BootScriptExecutorEntrypoint;\r
+} BOOT_SCRIPT_EXECUTOR_VARIABLE;\r
+\r
+#pragma pack()\r
+\r
+#define BOOT_SCRIPT_EXECUTOR_VARIABLE_NAME  L"BootScriptExecutorVariable"\r
+\r
+extern EFI_GUID gEfiBootScriptExecutorVariableGuid;\r
+\r
+#define EFI_BOOT_SCRIPT_EXECUTOR_CONTEXT_GUID \\r
+  { \\r
+    0x79cb58c4, 0xac51, 0x442f, {0xaf, 0xd7, 0x98, 0xe4, 0x7d, 0x2e, 0x99, 0x8} \\r
+  }\r
+\r
+extern EFI_GUID gEfiBootScriptExecutorContextGuid;\r
+\r
+#endif\r