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