]> git.proxmox.com Git - mirror_edk2.git/blame - QuarkPlatformPkg/Acpi/Dxe/BootScriptExecutorDxe/ScriptExecute.h
QuarkPlatformPkg: Add new package for Galileo boards
[mirror_edk2.git] / QuarkPlatformPkg / Acpi / Dxe / BootScriptExecutorDxe / ScriptExecute.h
CommitLineData
b303605e
MK
1/** @file\r
2The header file for Boot Script Executer module.\r
3\r
4This driver is dispatched by Dxe core and the driver will reload itself to ACPI NVS memory\r
5in the entry point. The functionality is to interpret and restore the S3 boot script\r
6\r
7Copyright (c) 2013-2015 Intel Corporation.\r
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 _SCRIPT_EXECUTE_H_\r
19#define _SCRIPT_EXECUTE_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
34#include <Library/TimerLib.h>\r
35#include <Library/UefiLib.h>\r
36#include <Library/DebugAgentLib.h>\r
37#include <Library/LockBoxLib.h>\r
38#include <Library/IntelQNCLib.h>\r
39#include <Library/QNCAccessLib.h>\r
40\r
41#include <Guid/AcpiS3Context.h>\r
42#include <Guid/BootScriptExecutorVariable.h>\r
43#include <Guid/EventGroup.h>\r
44#include <IndustryStandard/Acpi.h>\r
45\r
46/**\r
47 a ASM function to transfer control to OS.\r
48\r
49 @param S3WakingVector The S3 waking up vector saved in ACPI Facs table\r
50 @param AcpiLowMemoryBase a buffer under 1M which could be used during the transfer\r
51**/\r
52VOID\r
53AsmTransferControl (\r
54 IN UINT32 S3WakingVector,\r
55 IN UINT32 AcpiLowMemoryBase\r
56 );\r
57\r
58VOID\r
59SetIdtEntry (\r
60 IN ACPI_S3_CONTEXT *AcpiS3Context\r
61 );\r
62\r
63/**\r
64 Platform specific mechanism to transfer control to 16bit OS waking vector\r
65\r
66 @param[in] AcpiWakingVector The 16bit OS waking vector\r
67 @param[in] AcpiLowMemoryBase A buffer under 1M which could be used during the transfer\r
68\r
69**/\r
70VOID\r
71PlatformTransferControl16 (\r
72 IN UINT32 AcpiWakingVector,\r
73 IN UINT32 AcpiLowMemoryBase\r
74 );\r
75\r
76#endif //_SCRIPT_EXECUTE_H_\r