]> git.proxmox.com Git - mirror_edk2.git/blobdiff - MdeModulePkg/Universal/Acpi/BootScriptExecutorDxe/ScriptExecute.h
MdeModulePkg: Replace BSD License with BSD+Patent License
[mirror_edk2.git] / MdeModulePkg / Universal / Acpi / BootScriptExecutorDxe / ScriptExecute.h
index 8e4b328db76a059413759d5abc2702c81a265e93..14bb63f60408e32ac383923f16050ba3e8162148 100644 (file)
@@ -1,18 +1,13 @@
 /** @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 - 2012, 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 of the BSD License\r
-which accompanies this distribution.  The full text of the license may be found at\r
-http://opensource.org/licenses/bsd-license.php\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
-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
+Copyright (c) 2006 - 2018, Intel Corporation. All rights reserved.<BR>\r
+Copyright (c) 2017, AMD Incorporated. All rights reserved.<BR>\r
+\r
+SPDX-License-Identifier: BSD-2-Clause-Patent\r
 \r
 **/\r
 #ifndef _BOOT_SCRIPT_EXECUTOR_H_\r
@@ -31,23 +26,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
@@ -56,9 +56,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
@@ -73,17 +73,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