]> git.proxmox.com Git - mirror_edk2.git/blame - UefiCpuPkg/Include/AcpiCpuData.h
UefiCpuPkg: Add ACPI CPU Data include file
[mirror_edk2.git] / UefiCpuPkg / Include / AcpiCpuData.h
CommitLineData
1c27f926
MK
1/** @file\r
2Definitions for CPU S3 data.\r
3\r
4Copyright (c) 2013 - 2015, Intel Corporation. All rights reserved.<BR>\r
5This program and the accompanying materials\r
6are licensed and made available under the terms and conditions of the BSD License\r
7which accompanies this distribution. The full text of the license may be found at\r
8http://opensource.org/licenses/bsd-license.php\r
9\r
10THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
11WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
12\r
13**/\r
14\r
15#ifndef _ACPI_CPU_DATA_H_\r
16#define _ACPI_CPU_DATA_H_\r
17\r
18//\r
19// Register types in register table\r
20//\r
21typedef enum _REGISTER_TYPE {\r
22 Msr,\r
23 ControlRegister,\r
24 MemoryMapped,\r
25 CacheControl\r
26} REGISTER_TYPE;\r
27\r
28//\r
29// Element of register table entry\r
30//\r
31typedef struct {\r
32 REGISTER_TYPE RegisterType;\r
33 UINT32 Index;\r
34 UINT8 ValidBitStart;\r
35 UINT8 ValidBitLength;\r
36 UINT64 Value;\r
37} CPU_REGISTER_TABLE_ENTRY;\r
38\r
39//\r
40// Register table definition, including current table length,\r
41// allocated size of this table, and pointer to the list of table entries.\r
42//\r
43typedef struct {\r
44 UINT32 TableLength;\r
45 UINT32 NumberBeforeReset;\r
46 UINT32 AllocatedSize;\r
47 UINT32 InitialApicId;\r
48 CPU_REGISTER_TABLE_ENTRY *RegisterTableEntry;\r
49} CPU_REGISTER_TABLE;\r
50\r
51typedef struct {\r
52 EFI_PHYSICAL_ADDRESS StartupVector;\r
53 EFI_PHYSICAL_ADDRESS GdtrProfile;\r
54 EFI_PHYSICAL_ADDRESS IdtrProfile;\r
55 EFI_PHYSICAL_ADDRESS StackAddress;\r
56 UINT32 StackSize;\r
57 UINT32 NumberOfCpus;\r
58 EFI_PHYSICAL_ADDRESS MtrrTable;\r
59 //\r
60 // Physical address of a CPU_REGISTER_TABLE structure\r
61 //\r
62 EFI_PHYSICAL_ADDRESS PreSmmInitRegisterTable;\r
63 //\r
64 // Physical address of a CPU_REGISTER_TABLE structure\r
65 //\r
66 EFI_PHYSICAL_ADDRESS RegisterTable;\r
67 EFI_PHYSICAL_ADDRESS ApMachineCheckHandlerBase;\r
68 UINT32 ApMachineCheckHandlerSize;\r
69} ACPI_CPU_DATA;\r
70\r
71#endif\r