]> git.proxmox.com Git - mirror_edk2.git/blame - MdeModulePkg/Universal/Acpi/BootScriptExecutorDxe/ScriptExecute.h
MdePkg: Add RETURN_ADDRESS macro into Base.h.
[mirror_edk2.git] / MdeModulePkg / Universal / Acpi / BootScriptExecutorDxe / ScriptExecute.h
CommitLineData
be46cd5f 1/** @file\r
2 The header file for Boot Script Executer module.\r
3 \r
59cc677c 4 This driver is dispatched by Dxe core and the driver will reload itself to ACPI reserved memory \r
be46cd5f 5 in the entry point. The functionality is to interpret and restore the S3 boot script \r
6 \r
59cc677c 7Copyright (c) 2006 - 2013, Intel Corporation. All rights reserved.<BR>\r
be46cd5f 8\r
9This program and the accompanying materials\r
10are licensed and made available under the terms and conditions of the BSD License\r
11which accompanies this distribution. The full text of the license may be found at\r
12http://opensource.org/licenses/bsd-license.php\r
13\r
14THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
15WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
16\r
17**/\r
18#ifndef _BOOT_SCRIPT_EXECUTOR_H_\r
19#define _BOOT_SCRIPT_EXECUTOR_H_\r
20\r
21#include <PiDxe.h>\r
22\r
23#include <Library/BaseLib.h>\r
24#include <Library/UefiDriverEntryPoint.h>\r
25#include <Library/BaseMemoryLib.h>\r
26#include <Library/DebugLib.h>\r
27#include <Library/S3BootScriptLib.h>\r
28#include <Library/PeCoffLib.h>\r
29#include <Library/DxeServicesLib.h>\r
30#include <Library/UefiBootServicesTableLib.h>\r
31#include <Library/UefiRuntimeServicesTableLib.h>\r
32#include <Library/PcdLib.h>\r
33#include <Library/CacheMaintenanceLib.h>\r
be46cd5f 34#include <Library/TimerLib.h>\r
35#include <Library/UefiLib.h>\r
36#include <Library/DebugAgentLib.h>\r
37#include <Library/LockBoxLib.h>\r
1e172d6b 38#include <Library/CpuExceptionHandlerLib.h>\r
be46cd5f 39\r
40#include <Guid/AcpiS3Context.h>\r
41#include <Guid/BootScriptExecutorVariable.h>\r
59cc677c 42#include <Protocol/DxeSmmReadyToLock.h>\r
be46cd5f 43#include <IndustryStandard/Acpi.h>\r
44/**\r
45 a ASM function to transfer control to OS.\r
46 \r
47 @param S3WakingVector The S3 waking up vector saved in ACPI Facs table\r
48 @param AcpiLowMemoryBase a buffer under 1M which could be used during the transfer \r
49**/\r
50VOID\r
51AsmTransferControl (\r
52 IN UINT32 S3WakingVector,\r
53 IN UINT32 AcpiLowMemoryBase\r
54 );\r
55/**\r
56 a 32bit ASM function to transfer control to OS.\r
57 \r
58 @param S3WakingVector The S3 waking up vector saved in ACPI Facs table\r
59 @param AcpiLowMemoryBase a buffer under 1M which could be used during the transfer \r
60**/\r
61VOID\r
62AsmTransferControl32 (\r
63 IN UINT32 S3WakingVector,\r
64 IN UINT32 AcpiLowMemoryBase\r
65 );\r
66/**\r
67 a 16bit ASM function to transfer control to OS.\r
68**/\r
69VOID\r
70AsmTransferControl16 (\r
71 VOID\r
72 );\r
73/**\r
74 Set a IDT entry for interrupt vector 3 for debug purpose. \r
75 \r
76 @param AcpiS3Context a pointer to a structure of ACPI_S3_CONTEXT \r
77 \r
78**/\r
79VOID\r
80SetIdtEntry ( \r
81 IN ACPI_S3_CONTEXT *AcpiS3Context\r
82 );\r
83\r
84extern UINT32 AsmFixAddress16;\r
85extern UINT32 AsmJmpAddr32;\r
59cc677c 86extern BOOLEAN mPage1GSupport;\r
be46cd5f 87\r
88#endif //_BOOT_SCRIPT_EXECUTOR_H_\r