1 | /** @file
|
---|
2 | ACPI 3.0 definitions from the ACPI Specification Revision 3.0 September 2, 2004
|
---|
3 |
|
---|
4 | Copyright (c) 2006 - 2007 Intel Corporation. All rights reserved.
|
---|
5 |
|
---|
6 | This program and the accompanying materials are licensed and made available
|
---|
7 | under the terms and conditions of the BSD License which accompanies this
|
---|
8 | distribution. The full text of the license may be found at:
|
---|
9 | http://opensource.org/licenses/bsd-license.php
|
---|
10 |
|
---|
11 | THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
|
---|
12 | WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
|
---|
13 |
|
---|
14 | File Name: Acpi3_0.h
|
---|
15 |
|
---|
16 | **/
|
---|
17 |
|
---|
18 | #ifndef _ACPI_3_0_H_
|
---|
19 | #define _ACPI_3_0_H_
|
---|
20 |
|
---|
21 | #include "IndustryStandard/Acpi.h"
|
---|
22 |
|
---|
23 | //
|
---|
24 | // Ensure proper structure formats
|
---|
25 | //
|
---|
26 | #pragma pack(1)
|
---|
27 | //
|
---|
28 | // ACPI Specification Revision
|
---|
29 | //
|
---|
30 | #define EFI_ACPI_3_0_REVISION 0x03 // BUGBUG: Not in spec yet.
|
---|
31 | //
|
---|
32 | // BUGBUG: OEM values need to be moved somewhere else, probably read from data hub
|
---|
33 | // and produced by a platform specific driver.
|
---|
34 | //
|
---|
35 | //
|
---|
36 | // ACPI 3.0 Generic Address Space definition
|
---|
37 | //
|
---|
38 | typedef struct {
|
---|
39 | UINT8 AddressSpaceId;
|
---|
40 | UINT8 RegisterBitWidth;
|
---|
41 | UINT8 RegisterBitOffset;
|
---|
42 | UINT8 AccessSize;
|
---|
43 | UINT64 Address;
|
---|
44 | } EFI_ACPI_3_0_GENERIC_ADDRESS_STRUCTURE;
|
---|
45 |
|
---|
46 | //
|
---|
47 | // Generic Address Space Address IDs
|
---|
48 | //
|
---|
49 | #define EFI_ACPI_3_0_SYSTEM_MEMORY 0
|
---|
50 | #define EFI_ACPI_3_0_SYSTEM_IO 1
|
---|
51 | #define EFI_ACPI_3_0_PCI_CONFIGURATION_SPACE 2
|
---|
52 | #define EFI_ACPI_3_0_EMBEDDED_CONTROLLER 3
|
---|
53 | #define EFI_ACPI_3_0_SMBUS 4
|
---|
54 | #define EFI_ACPI_3_0_FUNCTIONAL_FIXED_HARDWARE 0x7F
|
---|
55 |
|
---|
56 | //
|
---|
57 | // Generic Address Space Access Sizes
|
---|
58 | //
|
---|
59 | #define EFI_ACPI_3_0_UNDEFINED 0
|
---|
60 | #define EFI_ACPI_3_0_BYTE 1
|
---|
61 | #define EFI_ACPI_3_0_WORD 2
|
---|
62 | #define EFI_ACPI_3_0_DWORD 3
|
---|
63 | #define EFI_ACPI_3_0_QWORD 4
|
---|
64 |
|
---|
65 | //
|
---|
66 | // ACPI 3.0 table structures
|
---|
67 | //
|
---|
68 | //
|
---|
69 | // Root System Description Pointer Structure
|
---|
70 | //
|
---|
71 | typedef struct {
|
---|
72 | UINT64 Signature;
|
---|
73 | UINT8 Checksum;
|
---|
74 | UINT8 OemId[6];
|
---|
75 | UINT8 Revision;
|
---|
76 | UINT32 RsdtAddress;
|
---|
77 | UINT32 Length;
|
---|
78 | UINT64 XsdtAddress;
|
---|
79 | UINT8 ExtendedChecksum;
|
---|
80 | UINT8 Reserved[3];
|
---|
81 | } EFI_ACPI_3_0_ROOT_SYSTEM_DESCRIPTION_POINTER;
|
---|
82 |
|
---|
83 | //
|
---|
84 | // RSD_PTR Revision (as defined in ACPI 3.0 spec.)
|
---|
85 | //
|
---|
86 | #define EFI_ACPI_3_0_ROOT_SYSTEM_DESCRIPTION_POINTER_REVISION 0x02 // ACPISpec30 (Revision 3.0 September 2, 2004) says current value is 2
|
---|
87 | //
|
---|
88 | // Common table header, this prefaces all ACPI tables, including FACS, but
|
---|
89 | // excluding the RSD PTR structure
|
---|
90 | //
|
---|
91 | typedef struct {
|
---|
92 | UINT32 Signature;
|
---|
93 | UINT32 Length;
|
---|
94 | } EFI_ACPI_3_0_COMMON_HEADER;
|
---|
95 |
|
---|
96 | //
|
---|
97 | // Root System Description Table
|
---|
98 | // No definition needed as it is a common description table header followed by a
|
---|
99 | // variable number of UINT32 table pointers.
|
---|
100 | //
|
---|
101 | //
|
---|
102 | // RSDT Revision (as defined in ACPI 3.0 spec.)
|
---|
103 | //
|
---|
104 | #define EFI_ACPI_3_0_ROOT_SYSTEM_DESCRIPTION_TABLE_REVISION 0x01
|
---|
105 |
|
---|
106 | //
|
---|
107 | // Extended System Description Table
|
---|
108 | // No definition needed as it is a common description table header followed by a
|
---|
109 | // variable number of UINT64 table pointers.
|
---|
110 | //
|
---|
111 | //
|
---|
112 | // XSDT Revision (as defined in ACPI 3.0 spec.)
|
---|
113 | //
|
---|
114 | #define EFI_ACPI_3_0_EXTENDED_SYSTEM_DESCRIPTION_TABLE_REVISION 0x01
|
---|
115 |
|
---|
116 | //
|
---|
117 | // Fixed ACPI Description Table Structure (FADT)
|
---|
118 | //
|
---|
119 | typedef struct {
|
---|
120 | EFI_ACPI_DESCRIPTION_HEADER Header;
|
---|
121 | UINT32 FirmwareCtrl;
|
---|
122 | UINT32 Dsdt;
|
---|
123 | UINT8 Reserved0;
|
---|
124 | UINT8 PreferredPmProfile;
|
---|
125 | UINT16 SciInt;
|
---|
126 | UINT32 SmiCmd;
|
---|
127 | UINT8 AcpiEnable;
|
---|
128 | UINT8 AcpiDisable;
|
---|
129 | UINT8 S4BiosReq;
|
---|
130 | UINT8 PstateCnt;
|
---|
131 | UINT32 Pm1aEvtBlk;
|
---|
132 | UINT32 Pm1bEvtBlk;
|
---|
133 | UINT32 Pm1aCntBlk;
|
---|
134 | UINT32 Pm1bCntBlk;
|
---|
135 | UINT32 Pm2CntBlk;
|
---|
136 | UINT32 PmTmrBlk;
|
---|
137 | UINT32 Gpe0Blk;
|
---|
138 | UINT32 Gpe1Blk;
|
---|
139 | UINT8 Pm1EvtLen;
|
---|
140 | UINT8 Pm1CntLen;
|
---|
141 | UINT8 Pm2CntLen;
|
---|
142 | UINT8 PmTmrLen;
|
---|
143 | UINT8 Gpe0BlkLen;
|
---|
144 | UINT8 Gpe1BlkLen;
|
---|
145 | UINT8 Gpe1Base;
|
---|
146 | UINT8 CstCnt;
|
---|
147 | UINT16 PLvl2Lat;
|
---|
148 | UINT16 PLvl3Lat;
|
---|
149 | UINT16 FlushSize;
|
---|
150 | UINT16 FlushStride;
|
---|
151 | UINT8 DutyOffset;
|
---|
152 | UINT8 DutyWidth;
|
---|
153 | UINT8 DayAlrm;
|
---|
154 | UINT8 MonAlrm;
|
---|
155 | UINT8 Century;
|
---|
156 | UINT16 IaPcBootArch;
|
---|
157 | UINT8 Reserved1;
|
---|
158 | UINT32 Flags;
|
---|
159 | EFI_ACPI_3_0_GENERIC_ADDRESS_STRUCTURE ResetReg;
|
---|
160 | UINT8 ResetValue;
|
---|
161 | UINT8 Reserved2[3];
|
---|
162 | UINT64 XFirmwareCtrl;
|
---|
163 | UINT64 XDsdt;
|
---|
164 | EFI_ACPI_3_0_GENERIC_ADDRESS_STRUCTURE XPm1aEvtBlk;
|
---|
165 | EFI_ACPI_3_0_GENERIC_ADDRESS_STRUCTURE XPm1bEvtBlk;
|
---|
166 | EFI_ACPI_3_0_GENERIC_ADDRESS_STRUCTURE XPm1aCntBlk;
|
---|
167 | EFI_ACPI_3_0_GENERIC_ADDRESS_STRUCTURE XPm1bCntBlk;
|
---|
168 | EFI_ACPI_3_0_GENERIC_ADDRESS_STRUCTURE XPm2CntBlk;
|
---|
169 | EFI_ACPI_3_0_GENERIC_ADDRESS_STRUCTURE XPmTmrBlk;
|
---|
170 | EFI_ACPI_3_0_GENERIC_ADDRESS_STRUCTURE XGpe0Blk;
|
---|
171 | EFI_ACPI_3_0_GENERIC_ADDRESS_STRUCTURE XGpe1Blk;
|
---|
172 | } EFI_ACPI_3_0_FIXED_ACPI_DESCRIPTION_TABLE;
|
---|
173 |
|
---|
174 | //
|
---|
175 | // FADT Version (as defined in ACPI 3.0 spec.)
|
---|
176 | //
|
---|
177 | #define EFI_ACPI_3_0_FIXED_ACPI_DESCRIPTION_TABLE_REVISION 0x04
|
---|
178 |
|
---|
179 | //
|
---|
180 | // Fixed ACPI Description Table Preferred Power Management Profile
|
---|
181 | //
|
---|
182 | #define EFI_ACPI_3_0_PM_PROFILE_UNSPECIFIED 0
|
---|
183 | #define EFI_ACPI_3_0_PM_PROFILE_DESKTOP 1
|
---|
184 | #define EFI_ACPI_3_0_PM_PROFILE_MOBILE 2
|
---|
185 | #define EFI_ACPI_3_0_PM_PROFILE_WORKSTATION 3
|
---|
186 | #define EFI_ACPI_3_0_PM_PROFILE_ENTERPRISE_SERVER 4
|
---|
187 | #define EFI_ACPI_3_0_PM_PROFILE_SOHO_SERVER 5
|
---|
188 | #define EFI_ACPI_3_0_PM_PROFILE_APPLIANCE_PC 6
|
---|
189 | #define EFI_ACPI_3_0_PM_PROFILE_PERFORMANCE_SERVER 7
|
---|
190 |
|
---|
191 | //
|
---|
192 | // Fixed ACPI Description Table Boot Architecture Flags
|
---|
193 | // All other bits are reserved and must be set to 0.
|
---|
194 | //
|
---|
195 | #define EFI_ACPI_3_0_LEGACY_DEVICES (1 << 0)
|
---|
196 | #define EFI_ACPI_3_0_8042 (1 << 1)
|
---|
197 | #define EFI_ACPI_3_0_VGA_NOT_PRESENT (1 << 2)
|
---|
198 | #define EFI_ACPI_3_0_MSI_NOT_SUPPORTED (1 << 3)
|
---|
199 | //
|
---|
200 | // Fixed ACPI Description Table Fixed Feature Flags
|
---|
201 | // All other bits are reserved and must be set to 0.
|
---|
202 | //
|
---|
203 | #define EFI_ACPI_3_0_WBINVD (1 << 0)
|
---|
204 | #define EFI_ACPI_3_0_WBINVD_FLUSH (1 << 1)
|
---|
205 | #define EFI_ACPI_3_0_PROC_C1 (1 << 2)
|
---|
206 | #define EFI_ACPI_3_0_P_LVL2_UP (1 << 3)
|
---|
207 | #define EFI_ACPI_3_0_PWR_BUTTON (1 << 4)
|
---|
208 | #define EFI_ACPI_3_0_SLP_BUTTON (1 << 5)
|
---|
209 | #define EFI_ACPI_3_0_FIX_RTC (1 << 6)
|
---|
210 | #define EFI_ACPI_3_0_RTC_S4 (1 << 7)
|
---|
211 | #define EFI_ACPI_3_0_TMR_VAL_EXT (1 << 8)
|
---|
212 | #define EFI_ACPI_3_0_DCK_CAP (1 << 9)
|
---|
213 | #define EFI_ACPI_3_0_RESET_REG_SUP (1 << 10)
|
---|
214 | #define EFI_ACPI_3_0_SEALED_CASE (1 << 11)
|
---|
215 | #define EFI_ACPI_3_0_HEADLESS (1 << 12)
|
---|
216 | #define EFI_ACPI_3_0_CPU_SW_SLP (1 << 13)
|
---|
217 | #define EFI_ACPI_3_0_PCI_EXP_WAK (1 << 14)
|
---|
218 | #define EFI_ACPI_3_0_USE_PLATFORM_CLOCK (1 << 15)
|
---|
219 | #define EFI_ACPI_3_0_S4_RTC_STS_VALID (1 << 16)
|
---|
220 | #define EFI_ACPI_3_0_REMOTE_POWER_ON_CAPABLE (1 << 17)
|
---|
221 | #define EFI_ACPI_3_0_FORCE_APIC_CLUSTER_MODEL (1 << 18)
|
---|
222 | #define EFI_ACPI_3_0_FORCE_APIC_PHYSICAL_DESTINATION_MODE (1 << 19)
|
---|
223 |
|
---|
224 | //
|
---|
225 | // Firmware ACPI Control Structure
|
---|
226 | //
|
---|
227 | typedef struct {
|
---|
228 | UINT32 Signature;
|
---|
229 | UINT32 Length;
|
---|
230 | UINT32 HardwareSignature;
|
---|
231 | UINT32 FirmwareWakingVector;
|
---|
232 | UINT32 GlobalLock;
|
---|
233 | UINT32 Flags;
|
---|
234 | UINT64 XFirmwareWakingVector;
|
---|
235 | UINT8 Version;
|
---|
236 | UINT8 Reserved[31];
|
---|
237 | } EFI_ACPI_3_0_FIRMWARE_ACPI_CONTROL_STRUCTURE;
|
---|
238 |
|
---|
239 | //
|
---|
240 | // FACS Version (as defined in ACPI 3.0 spec.)
|
---|
241 | //
|
---|
242 | #define EFI_ACPI_3_0_FIRMWARE_ACPI_CONTROL_STRUCTURE_VERSION 0x01
|
---|
243 |
|
---|
244 | //
|
---|
245 | // Firmware Control Structure Feature Flags
|
---|
246 | // All other bits are reserved and must be set to 0.
|
---|
247 | //
|
---|
248 | #define EFI_ACPI_3_0_S4BIOS_F (1 << 0)
|
---|
249 |
|
---|
250 | //
|
---|
251 | // Differentiated System Description Table,
|
---|
252 | // Secondary System Description Table
|
---|
253 | // and Persistent System Description Table,
|
---|
254 | // no definition needed as they are common description table header followed by a
|
---|
255 | // definition block.
|
---|
256 | //
|
---|
257 | #define EFI_ACPI_3_0_DIFFERENTIATED_SYSTEM_DESCRIPTION_TABLE_REVISION 0x02
|
---|
258 | #define EFI_ACPI_3_0_SECONDARY_SYSTEM_DESCRIPTION_TABLE_REVISION 0x02
|
---|
259 |
|
---|
260 | //
|
---|
261 | // Multiple APIC Description Table header definition. The rest of the table
|
---|
262 | // must be defined in a platform specific manner.
|
---|
263 | //
|
---|
264 | typedef struct {
|
---|
265 | EFI_ACPI_DESCRIPTION_HEADER Header;
|
---|
266 | UINT32 LocalApicAddress;
|
---|
267 | UINT32 Flags;
|
---|
268 | } EFI_ACPI_3_0_MULTIPLE_APIC_DESCRIPTION_TABLE_HEADER;
|
---|
269 |
|
---|
270 | //
|
---|
271 | // MADT Revision (as defined in ACPI 3.0 spec.)
|
---|
272 | //
|
---|
273 | #define EFI_ACPI_3_0_MULTIPLE_APIC_DESCRIPTION_TABLE_REVISION 0x02
|
---|
274 |
|
---|
275 | //
|
---|
276 | // Multiple APIC Flags
|
---|
277 | // All other bits are reserved and must be set to 0.
|
---|
278 | //
|
---|
279 | #define EFI_ACPI_3_0_PCAT_COMPAT (1 << 0)
|
---|
280 |
|
---|
281 | //
|
---|
282 | // Multiple APIC Description Table APIC structure types
|
---|
283 | // All other values between 0x09 an 0xFF are reserved and
|
---|
284 | // will be ignored by OSPM.
|
---|
285 | //
|
---|
286 | #define EFI_ACPI_3_0_PROCESSOR_LOCAL_APIC 0x00
|
---|
287 | #define EFI_ACPI_3_0_IO_APIC 0x01
|
---|
288 | #define EFI_ACPI_3_0_INTERRUPT_SOURCE_OVERRIDE 0x02
|
---|
289 | #define EFI_ACPI_3_0_NON_MASKABLE_INTERRUPT_SOURCE 0x03
|
---|
290 | #define EFI_ACPI_3_0_LOCAL_APIC_NMI 0x04
|
---|
291 | #define EFI_ACPI_3_0_LOCAL_APIC_ADDRESS_OVERRIDE 0x05
|
---|
292 | #define EFI_ACPI_3_0_IO_SAPIC 0x06
|
---|
293 | #define EFI_ACPI_3_0_LOCAL_SAPIC 0x07
|
---|
294 | #define EFI_ACPI_3_0_PLATFORM_INTERRUPT_SOURCES 0x08
|
---|
295 |
|
---|
296 | //
|
---|
297 | // APIC Structure Definitions
|
---|
298 | //
|
---|
299 | //
|
---|
300 | // Processor Local APIC Structure Definition
|
---|
301 | //
|
---|
302 | typedef struct {
|
---|
303 | UINT8 Type;
|
---|
304 | UINT8 Length;
|
---|
305 | UINT8 AcpiProcessorId;
|
---|
306 | UINT8 ApicId;
|
---|
307 | UINT32 Flags;
|
---|
308 | } EFI_ACPI_3_0_PROCESSOR_LOCAL_APIC_STRUCTURE;
|
---|
309 |
|
---|
310 | //
|
---|
311 | // Local APIC Flags. All other bits are reserved and must be 0.
|
---|
312 | //
|
---|
313 | #define EFI_ACPI_3_0_LOCAL_APIC_ENABLED (1 << 0)
|
---|
314 |
|
---|
315 | //
|
---|
316 | // IO APIC Structure
|
---|
317 | //
|
---|
318 | typedef struct {
|
---|
319 | UINT8 Type;
|
---|
320 | UINT8 Length;
|
---|
321 | UINT8 IoApicId;
|
---|
322 | UINT8 Reserved;
|
---|
323 | UINT32 IoApicAddress;
|
---|
324 | UINT32 GlobalSystemInterruptBase;
|
---|
325 | } EFI_ACPI_3_0_IO_APIC_STRUCTURE;
|
---|
326 |
|
---|
327 | //
|
---|
328 | // Interrupt Source Override Structure
|
---|
329 | //
|
---|
330 | typedef struct {
|
---|
331 | UINT8 Type;
|
---|
332 | UINT8 Length;
|
---|
333 | UINT8 Bus;
|
---|
334 | UINT8 Source;
|
---|
335 | UINT32 GlobalSystemInterrupt;
|
---|
336 | UINT16 Flags;
|
---|
337 | } EFI_ACPI_3_0_INTERRUPT_SOURCE_OVERRIDE_STRUCTURE;
|
---|
338 |
|
---|
339 | //
|
---|
340 | // Platform Interrupt Sources Structure Definition
|
---|
341 | //
|
---|
342 | typedef struct {
|
---|
343 | UINT8 Type;
|
---|
344 | UINT8 Length;
|
---|
345 | UINT16 Flags;
|
---|
346 | UINT8 InterruptType;
|
---|
347 | UINT8 ProcessorId;
|
---|
348 | UINT8 ProcessorEid;
|
---|
349 | UINT8 IoSapicVector;
|
---|
350 | UINT32 GlobalSystemInterrupt;
|
---|
351 | UINT32 PlatformInterruptSourceFlags;
|
---|
352 | UINT8 CpeiProcessorOverride;
|
---|
353 | UINT8 Reserved[31];
|
---|
354 | } EFI_ACPI_3_0_PLATFORM_INTERRUPT_APIC_STRUCTURE;
|
---|
355 |
|
---|
356 | //
|
---|
357 | // MPS INTI flags.
|
---|
358 | // All other bits are reserved and must be set to 0.
|
---|
359 | //
|
---|
360 | #define EFI_ACPI_3_0_POLARITY (3 << 0)
|
---|
361 | #define EFI_ACPI_3_0_TRIGGER_MODE (3 << 2)
|
---|
362 |
|
---|
363 | //
|
---|
364 | // Non-Maskable Interrupt Source Structure
|
---|
365 | //
|
---|
366 | typedef struct {
|
---|
367 | UINT8 Type;
|
---|
368 | UINT8 Length;
|
---|
369 | UINT16 Flags;
|
---|
370 | UINT32 GlobalSystemInterrupt;
|
---|
371 | } EFI_ACPI_3_0_NON_MASKABLE_INTERRUPT_SOURCE_STRUCTURE;
|
---|
372 |
|
---|
373 | //
|
---|
374 | // Local APIC NMI Structure
|
---|
375 | //
|
---|
376 | typedef struct {
|
---|
377 | UINT8 Type;
|
---|
378 | UINT8 Length;
|
---|
379 | UINT8 AcpiProcessorId;
|
---|
380 | UINT16 Flags;
|
---|
381 | UINT8 LocalApicLint;
|
---|
382 | } EFI_ACPI_3_0_LOCAL_APIC_NMI_STRUCTURE;
|
---|
383 |
|
---|
384 | //
|
---|
385 | // Local APIC Address Override Structure
|
---|
386 | //
|
---|
387 | typedef struct {
|
---|
388 | UINT8 Type;
|
---|
389 | UINT8 Length;
|
---|
390 | UINT16 Reserved;
|
---|
391 | UINT64 LocalApicAddress;
|
---|
392 | } EFI_ACPI_3_0_LOCAL_APIC_ADDRESS_OVERRIDE_STRUCTURE;
|
---|
393 |
|
---|
394 | //
|
---|
395 | // IO SAPIC Structure
|
---|
396 | //
|
---|
397 | typedef struct {
|
---|
398 | UINT8 Type;
|
---|
399 | UINT8 Length;
|
---|
400 | UINT8 IoApicId;
|
---|
401 | UINT8 Reserved;
|
---|
402 | UINT32 GlobalSystemInterruptBase;
|
---|
403 | UINT64 IoSapicAddress;
|
---|
404 | } EFI_ACPI_3_0_IO_SAPIC_STRUCTURE;
|
---|
405 |
|
---|
406 | //
|
---|
407 | // Local SAPIC Structure
|
---|
408 | // This struct followed by a null-terminated ASCII string - ACPI Processor UID String
|
---|
409 | //
|
---|
410 | typedef struct {
|
---|
411 | UINT8 Type;
|
---|
412 | UINT8 Length;
|
---|
413 | UINT8 AcpiProcessorId;
|
---|
414 | UINT8 LocalSapicId;
|
---|
415 | UINT8 LocalSapicEid;
|
---|
416 | UINT8 Reserved[3];
|
---|
417 | UINT32 Flags;
|
---|
418 | UINT32 ACPIProcessorUIDValue;
|
---|
419 | } EFI_ACPI_3_0_PROCESSOR_LOCAL_SAPIC_STRUCTURE;
|
---|
420 |
|
---|
421 | //
|
---|
422 | // Platform Interrupt Sources Structure
|
---|
423 | //
|
---|
424 | typedef struct {
|
---|
425 | UINT8 Type;
|
---|
426 | UINT8 Length;
|
---|
427 | UINT16 Flags;
|
---|
428 | UINT8 InterruptType;
|
---|
429 | UINT8 ProcessorId;
|
---|
430 | UINT8 ProcessorEid;
|
---|
431 | UINT8 IoSapicVector;
|
---|
432 | UINT32 GlobalSystemInterrupt;
|
---|
433 | UINT32 PlatformInterruptSourceFlags;
|
---|
434 | } EFI_ACPI_3_0_PLATFORM_INTERRUPT_SOURCES_STRUCTURE;
|
---|
435 |
|
---|
436 | //
|
---|
437 | // Platform Interrupt Source Flags.
|
---|
438 | // All other bits are reserved and must be set to 0.
|
---|
439 | //
|
---|
440 | #define EFI_ACPI_3_0_CPEI_PROCESSOR_OVERRIDE (1 << 0)
|
---|
441 |
|
---|
442 | //
|
---|
443 | // Smart Battery Description Table (SBST)
|
---|
444 | //
|
---|
445 | typedef struct {
|
---|
446 | EFI_ACPI_DESCRIPTION_HEADER Header;
|
---|
447 | UINT32 WarningEnergyLevel;
|
---|
448 | UINT32 LowEnergyLevel;
|
---|
449 | UINT32 CriticalEnergyLevel;
|
---|
450 | } EFI_ACPI_3_0_SMART_BATTERY_DESCRIPTION_TABLE;
|
---|
451 |
|
---|
452 | //
|
---|
453 | // SBST Version (as defined in ACPI 3.0 spec.)
|
---|
454 | //
|
---|
455 | #define EFI_ACPI_3_0_SMART_BATTERY_DESCRIPTION_TABLE_REVISION 0x01
|
---|
456 |
|
---|
457 | //
|
---|
458 | // Embedded Controller Boot Resources Table (ECDT)
|
---|
459 | // The table is followed by a null terminated ASCII string that contains
|
---|
460 | // a fully qualified reference to the name space object.
|
---|
461 | //
|
---|
462 | typedef struct {
|
---|
463 | EFI_ACPI_DESCRIPTION_HEADER Header;
|
---|
464 | EFI_ACPI_3_0_GENERIC_ADDRESS_STRUCTURE EcControl;
|
---|
465 | EFI_ACPI_3_0_GENERIC_ADDRESS_STRUCTURE EcData;
|
---|
466 | UINT32 Uid;
|
---|
467 | UINT8 GpeBit;
|
---|
468 | } EFI_ACPI_3_0_EMBEDDED_CONTROLLER_BOOT_RESOURCES_TABLE;
|
---|
469 |
|
---|
470 | //
|
---|
471 | // ECDT Version (as defined in ACPI 3.0 spec.)
|
---|
472 | //
|
---|
473 | #define EFI_ACPI_3_0_EMBEDDED_CONTROLLER_BOOT_RESOURCES_TABLE_REVISION 0x01
|
---|
474 |
|
---|
475 | //
|
---|
476 | // System Resource Affinity Table (SRAT. The rest of the table
|
---|
477 | // must be defined in a platform specific manner.
|
---|
478 | //
|
---|
479 | typedef struct {
|
---|
480 | EFI_ACPI_DESCRIPTION_HEADER Header;
|
---|
481 | UINT32 Reserved1; // Must be set to 1
|
---|
482 | UINT64 Reserved2;
|
---|
483 | } EFI_ACPI_3_0_SYSTEM_RESOURCE_AFFINITY_TABLE_HEADER;
|
---|
484 |
|
---|
485 | //
|
---|
486 | // SRAT Version (as defined in ACPI 3.0 spec.)
|
---|
487 | //
|
---|
488 | #define EFI_ACPI_3_0_SYSTEM_RESOURCE_AFFINITY_TABLE_REVISION 0x02
|
---|
489 |
|
---|
490 | //
|
---|
491 | // SRAT structure types.
|
---|
492 | // All other values between 0x02 an 0xFF are reserved and
|
---|
493 | // will be ignored by OSPM.
|
---|
494 | //
|
---|
495 | #define EFI_ACPI_3_0_PROCESSOR_LOCAL_APIC_SAPIC_AFFINITY 0x00
|
---|
496 | #define EFI_ACPI_3_0_MEMORY_AFFINITY 0x01
|
---|
497 |
|
---|
498 | //
|
---|
499 | // Processor Local APIC/SAPIC Affinity Structure Definition
|
---|
500 | //
|
---|
501 | typedef struct {
|
---|
502 | UINT8 Type;
|
---|
503 | UINT8 Length;
|
---|
504 | UINT8 ProximityDomain7To0;
|
---|
505 | UINT8 ApicId;
|
---|
506 | UINT32 Flags;
|
---|
507 | UINT8 LocalSapicEid;
|
---|
508 | UINT8 ProximityDomain31To8[3];
|
---|
509 | UINT8 Reserved[4];
|
---|
510 | } EFI_ACPI_3_0_PROCESSOR_LOCAL_APIC_SAPIC_AFFINITY_STRUCTURE;
|
---|
511 |
|
---|
512 | //
|
---|
513 | // Local APIC/SAPIC Flags. All other bits are reserved and must be 0.
|
---|
514 | //
|
---|
515 | #define EFI_ACPI_3_0_PROCESSOR_LOCAL_APIC_SAPIC_ENABLED (1 << 0)
|
---|
516 |
|
---|
517 | //
|
---|
518 | // Memory Affinity Structure Definition
|
---|
519 | //
|
---|
520 | typedef struct {
|
---|
521 | UINT8 Type;
|
---|
522 | UINT8 Length;
|
---|
523 | UINT32 ProximityDomain;
|
---|
524 | UINT16 Reserved1;
|
---|
525 | UINT32 AddressBaseLow;
|
---|
526 | UINT32 AddressBaseHigh;
|
---|
527 | UINT32 LengthLow;
|
---|
528 | UINT32 LengthHigh;
|
---|
529 | UINT32 Reserved2;
|
---|
530 | UINT32 Flags;
|
---|
531 | UINT64 Reserved3;
|
---|
532 | } EFI_ACPI_3_0_MEMORY_AFFINITY_STRUCTURE;
|
---|
533 |
|
---|
534 | //
|
---|
535 | // Memory Flags. All other bits are reserved and must be 0.
|
---|
536 | //
|
---|
537 | #define EFI_ACPI_3_0_MEMORY_ENABLED (1 << 0)
|
---|
538 | #define EFI_ACPI_3_0_MEMORY_HOT_PLUGGABLE (1 << 1)
|
---|
539 | #define EFI_ACPI_3_0_MEMORY_NONVOLATILE (1 << 2)
|
---|
540 |
|
---|
541 | //
|
---|
542 | // System Locality Distance Information Table (SLIT).
|
---|
543 | // The rest of the table is a matrix.
|
---|
544 | //
|
---|
545 | typedef struct {
|
---|
546 | EFI_ACPI_DESCRIPTION_HEADER Header;
|
---|
547 | UINT64 NumberOfSystemLocalities;
|
---|
548 | } EFI_ACPI_3_0_SYSTEM_LOCALITY_DISTANCE_INFORMATION_TABLE_HEADER;
|
---|
549 |
|
---|
550 | //
|
---|
551 | // SLIT Version (as defined in ACPI 3.0 spec.)
|
---|
552 | //
|
---|
553 | #define EFI_ACPI_3_0_SYSTEM_LOCALITY_DISTANCE_INFORMATION_TABLE_REVISION 0x01
|
---|
554 |
|
---|
555 | //
|
---|
556 | // Known table signatures
|
---|
557 | //
|
---|
558 | //
|
---|
559 | // "RSD PTR " Root System Description Pointer
|
---|
560 | //
|
---|
561 | #define EFI_ACPI_3_0_ROOT_SYSTEM_DESCRIPTION_POINTER_SIGNATURE 0x2052545020445352ULL
|
---|
562 |
|
---|
563 | //
|
---|
564 | // "APIC" Multiple APIC Description Table
|
---|
565 | //
|
---|
566 | #define EFI_ACPI_3_0_MULTIPLE_APIC_DESCRIPTION_TABLE_SIGNATURE 0x43495041
|
---|
567 |
|
---|
568 | //
|
---|
569 | // "DSDT" Differentiated System Description Table
|
---|
570 | //
|
---|
571 | #define EFI_ACPI_3_0_DIFFERENTIATED_SYSTEM_DESCRIPTION_TABLE_SIGNATURE 0x54445344
|
---|
572 |
|
---|
573 | //
|
---|
574 | // "ECDT" Embedded Controller Boot Resources Table
|
---|
575 | //
|
---|
576 | #define EFI_ACPI_3_0_EMBEDDED_CONTROLLER_BOOT_RESOURCES_TABLE_SIGNATURE 0x54444345
|
---|
577 |
|
---|
578 | //
|
---|
579 | // "FACP" Fixed ACPI Description Table
|
---|
580 | //
|
---|
581 | #define EFI_ACPI_3_0_FIXED_ACPI_DESCRIPTION_TABLE_SIGNATURE 0x50434146
|
---|
582 |
|
---|
583 | //
|
---|
584 | // "FACS" Firmware ACPI Control Structure
|
---|
585 | //
|
---|
586 | #define EFI_ACPI_3_0_FIRMWARE_ACPI_CONTROL_STRUCTURE_SIGNATURE 0x53434146
|
---|
587 |
|
---|
588 | //
|
---|
589 | // "PSDT" Persistent System Description Table
|
---|
590 | //
|
---|
591 | #define EFI_ACPI_3_0_PERSISTENT_SYSTEM_DESCRIPTION_TABLE_SIGNATURE 0x54445350
|
---|
592 |
|
---|
593 | //
|
---|
594 | // "RSDT" Root System Description Table
|
---|
595 | //
|
---|
596 | #define EFI_ACPI_3_0_ROOT_SYSTEM_DESCRIPTION_TABLE_SIGNATURE 0x54445352
|
---|
597 |
|
---|
598 | //
|
---|
599 | // "SBST" Smart Battery Specification Table
|
---|
600 | //
|
---|
601 | #define EFI_ACPI_3_0_SMART_BATTERY_SPECIFICATION_TABLE_SIGNATURE 0x54534253
|
---|
602 |
|
---|
603 | //
|
---|
604 | // "SLIT" System Locality Information Table
|
---|
605 | //
|
---|
606 | #define EFI_ACPI_3_0_SYSTEM_LOCALITY_INFORMATION_TABLE_SIGNATURE 0x54494C53
|
---|
607 |
|
---|
608 | //
|
---|
609 | // "SRAT" System Resource Affinity Table
|
---|
610 | //
|
---|
611 | #define EFI_ACPI_3_0_SYSTEM_RESOURCE_AFFINITY_TABLE_SIGNATURE 0x54415253
|
---|
612 |
|
---|
613 | //
|
---|
614 | // "SSDT" Secondary System Description Table
|
---|
615 | //
|
---|
616 | #define EFI_ACPI_3_0_SECONDARY_SYSTEM_DESCRIPTION_TABLE_SIGNATURE 0x54445353
|
---|
617 |
|
---|
618 | //
|
---|
619 | // "XSDT" Extended System Description Table
|
---|
620 | //
|
---|
621 | #define EFI_ACPI_3_0_EXTENDED_SYSTEM_DESCRIPTION_TABLE_SIGNATURE 0x54445358
|
---|
622 |
|
---|
623 | //
|
---|
624 | // "BOOT" MS Simple Boot Spec
|
---|
625 | //
|
---|
626 | #define EFI_ACPI_3_0_SIMPLE_BOOT_FLAG_TABLE_SIGNATURE 0x544F4F42
|
---|
627 |
|
---|
628 | //
|
---|
629 | // "CPEP" Corrected Platform Error Polling Table
|
---|
630 | // See
|
---|
631 | //
|
---|
632 | #define EFI_ACPI_3_0_CORRECTED_PLATFORM_ERROR_POLLING_TABLE_SIGNATURE 0x50455043
|
---|
633 |
|
---|
634 | //
|
---|
635 | // "DBGP" MS Debug Port Spec
|
---|
636 | //
|
---|
637 | #define EFI_ACPI_3_0_DEBUG_PORT_TABLE_SIGNATURE 0x50474244
|
---|
638 |
|
---|
639 | //
|
---|
640 | // "ETDT" Event Timer Description Table
|
---|
641 | //
|
---|
642 | #define EFI_ACPI_3_0_EVENT_TIMER_DESCRIPTION_TABLE_SIGNATURE 0x54445445
|
---|
643 |
|
---|
644 | //
|
---|
645 | // "HPET" IA-PC High Precision Event Timer Table
|
---|
646 | //
|
---|
647 | #define EFI_ACPI_3_0_HIGH_PRECISION_EVENT_TIMER_TABLE_SIGNATURE 0x54455048
|
---|
648 |
|
---|
649 | //
|
---|
650 | // "MCFG" PCI Express Memory Mapped Configuration Space Base Address Description Table
|
---|
651 | //
|
---|
652 | #define EFI_ACPI_3_0_PCI_EXPRESS_MEMORY_MAPPED_CONFIGURATION_SPACE_BASE_ADDRESS_DESCRIPTION_TABLE_SIGNATURE 0x4746434D
|
---|
653 |
|
---|
654 | //
|
---|
655 | // "SPCR" Serial Port Concole Redirection Table
|
---|
656 | //
|
---|
657 | #define EFI_ACPI_3_0_SERIAL_PORT_CONSOLE_REDIRECTION_TABLE_SIGNATURE 0x52435053
|
---|
658 |
|
---|
659 | //
|
---|
660 | // "SPMI" Server Platform Management Interface Table
|
---|
661 | //
|
---|
662 | #define EFI_ACPI_3_0_SERVER_PLATFORM_MANAGEMENT_INTERFACE_TABLE_SIGNATURE 0x494D5053
|
---|
663 |
|
---|
664 | //
|
---|
665 | // "TCPA" Trusted Computing Platform Alliance Capabilities Table
|
---|
666 | //
|
---|
667 | #define EFI_ACPI_3_0_TRUSTED_COMPUTING_PLATFORM_ALLIANCE_CAPABILITIES_TABLE_SIGNATURE 0x41504354
|
---|
668 |
|
---|
669 | //
|
---|
670 | // "WDRT" Watchdog Resource Table
|
---|
671 | //
|
---|
672 | #define EFI_ACPI_3_0_WATCHDOG_RESOURCE_TABLE_SIGNATURE 0x54524457
|
---|
673 |
|
---|
674 | #pragma pack()
|
---|
675 |
|
---|
676 | #endif
|
---|