]> git.proxmox.com Git - mirror_edk2.git/blobdiff - MdeModulePkg/Universal/Acpi/BootScriptExecutorDxe/ScriptExecute.h
MdeModulePkg: Clean up source files
[mirror_edk2.git] / MdeModulePkg / Universal / Acpi / BootScriptExecutorDxe / ScriptExecute.h
index 6a97b7790e52b0f14e6b1e4791ce688be6f41344..4ae07a0f5f162b25f08dd3b1038895c0b3f08d21 100644 (file)
@@ -1,10 +1,11 @@
 /** @file\r
   The header file for Boot Script Executer module.\r
-  \r
-  This driver is dispatched by Dxe core and the driver will reload itself to ACPI NVS memory \r
-  in the entry point. The functionality is to interpret and restore the S3 boot script \r
-  \r
-Copyright (c) 2006 - 2011, Intel Corporation. All rights reserved.<BR>\r
+\r
+  This driver is dispatched by Dxe core and the driver will reload itself to ACPI reserved memory\r
+  in the entry point. The functionality is to interpret and restore the S3 boot script\r
+\r
+Copyright (c) 2006 - 2018, Intel Corporation. All rights reserved.<BR>\r
+Copyright (c) 2017, AMD Incorporated. All rights reserved.<BR>\r
 \r
 This program and the accompanying materials\r
 are licensed and made available under the terms and conditions of the BSD License\r
@@ -31,22 +32,28 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
 #include <Library/UefiRuntimeServicesTableLib.h>\r
 #include <Library/PcdLib.h>\r
 #include <Library/CacheMaintenanceLib.h>\r
-#include <Library/PerformanceLib.h>\r
 #include <Library/TimerLib.h>\r
 #include <Library/UefiLib.h>\r
 #include <Library/DebugAgentLib.h>\r
 #include <Library/LockBoxLib.h>\r
+#include <Library/CpuExceptionHandlerLib.h>\r
+#include <Library/DevicePathLib.h>\r
+#include <Library/DxeServicesTableLib.h>\r
 \r
 #include <Guid/AcpiS3Context.h>\r
 #include <Guid/BootScriptExecutorVariable.h>\r
-#include <Guid/EventGroup.h>\r
-#include <Guid/Performance.h>\r
+#include <Guid/MemoryProfile.h>\r
+\r
+#include <Protocol/DxeSmmReadyToLock.h>\r
 #include <IndustryStandard/Acpi.h>\r
+\r
+#define PAGING_1G_ADDRESS_MASK_64  0x000FFFFFC0000000ull\r
+\r
 /**\r
   a ASM function to transfer control to OS.\r
-  \r
+\r
   @param  S3WakingVector  The S3 waking up vector saved in ACPI Facs table\r
-  @param  AcpiLowMemoryBase a buffer under 1M which could be used during the transfer             \r
+  @param  AcpiLowMemoryBase a buffer under 1M which could be used during the transfer\r
 **/\r
 VOID\r
 AsmTransferControl (\r
@@ -55,9 +62,9 @@ AsmTransferControl (
   );\r
 /**\r
   a 32bit ASM function to transfer control to OS.\r
-  \r
+\r
   @param  S3WakingVector  The S3 waking up vector saved in ACPI Facs table\r
-  @param  AcpiLowMemoryBase a buffer under 1M which could be used during the transfer             \r
+  @param  AcpiLowMemoryBase a buffer under 1M which could be used during the transfer\r
 **/\r
 VOID\r
 AsmTransferControl32 (\r
@@ -72,17 +79,19 @@ AsmTransferControl16 (
   VOID\r
   );\r
 /**\r
-  Set a IDT entry for interrupt vector 3 for debug purpose.  \r
-  \r
-  @param  AcpiS3Context  a pointer to a structure of ACPI_S3_CONTEXT  \r
-              \r
+  Set a IDT entry for interrupt vector 3 for debug purpose.\r
+\r
+  @param  AcpiS3Context  a pointer to a structure of ACPI_S3_CONTEXT\r
+\r
 **/\r
 VOID\r
-SetIdtEntry ( \r
+SetIdtEntry (\r
   IN ACPI_S3_CONTEXT     *AcpiS3Context\r
   );\r
 \r
 extern UINT32 AsmFixAddress16;\r
 extern UINT32 AsmJmpAddr32;\r
+extern BOOLEAN mPage1GSupport;\r
+extern UINT64 mAddressEncMask;\r
 \r
 #endif //_BOOT_SCRIPT_EXECUTOR_H_\r