]>
Commit | Line | Data |
---|---|---|
1 | /** @file\r | |
2 | Definitions for data structures used in S3 resume.\r | |
3 | \r | |
4 | Copyright (c) 2011, Intel Corporation. All rights reserved.<BR>\r | |
5 | \r | |
6 | This program and the accompanying materials\r | |
7 | are licensed and made available under the terms and conditions\r | |
8 | of the BSD License which accompanies this distribution. The\r | |
9 | full text of the license may be found at\r | |
10 | http://opensource.org/licenses/bsd-license.php\r | |
11 | \r | |
12 | THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r | |
13 | WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r | |
14 | \r | |
15 | **/\r | |
16 | \r | |
17 | #ifndef _ACPI_VARIABLE_COMPATIBILITY_H_\r | |
18 | #define _ACPI_VARIABLE_COMPATIBILITY_H_\r | |
19 | \r | |
20 | #define EFI_ACPI_VARIABLE_COMPATIBILITY_GUID \\r | |
21 | { \\r | |
22 | 0xc020489e, 0x6db2, 0x4ef2, {0x9a, 0xa5, 0xca, 0x6, 0xfc, 0x11, 0xd3, 0x6a } \\r | |
23 | }\r | |
24 | \r | |
25 | #define ACPI_GLOBAL_VARIABLE L"AcpiGlobalVariable"\r | |
26 | \r | |
27 | extern EFI_GUID gEfiAcpiVariableCompatiblityGuid;\r | |
28 | \r | |
29 | typedef struct {\r | |
30 | BOOLEAN APState;\r | |
31 | BOOLEAN S3BootPath;\r | |
32 | EFI_PHYSICAL_ADDRESS WakeUpBuffer;\r | |
33 | EFI_PHYSICAL_ADDRESS GdtrProfile;\r | |
34 | EFI_PHYSICAL_ADDRESS IdtrProfile;\r | |
35 | EFI_PHYSICAL_ADDRESS CpuPrivateData;\r | |
36 | EFI_PHYSICAL_ADDRESS StackAddress;\r | |
37 | EFI_PHYSICAL_ADDRESS MicrocodePointerBuffer;\r | |
38 | EFI_PHYSICAL_ADDRESS SmramBase;\r | |
39 | EFI_PHYSICAL_ADDRESS SmmStartImageBase;\r | |
40 | UINT32 SmmStartImageSize;\r | |
41 | UINT32 NumberOfCpus;\r | |
42 | } ACPI_CPU_DATA_COMPATIBILITY;\r | |
43 | \r | |
44 | typedef struct {\r | |
45 | //\r | |
46 | // Acpi Related variables\r | |
47 | //\r | |
48 | EFI_PHYSICAL_ADDRESS AcpiReservedMemoryBase;\r | |
49 | UINT32 AcpiReservedMemorySize;\r | |
50 | EFI_PHYSICAL_ADDRESS S3ReservedLowMemoryBase;\r | |
51 | EFI_PHYSICAL_ADDRESS AcpiBootScriptTable;\r | |
52 | EFI_PHYSICAL_ADDRESS RuntimeScriptTableBase;\r | |
53 | EFI_PHYSICAL_ADDRESS AcpiFacsTable;\r | |
54 | UINT64 SystemMemoryLength;\r | |
55 | ACPI_CPU_DATA_COMPATIBILITY AcpiCpuData;\r | |
56 | //\r | |
57 | // VGA OPROM to support Video Re-POST for Linux S3\r | |
58 | //\r | |
59 | EFI_PHYSICAL_ADDRESS VideoOpromAddress;\r | |
60 | UINT32 VideoOpromSize;\r | |
61 | \r | |
62 | //\r | |
63 | // S3 Debug extension\r | |
64 | //\r | |
65 | EFI_PHYSICAL_ADDRESS S3DebugBufferAddress; \r | |
66 | EFI_PHYSICAL_ADDRESS S3ResumeNvsEntryPoint; \r | |
67 | } ACPI_VARIABLE_SET_COMPATIBILITY;\r | |
68 | \r | |
69 | #endif\r |