1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
|
//*************************************************************************
//*************************************************************************
//** **
//** (C)Copyright 1985-2013, American Megatrends, Inc. **
//** **
//** All Rights Reserved. **
//** **
//** 5555 Oakbrook Parkway, Suite 200, Norcross, GA 30093 **
//** **
//** Phone: (770)-246-8600 **
//** **
//*************************************************************************
//*************************************************************************
//*************************************************************************
// $Header: /Alaska/SOURCE/Modules/SharkBayRefCodes/Platform/AcpiPlatform.h 12 7/11/14 4:00a Joshchou $
//
// $Revision: 12 $
//
// $Date: 7/11/14 4:00a $
//*************************************************************************
// Revision History
// ----------------
// $Log: /Alaska/SOURCE/Modules/SharkBayRefCodes/Platform/AcpiPlatform.h $
//
// 12 7/11/14 4:00a Joshchou
// [TAG] None
// [Category] Improvement
// [Description] Support Debug Port Table.
// [Files] AcpiPlatform.c
// AcpiPlatform.h
// AcpiPlatform.cif
//
// 11 4/23/14 4:21a Joshchou
//
// 10 9/27/13 10:43a Joshchou
// [TAG] EIP137454
// [Category] New Feature
// [Description] Follow Intel sample code to add LPIT table.
//
// 9 9/18/13 6:26a Joshchou
// [TAG] EIP136411
// [Category] Improvement
// [Description] Support MWAIT LPI State Descriptor[1].
//
// 8 7/16/13 6:00a Alanlin
// [TAG] EIP127540
// [Category] Normal
// [Severity] Normal
// [Description] Windows* 8.1 Micro-PEP (uPEP) ASL Support Version 0.5
// [Files] AcpiPlatform.c, AcpiPlatform.h
//
// 7 6/28/13 5:22a Alanlin
// [TAG] None
// [Category] Important
// [Severity] Important
// [Description] Fixed that Processors device are disappeared under OS
// device manager.
// [Files] AcpiPlatform.c, AcpiPlatform.h
//
// 6 11/20/12 7:08a Alanlin
// [TAG] None
// [Category] New Feature
// [Severity] Important
// [Description] SensorHub SSDT acpi table support
// [Files] Acpiplatform.c, Acpiplatform.cif, Acpiplatform.h,
// SsdtSensorHub.asl, SsdtSensorHub.mak, SsdtSensorHub.sdl
//
// [TAG] None
// [Category] Important
// [Severity] Important
// [Description] Update Shark Bay Client ACPI Reference Code Beta Version
// 0.8.0
//
// 5 11/09/12 5:18a Alanlin
// [TAG] None
// [Category] New Feature
// [Severity] Important
// [Description] ZpOdd SSDT acpi table support
// [Files] Acpiplatform.c, Acpiplatform.cif, Acpiplatform.h,
// Acpiplatform.sd, Acpiplatform.uni
//
// 4 10/31/12 4:40a Alanlin
// [TAG] None
// [Category] New Feature
// [Severity] Normal
// [Description] Support Acpi Debug SSDT.
//
// 3 9/12/12 7:21a Yurenlai
// [TAG] None
// [Category] Improvement
// [Severity] Important
// [Description] Remove AOAC for Intel Smart Connect Technology module.
// [Files] GlobalNvsArea.h, GloblNvs.asl
//
// 2 8/31/12 4:48a Yurenlai
// [TAG] None
// [Category] Improvement
// [Severity] Important
// [Description] Implement Runtime D3.
// [Files] AcpiPlatform.c, AcpiPlatform.cif, AcpiPlatform.h,
// AcpiPlatform.sd, AcpiPlatform.sdl, AcpiPlatform.uni, GlobalNvsArea.h,
// SsdtRtd3.cif, SsdtRtd3.mak, Ult0Rtd3.asl, SsdtRtd3.sdl
//
// 1 2/09/12 12:30a Yurenlai
// Initial check in.
//
//*************************************************************************
//<AMI_FHDR_START>
//
// Name: AcpiPlatform.h
//
// Description: AcpiPlatform header file, define all the AcpiPlatform module
// specific equates and structures in this file.
//
//<AMI_FHDR_END>
//*************************************************************************
#define EFI_MSR_IA32_PLATFORM_ID 0x17
#define EFI_MSR_IA32_CR_PIC_MSG_CONTROL 0x2e
#define EFI_MSR_CORE_THREAD_COUNT 0x35
#define EFI_MSR_IA32_FEATURE_CONTROL 0x3a
#define AML_NAME_OP 0x08
#define AML_EXT_OP 0x5b
#define AML_EXT_DEVICE_OP 0x82
#define AML_EXT_PROCESSOR_OP 0x83
#define AML_NOOP_OP 0xa3
#define PCH_SMBUS_ENABLE_PEC 0x1
//-jeff For EDK
// Common table header, this prefaces all ACPI tables, including FACS, but
// excluding the RSD PTR structure
#ifndef EFI_SIGNATURE_16
#define EFI_SIGNATURE_16(A, B) ((A) | (B << 8))
#endif
#ifndef EFI_SIGNATURE_32
#define EFI_SIGNATURE_32(A, B, C, D) (EFI_SIGNATURE_16 (A, B) | (EFI_SIGNATURE_16 (C, D) << 16))
#endif
//
// ACPI table information used to initialize tables.
//
#define EFI_ACPI_3_0_DEBUG_PORT_TABLE_SIGNATURE EFI_SIGNATURE_32('D', 'B', 'G', 'P')
#define EFI_ACPI_DBGP_TABLE_REVISION 0x01
#define EFI_ACPI_OEM_DBGP_REVISION 0x00000000
#define EFI_ACPI_CREATOR_ID 0x5446534D // "MSFT"
#define EFI_ACPI_CREATOR_REVISION 0x00000005F
typedef struct {
UINT32 Signature;
UINT32 Length;
} EFI_ACPI_COMMON_HEADER;
typedef struct
{
UINT32 Signature;
UINT32 Length;
UINT8 Revision;
UINT8 Checksum;
UINT8 OemId[6];
UINT64 OemTableId;
UINT32 OemRevision;
UINT32 CreatorId;
UINT32 CreatorRevision;
} EFI_ACPI_DESCRIPTION_HEADER;
#pragma pack(1)
typedef union _MSR_REGISTER {
UINT64 Qword;
struct _DWORDS {
UINT32 Low;
UINT32 High;
} Dwords;
struct _BYTES {
UINT8 FirstByte;
UINT8 SecondByte;
UINT8 ThirdByte;
UINT8 FouthByte;
UINT8 FifthByte;
UINT8 SixthByte;
UINT8 SeventhByte;
UINT8 EighthByte;
} Bytes;
} MSR_REGISTER;
///
/// ACPI 2.0 Generic Address Space definition
///
typedef struct _EFI_ACPI_2_0_GENERIC_ADDRESS_STRUCTURE{
UINT8 AddressSpaceId;
UINT8 RegisterBitWidth;
UINT8 RegisterBitOffset;
UINT8 Reserved;
UINT64 Address;
} EFI_ACPI_2_0_GENERIC_ADDRESS_STRUCTURE;
typedef struct {
ACPI_HDR Header;
UINT8 InterfaceType;
UINT8 Reserved_37[3];
EFI_ACPI_2_0_GENERIC_ADDRESS_STRUCTURE BaseAddress;
} EFI_ACPI_DEBUG_PORT_DESCRIPTION_TABLE;
#define PTID_FFS_TABLE_STORAGE_GUID \
{ 0x95DFCAE5, 0xBB28, 0x4d6b, 0xB1, 0xE2, 0x3A, 0xF3, 0xA6, 0xBF, 0x43, 0x4F }
#define RTD3_FFS_TABLE_GUID \
{ 0x7FFC3536, 0x0A8A, 0x448B, 0x95, 0xF4, 0x39, 0xF5, 0xB9, 0xF0, 0x9A, 0xDD }
#define ACPIDEBUG_FFS_TABLE_GUID \
{ 0x94AB6AED, 0x9719, 0x48ef, 0x83, 0x1C, 0x2E, 0x9C, 0x29, 0x75, 0x8C, 0x33 }
#define ZPODD_FFS_TABLE_GUID \
{ 0xE42A76A1, 0xD4B3, 0x4c26, 0xA1, 0xBB, 0x84, 0xA3, 0x50, 0x2A, 0x77, 0x9F }
#define INTELSENSORHUB_FFS_TABLE_GUID \
{ 0xA3201EEC, 0x1612, 0x4577, 0x89, 0x24, 0xCB, 0x32, 0xD5, 0x42, 0xD2, 0x2C }
#define IRMT_FFS_TABLE_STORAGE_GUID \
{ 0xCE2007C7, 0xB389, 0x49c5, 0x84, 0xE3, 0xDB, 0x36, 0xA1, 0xF0, 0x99, 0x3B }
#pragma pack()
//*************************************************************************
//*************************************************************************
//** **
//** (C)Copyright 1985-2013, American Megatrends, Inc. **
//** **
//** All Rights Reserved. **
//** **
//** 5555 Oakbrook Parkway, Suite 200, Norcross, GA 30093 **
//** **
//** Phone: (770)-246-8600 **
//** **
//*************************************************************************
//*************************************************************************
|