Print this page
update to acpica-unix2-20131218
acpica-unix2-20130823
PANKOVs restructure
Split |
Close |
Expand all |
Collapse all |
--- old/usr/src/uts/intel/sys/acpi/actbl2.h
+++ new/usr/src/common/acpica/include/actbl2.h
1 1 /******************************************************************************
2 2 *
3 3 * Name: actbl2.h - ACPI Table Definitions (tables not in ACPI spec)
4 4 *
5 5 *****************************************************************************/
6 6
7 7 /*
8 - * Copyright (C) 2000 - 2011, Intel Corp.
8 + * Copyright (C) 2000 - 2013, Intel Corp.
9 9 * All rights reserved.
10 10 *
11 11 * Redistribution and use in source and binary forms, with or without
12 12 * modification, are permitted provided that the following conditions
13 13 * are met:
14 14 * 1. Redistributions of source code must retain the above copyright
15 15 * notice, this list of conditions, and the following disclaimer,
16 16 * without modification.
17 17 * 2. Redistributions in binary form must reproduce at minimum a disclaimer
18 18 * substantially similar to the "NO WARRANTY" disclaimer below
19 19 * ("Disclaimer") and any redistribution must be conditioned upon
20 20 * including a substantially similar Disclaimer requirement for further
21 21 * binary redistribution.
22 22 * 3. Neither the names of the above-listed copyright holders nor the names
23 23 * of any contributors may be used to endorse or promote products derived
24 24 * from this software without specific prior written permission.
25 25 *
26 26 * Alternatively, this software may be distributed under the terms of the
27 27 * GNU General Public License ("GPL") version 2 as published by the Free
28 28 * Software Foundation.
29 29 *
30 30 * NO WARRANTY
31 31 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
32 32 * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
33 33 * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR
34 34 * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
35 35 * HOLDERS OR CONTRIBUTORS BE LIABLE FOR SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
36 36 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
37 37 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
38 38 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
39 39 * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING
40 40 * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
41 41 * POSSIBILITY OF SUCH DAMAGES.
42 42 */
43 43
44 44 #ifndef __ACTBL2_H__
45 45 #define __ACTBL2_H__
46 46
47 47
48 48 /*******************************************************************************
49 49 *
50 50 * Additional ACPI Tables (2)
51 51 *
52 52 * These tables are not consumed directly by the ACPICA subsystem, but are
53 53 * included here to support device drivers and the AML disassembler.
54 54 *
55 55 * The tables in this file are defined by third-party specifications, and are
56 56 * not defined directly by the ACPI specification itself.
57 57 *
↓ open down ↓ |
39 lines elided |
↑ open up ↑ |
58 58 ******************************************************************************/
59 59
60 60
61 61 /*
62 62 * Values for description table header signatures for tables defined in this
63 63 * file. Useful because they make it more difficult to inadvertently type in
64 64 * the wrong signature.
65 65 */
66 66 #define ACPI_SIG_ASF "ASF!" /* Alert Standard Format table */
67 67 #define ACPI_SIG_BOOT "BOOT" /* Simple Boot Flag Table */
68 +#define ACPI_SIG_CSRT "CSRT" /* Core System Resource Table */
69 +#define ACPI_SIG_DBG2 "DBG2" /* Debug Port table type 2 */
68 70 #define ACPI_SIG_DBGP "DBGP" /* Debug Port table */
69 71 #define ACPI_SIG_DMAR "DMAR" /* DMA Remapping table */
70 72 #define ACPI_SIG_HPET "HPET" /* High Precision Event Timer table */
71 73 #define ACPI_SIG_IBFT "IBFT" /* iSCSI Boot Firmware Table */
72 74 #define ACPI_SIG_IVRS "IVRS" /* I/O Virtualization Reporting Structure */
73 75 #define ACPI_SIG_MCFG "MCFG" /* PCI Memory Mapped Configuration table */
74 76 #define ACPI_SIG_MCHI "MCHI" /* Management Controller Host Interface table */
77 +#define ACPI_SIG_MTMR "MTMR" /* MID Timer table */
75 78 #define ACPI_SIG_SLIC "SLIC" /* Software Licensing Description Table */
76 79 #define ACPI_SIG_SPCR "SPCR" /* Serial Port Console Redirection table */
77 80 #define ACPI_SIG_SPMI "SPMI" /* Server Platform Management Interface table */
78 81 #define ACPI_SIG_TCPA "TCPA" /* Trusted Computing Platform Alliance table */
79 82 #define ACPI_SIG_UEFI "UEFI" /* Uefi Boot Optimization Table */
83 +#define ACPI_SIG_VRTC "VRTC" /* Virtual Real Time Clock Table */
80 84 #define ACPI_SIG_WAET "WAET" /* Windows ACPI Emulated devices Table */
81 85 #define ACPI_SIG_WDAT "WDAT" /* Watchdog Action Table */
82 86 #define ACPI_SIG_WDDT "WDDT" /* Watchdog Timer Description Table */
83 87 #define ACPI_SIG_WDRT "WDRT" /* Watchdog Resource Table */
84 88
85 89 #ifdef ACPI_UNDEFINED_TABLES
86 90 /*
87 91 * These tables have been seen in the field, but no definition has been found
88 92 */
89 93 #define ACPI_SIG_ATKG "ATKG"
90 94 #define ACPI_SIG_GSCI "GSCI" /* GMCH SCI table */
↓ open down ↓ |
1 lines elided |
↑ open up ↑ |
91 95 #define ACPI_SIG_IEIT "IEIT"
92 96 #endif
93 97
94 98 /*
95 99 * All tables must be byte-packed to match the ACPI specification, since
96 100 * the tables are provided by the system BIOS.
97 101 */
98 102 #pragma pack(1)
99 103
100 104 /*
101 - * Note about bitfields: The UINT8 type is used for bitfields in ACPI tables.
102 - * This is the only type that is even remotely portable. Anything else is not
103 - * portable, so do not use any other bitfield types.
105 + * Note: C bitfields are not used for this reason:
106 + *
107 + * "Bitfields are great and easy to read, but unfortunately the C language
108 + * does not specify the layout of bitfields in memory, which means they are
109 + * essentially useless for dealing with packed data in on-disk formats or
110 + * binary wire protocols." (Or ACPI tables and buffers.) "If you ask me,
111 + * this decision was a design error in C. Ritchie could have picked an order
112 + * and stuck with it." Norman Ramsey.
113 + * See http://stackoverflow.com/a/1053662/41661
104 114 */
105 115
106 116
107 117 /*******************************************************************************
108 118 *
109 119 * ASF - Alert Standard Format table (Signature "ASF!")
110 120 * Revision 0x10
111 121 *
112 122 * Conforms to the Alert Standard Format Specification V2.0, 23 April 2003
113 123 *
114 124 ******************************************************************************/
115 125
116 126 typedef struct acpi_table_asf
117 127 {
118 128 ACPI_TABLE_HEADER Header; /* Common ACPI table header */
119 129
120 130 } ACPI_TABLE_ASF;
121 131
122 132
123 133 /* ASF subtable header */
124 134
125 135 typedef struct acpi_asf_header
126 136 {
127 137 UINT8 Type;
128 138 UINT8 Reserved;
129 139 UINT16 Length;
130 140
131 141 } ACPI_ASF_HEADER;
132 142
133 143
134 144 /* Values for Type field above */
135 145
136 146 enum AcpiAsfType
137 147 {
138 148 ACPI_ASF_TYPE_INFO = 0,
139 149 ACPI_ASF_TYPE_ALERT = 1,
140 150 ACPI_ASF_TYPE_CONTROL = 2,
141 151 ACPI_ASF_TYPE_BOOT = 3,
142 152 ACPI_ASF_TYPE_ADDRESS = 4,
143 153 ACPI_ASF_TYPE_RESERVED = 5
144 154 };
145 155
146 156 /*
147 157 * ASF subtables
148 158 */
149 159
150 160 /* 0: ASF Information */
151 161
152 162 typedef struct acpi_asf_info
153 163 {
154 164 ACPI_ASF_HEADER Header;
155 165 UINT8 MinResetValue;
156 166 UINT8 MinPollInterval;
157 167 UINT16 SystemId;
158 168 UINT32 MfgId;
159 169 UINT8 Flags;
160 170 UINT8 Reserved2[3];
161 171
162 172 } ACPI_ASF_INFO;
163 173
164 174 /* Masks for Flags field above */
165 175
166 176 #define ACPI_ASF_SMBUS_PROTOCOLS (1)
167 177
168 178
169 179 /* 1: ASF Alerts */
170 180
171 181 typedef struct acpi_asf_alert
172 182 {
173 183 ACPI_ASF_HEADER Header;
174 184 UINT8 AssertMask;
175 185 UINT8 DeassertMask;
176 186 UINT8 Alerts;
177 187 UINT8 DataLength;
178 188
179 189 } ACPI_ASF_ALERT;
180 190
181 191 typedef struct acpi_asf_alert_data
182 192 {
183 193 UINT8 Address;
184 194 UINT8 Command;
185 195 UINT8 Mask;
186 196 UINT8 Value;
187 197 UINT8 SensorType;
188 198 UINT8 Type;
189 199 UINT8 Offset;
190 200 UINT8 SourceType;
191 201 UINT8 Severity;
192 202 UINT8 SensorNumber;
193 203 UINT8 Entity;
194 204 UINT8 Instance;
195 205
196 206 } ACPI_ASF_ALERT_DATA;
197 207
198 208
199 209 /* 2: ASF Remote Control */
200 210
201 211 typedef struct acpi_asf_remote
202 212 {
203 213 ACPI_ASF_HEADER Header;
204 214 UINT8 Controls;
205 215 UINT8 DataLength;
206 216 UINT16 Reserved2;
207 217
208 218 } ACPI_ASF_REMOTE;
209 219
210 220 typedef struct acpi_asf_control_data
211 221 {
212 222 UINT8 Function;
213 223 UINT8 Address;
214 224 UINT8 Command;
215 225 UINT8 Value;
216 226
217 227 } ACPI_ASF_CONTROL_DATA;
218 228
219 229
220 230 /* 3: ASF RMCP Boot Options */
221 231
222 232 typedef struct acpi_asf_rmcp
223 233 {
224 234 ACPI_ASF_HEADER Header;
225 235 UINT8 Capabilities[7];
226 236 UINT8 CompletionCode;
227 237 UINT32 EnterpriseId;
228 238 UINT8 Command;
229 239 UINT16 Parameter;
230 240 UINT16 BootOptions;
231 241 UINT16 OemParameters;
232 242
233 243 } ACPI_ASF_RMCP;
234 244
235 245
236 246 /* 4: ASF Address */
237 247
238 248 typedef struct acpi_asf_address
239 249 {
240 250 ACPI_ASF_HEADER Header;
241 251 UINT8 EpromAddress;
242 252 UINT8 Devices;
243 253
244 254 } ACPI_ASF_ADDRESS;
245 255
246 256
247 257 /*******************************************************************************
248 258 *
249 259 * BOOT - Simple Boot Flag Table
250 260 * Version 1
251 261 *
252 262 * Conforms to the "Simple Boot Flag Specification", Version 2.1
253 263 *
254 264 ******************************************************************************/
255 265
256 266 typedef struct acpi_table_boot
↓ open down ↓ |
143 lines elided |
↑ open up ↑ |
257 267 {
258 268 ACPI_TABLE_HEADER Header; /* Common ACPI table header */
259 269 UINT8 CmosIndex; /* Index in CMOS RAM for the boot register */
260 270 UINT8 Reserved[3];
261 271
262 272 } ACPI_TABLE_BOOT;
263 273
264 274
265 275 /*******************************************************************************
266 276 *
277 + * CSRT - Core System Resource Table
278 + * Version 0
279 + *
280 + * Conforms to the "Core System Resource Table (CSRT)", November 14, 2011
281 + *
282 + ******************************************************************************/
283 +
284 +typedef struct acpi_table_csrt
285 +{
286 + ACPI_TABLE_HEADER Header; /* Common ACPI table header */
287 +
288 +} ACPI_TABLE_CSRT;
289 +
290 +
291 +/* Resource Group subtable */
292 +
293 +typedef struct acpi_csrt_group
294 +{
295 + UINT32 Length;
296 + UINT32 VendorId;
297 + UINT32 SubvendorId;
298 + UINT16 DeviceId;
299 + UINT16 SubdeviceId;
300 + UINT16 Revision;
301 + UINT16 Reserved;
302 + UINT32 SharedInfoLength;
303 +
304 + /* Shared data immediately follows (Length = SharedInfoLength) */
305 +
306 +} ACPI_CSRT_GROUP;
307 +
308 +/* Shared Info subtable */
309 +
310 +typedef struct acpi_csrt_shared_info
311 +{
312 + UINT16 MajorVersion;
313 + UINT16 MinorVersion;
314 + UINT32 MmioBaseLow;
315 + UINT32 MmioBaseHigh;
316 + UINT32 GsiInterrupt;
317 + UINT8 InterruptPolarity;
318 + UINT8 InterruptMode;
319 + UINT8 NumChannels;
320 + UINT8 DmaAddressWidth;
321 + UINT16 BaseRequestLine;
322 + UINT16 NumHandshakeSignals;
323 + UINT32 MaxBlockSize;
324 +
325 + /* Resource descriptors immediately follow (Length = Group Length - SharedInfoLength) */
326 +
327 +} ACPI_CSRT_SHARED_INFO;
328 +
329 +/* Resource Descriptor subtable */
330 +
331 +typedef struct acpi_csrt_descriptor
332 +{
333 + UINT32 Length;
334 + UINT16 Type;
335 + UINT16 Subtype;
336 + UINT32 Uid;
337 +
338 + /* Resource-specific information immediately follows */
339 +
340 +} ACPI_CSRT_DESCRIPTOR;
341 +
342 +
343 +/* Resource Types */
344 +
345 +#define ACPI_CSRT_TYPE_INTERRUPT 0x0001
346 +#define ACPI_CSRT_TYPE_TIMER 0x0002
347 +#define ACPI_CSRT_TYPE_DMA 0x0003
348 +
349 +/* Resource Subtypes */
350 +
351 +#define ACPI_CSRT_XRUPT_LINE 0x0000
352 +#define ACPI_CSRT_XRUPT_CONTROLLER 0x0001
353 +#define ACPI_CSRT_TIMER 0x0000
354 +#define ACPI_CSRT_DMA_CHANNEL 0x0000
355 +#define ACPI_CSRT_DMA_CONTROLLER 0x0001
356 +
357 +
358 +/*******************************************************************************
359 + *
360 + * DBG2 - Debug Port Table 2
361 + * Version 0 (Both main table and subtables)
362 + *
363 + * Conforms to "Microsoft Debug Port Table 2 (DBG2)", May 22 2012.
364 + *
365 + ******************************************************************************/
366 +
367 +typedef struct acpi_table_dbg2
368 +{
369 + ACPI_TABLE_HEADER Header; /* Common ACPI table header */
370 + UINT32 InfoOffset;
371 + UINT32 InfoCount;
372 +
373 +} ACPI_TABLE_DBG2;
374 +
375 +
376 +typedef struct acpi_dbg2_header
377 +{
378 + UINT32 InfoOffset;
379 + UINT32 InfoCount;
380 +
381 +} ACPI_DBG2_HEADER;
382 +
383 +
384 +/* Debug Device Information Subtable */
385 +
386 +typedef struct acpi_dbg2_device
387 +{
388 + UINT8 Revision;
389 + UINT16 Length;
390 + UINT8 RegisterCount; /* Number of BaseAddress registers */
391 + UINT16 NamepathLength;
392 + UINT16 NamepathOffset;
393 + UINT16 OemDataLength;
394 + UINT16 OemDataOffset;
395 + UINT16 PortType;
396 + UINT16 PortSubtype;
397 + UINT16 Reserved;
398 + UINT16 BaseAddressOffset;
399 + UINT16 AddressSizeOffset;
400 + /*
401 + * Data that follows:
402 + * BaseAddress (required) - Each in 12-byte Generic Address Structure format.
403 + * AddressSize (required) - Array of UINT32 sizes corresponding to each BaseAddress register.
404 + * Namepath (required) - Null terminated string. Single dot if not supported.
405 + * OemData (optional) - Length is OemDataLength.
406 + */
407 +} ACPI_DBG2_DEVICE;
408 +
409 +/* Types for PortType field above */
410 +
411 +#define ACPI_DBG2_SERIAL_PORT 0x8000
412 +#define ACPI_DBG2_1394_PORT 0x8001
413 +#define ACPI_DBG2_USB_PORT 0x8002
414 +#define ACPI_DBG2_NET_PORT 0x8003
415 +
416 +/* Subtypes for PortSubtype field above */
417 +
418 +#define ACPI_DBG2_16550_COMPATIBLE 0x0000
419 +#define ACPI_DBG2_16550_SUBSET 0x0001
420 +
421 +#define ACPI_DBG2_1394_STANDARD 0x0000
422 +
423 +#define ACPI_DBG2_USB_XHCI 0x0000
424 +#define ACPI_DBG2_USB_EHCI 0x0001
425 +
426 +
427 +/*******************************************************************************
428 + *
267 429 * DBGP - Debug Port table
268 430 * Version 1
269 431 *
270 432 * Conforms to the "Debug Port Specification", Version 1.00, 2/9/2000
271 433 *
272 434 ******************************************************************************/
273 435
274 436 typedef struct acpi_table_dbgp
275 437 {
276 438 ACPI_TABLE_HEADER Header; /* Common ACPI table header */
277 439 UINT8 Type; /* 0=full 16550, 1=subset of 16550 */
278 440 UINT8 Reserved[3];
279 441 ACPI_GENERIC_ADDRESS DebugPort;
280 442
281 443 } ACPI_TABLE_DBGP;
282 444
283 445
284 446 /*******************************************************************************
285 447 *
286 448 * DMAR - DMA Remapping table
287 449 * Version 1
288 450 *
289 451 * Conforms to "Intel Virtualization Technology for Directed I/O",
290 452 * Version 1.2, Sept. 2008
291 453 *
292 454 ******************************************************************************/
293 455
294 456 typedef struct acpi_table_dmar
295 457 {
296 458 ACPI_TABLE_HEADER Header; /* Common ACPI table header */
297 459 UINT8 Width; /* Host Address Width */
298 460 UINT8 Flags;
299 461 UINT8 Reserved[10];
300 462
301 463 } ACPI_TABLE_DMAR;
302 464
303 465 /* Masks for Flags field above */
304 466
305 467 #define ACPI_DMAR_INTR_REMAP (1)
306 468
307 469
308 470 /* DMAR subtable header */
309 471
310 472 typedef struct acpi_dmar_header
311 473 {
312 474 UINT16 Type;
313 475 UINT16 Length;
314 476
315 477 } ACPI_DMAR_HEADER;
316 478
317 479 /* Values for subtable type in ACPI_DMAR_HEADER */
318 480
319 481 enum AcpiDmarType
320 482 {
321 483 ACPI_DMAR_TYPE_HARDWARE_UNIT = 0,
322 484 ACPI_DMAR_TYPE_RESERVED_MEMORY = 1,
323 485 ACPI_DMAR_TYPE_ATSR = 2,
324 486 ACPI_DMAR_HARDWARE_AFFINITY = 3,
325 487 ACPI_DMAR_TYPE_RESERVED = 4 /* 4 and greater are reserved */
326 488 };
327 489
328 490
329 491 /* DMAR Device Scope structure */
330 492
331 493 typedef struct acpi_dmar_device_scope
332 494 {
333 495 UINT8 EntryType;
334 496 UINT8 Length;
335 497 UINT16 Reserved;
336 498 UINT8 EnumerationId;
337 499 UINT8 Bus;
338 500
339 501 } ACPI_DMAR_DEVICE_SCOPE;
340 502
341 503 /* Values for EntryType in ACPI_DMAR_DEVICE_SCOPE */
342 504
343 505 enum AcpiDmarScopeType
344 506 {
345 507 ACPI_DMAR_SCOPE_TYPE_NOT_USED = 0,
346 508 ACPI_DMAR_SCOPE_TYPE_ENDPOINT = 1,
347 509 ACPI_DMAR_SCOPE_TYPE_BRIDGE = 2,
348 510 ACPI_DMAR_SCOPE_TYPE_IOAPIC = 3,
349 511 ACPI_DMAR_SCOPE_TYPE_HPET = 4,
350 512 ACPI_DMAR_SCOPE_TYPE_RESERVED = 5 /* 5 and greater are reserved */
351 513 };
352 514
353 515 typedef struct acpi_dmar_pci_path
354 516 {
355 517 UINT8 Device;
356 518 UINT8 Function;
357 519
358 520 } ACPI_DMAR_PCI_PATH;
359 521
360 522
361 523 /*
362 524 * DMAR Sub-tables, correspond to Type in ACPI_DMAR_HEADER
363 525 */
364 526
365 527 /* 0: Hardware Unit Definition */
366 528
367 529 typedef struct acpi_dmar_hardware_unit
368 530 {
369 531 ACPI_DMAR_HEADER Header;
370 532 UINT8 Flags;
371 533 UINT8 Reserved;
372 534 UINT16 Segment;
373 535 UINT64 Address; /* Register Base Address */
374 536
375 537 } ACPI_DMAR_HARDWARE_UNIT;
376 538
377 539 /* Masks for Flags field above */
378 540
379 541 #define ACPI_DMAR_INCLUDE_ALL (1)
380 542
381 543
382 544 /* 1: Reserved Memory Defininition */
383 545
384 546 typedef struct acpi_dmar_reserved_memory
385 547 {
386 548 ACPI_DMAR_HEADER Header;
387 549 UINT16 Reserved;
388 550 UINT16 Segment;
389 551 UINT64 BaseAddress; /* 4K aligned base address */
390 552 UINT64 EndAddress; /* 4K aligned limit address */
391 553
392 554 } ACPI_DMAR_RESERVED_MEMORY;
393 555
394 556 /* Masks for Flags field above */
395 557
396 558 #define ACPI_DMAR_ALLOW_ALL (1)
397 559
398 560
399 561 /* 2: Root Port ATS Capability Reporting Structure */
400 562
401 563 typedef struct acpi_dmar_atsr
402 564 {
403 565 ACPI_DMAR_HEADER Header;
404 566 UINT8 Flags;
405 567 UINT8 Reserved;
406 568 UINT16 Segment;
407 569
408 570 } ACPI_DMAR_ATSR;
409 571
410 572 /* Masks for Flags field above */
411 573
412 574 #define ACPI_DMAR_ALL_PORTS (1)
413 575
414 576
415 577 /* 3: Remapping Hardware Static Affinity Structure */
416 578
417 579 typedef struct acpi_dmar_rhsa
418 580 {
419 581 ACPI_DMAR_HEADER Header;
420 582 UINT32 Reserved;
421 583 UINT64 BaseAddress;
422 584 UINT32 ProximityDomain;
423 585
424 586 } ACPI_DMAR_RHSA;
425 587
426 588
427 589 /*******************************************************************************
428 590 *
429 591 * HPET - High Precision Event Timer table
430 592 * Version 1
431 593 *
432 594 * Conforms to "IA-PC HPET (High Precision Event Timers) Specification",
433 595 * Version 1.0a, October 2004
434 596 *
435 597 ******************************************************************************/
436 598
437 599 typedef struct acpi_table_hpet
438 600 {
439 601 ACPI_TABLE_HEADER Header; /* Common ACPI table header */
440 602 UINT32 Id; /* Hardware ID of event timer block */
441 603 ACPI_GENERIC_ADDRESS Address; /* Address of event timer block */
442 604 UINT8 Sequence; /* HPET sequence number */
443 605 UINT16 MinimumTick; /* Main counter min tick, periodic mode */
444 606 UINT8 Flags;
445 607
446 608 } ACPI_TABLE_HPET;
447 609
448 610 /* Masks for Flags field above */
449 611
450 612 #define ACPI_HPET_PAGE_PROTECT_MASK (3)
451 613
452 614 /* Values for Page Protect flags */
453 615
454 616 enum AcpiHpetPageProtect
455 617 {
456 618 ACPI_HPET_NO_PAGE_PROTECT = 0,
457 619 ACPI_HPET_PAGE_PROTECT4 = 1,
458 620 ACPI_HPET_PAGE_PROTECT64 = 2
459 621 };
460 622
461 623
462 624 /*******************************************************************************
463 625 *
464 626 * IBFT - Boot Firmware Table
465 627 * Version 1
466 628 *
467 629 * Conforms to "iSCSI Boot Firmware Table (iBFT) as Defined in ACPI 3.0b
468 630 * Specification", Version 1.01, March 1, 2007
469 631 *
470 632 * Note: It appears that this table is not intended to appear in the RSDT/XSDT.
471 633 * Therefore, it is not currently supported by the disassembler.
472 634 *
473 635 ******************************************************************************/
474 636
475 637 typedef struct acpi_table_ibft
476 638 {
477 639 ACPI_TABLE_HEADER Header; /* Common ACPI table header */
478 640 UINT8 Reserved[12];
479 641
480 642 } ACPI_TABLE_IBFT;
481 643
482 644
483 645 /* IBFT common subtable header */
484 646
485 647 typedef struct acpi_ibft_header
486 648 {
487 649 UINT8 Type;
488 650 UINT8 Version;
489 651 UINT16 Length;
490 652 UINT8 Index;
491 653 UINT8 Flags;
492 654
493 655 } ACPI_IBFT_HEADER;
494 656
495 657 /* Values for Type field above */
496 658
497 659 enum AcpiIbftType
498 660 {
499 661 ACPI_IBFT_TYPE_NOT_USED = 0,
500 662 ACPI_IBFT_TYPE_CONTROL = 1,
501 663 ACPI_IBFT_TYPE_INITIATOR = 2,
502 664 ACPI_IBFT_TYPE_NIC = 3,
503 665 ACPI_IBFT_TYPE_TARGET = 4,
504 666 ACPI_IBFT_TYPE_EXTENSIONS = 5,
505 667 ACPI_IBFT_TYPE_RESERVED = 6 /* 6 and greater are reserved */
506 668 };
507 669
508 670
509 671 /* IBFT subtables */
510 672
511 673 typedef struct acpi_ibft_control
512 674 {
513 675 ACPI_IBFT_HEADER Header;
514 676 UINT16 Extensions;
515 677 UINT16 InitiatorOffset;
516 678 UINT16 Nic0Offset;
517 679 UINT16 Target0Offset;
518 680 UINT16 Nic1Offset;
519 681 UINT16 Target1Offset;
520 682
521 683 } ACPI_IBFT_CONTROL;
522 684
523 685 typedef struct acpi_ibft_initiator
524 686 {
525 687 ACPI_IBFT_HEADER Header;
526 688 UINT8 SnsServer[16];
527 689 UINT8 SlpServer[16];
528 690 UINT8 PrimaryServer[16];
529 691 UINT8 SecondaryServer[16];
530 692 UINT16 NameLength;
531 693 UINT16 NameOffset;
532 694
533 695 } ACPI_IBFT_INITIATOR;
534 696
535 697 typedef struct acpi_ibft_nic
536 698 {
537 699 ACPI_IBFT_HEADER Header;
538 700 UINT8 IpAddress[16];
539 701 UINT8 SubnetMaskPrefix;
540 702 UINT8 Origin;
541 703 UINT8 Gateway[16];
542 704 UINT8 PrimaryDns[16];
543 705 UINT8 SecondaryDns[16];
544 706 UINT8 Dhcp[16];
545 707 UINT16 Vlan;
546 708 UINT8 MacAddress[6];
547 709 UINT16 PciAddress;
548 710 UINT16 NameLength;
549 711 UINT16 NameOffset;
550 712
551 713 } ACPI_IBFT_NIC;
552 714
553 715 typedef struct acpi_ibft_target
554 716 {
555 717 ACPI_IBFT_HEADER Header;
556 718 UINT8 TargetIpAddress[16];
557 719 UINT16 TargetIpSocket;
558 720 UINT8 TargetBootLun[8];
559 721 UINT8 ChapType;
560 722 UINT8 NicAssociation;
561 723 UINT16 TargetNameLength;
562 724 UINT16 TargetNameOffset;
563 725 UINT16 ChapNameLength;
564 726 UINT16 ChapNameOffset;
565 727 UINT16 ChapSecretLength;
566 728 UINT16 ChapSecretOffset;
567 729 UINT16 ReverseChapNameLength;
568 730 UINT16 ReverseChapNameOffset;
569 731 UINT16 ReverseChapSecretLength;
570 732 UINT16 ReverseChapSecretOffset;
571 733
572 734 } ACPI_IBFT_TARGET;
573 735
574 736
575 737 /*******************************************************************************
576 738 *
577 739 * IVRS - I/O Virtualization Reporting Structure
578 740 * Version 1
579 741 *
580 742 * Conforms to "AMD I/O Virtualization Technology (IOMMU) Specification",
581 743 * Revision 1.26, February 2009.
582 744 *
583 745 ******************************************************************************/
584 746
585 747 typedef struct acpi_table_ivrs
586 748 {
587 749 ACPI_TABLE_HEADER Header; /* Common ACPI table header */
588 750 UINT32 Info; /* Common virtualization info */
589 751 UINT64 Reserved;
590 752
591 753 } ACPI_TABLE_IVRS;
592 754
593 755 /* Values for Info field above */
594 756
595 757 #define ACPI_IVRS_PHYSICAL_SIZE 0x00007F00 /* 7 bits, physical address size */
596 758 #define ACPI_IVRS_VIRTUAL_SIZE 0x003F8000 /* 7 bits, virtual address size */
597 759 #define ACPI_IVRS_ATS_RESERVED 0x00400000 /* ATS address translation range reserved */
598 760
599 761
600 762 /* IVRS subtable header */
601 763
602 764 typedef struct acpi_ivrs_header
603 765 {
604 766 UINT8 Type; /* Subtable type */
605 767 UINT8 Flags;
606 768 UINT16 Length; /* Subtable length */
607 769 UINT16 DeviceId; /* ID of IOMMU */
608 770
609 771 } ACPI_IVRS_HEADER;
610 772
611 773 /* Values for subtable Type above */
612 774
613 775 enum AcpiIvrsType
614 776 {
615 777 ACPI_IVRS_TYPE_HARDWARE = 0x10,
616 778 ACPI_IVRS_TYPE_MEMORY1 = 0x20,
617 779 ACPI_IVRS_TYPE_MEMORY2 = 0x21,
618 780 ACPI_IVRS_TYPE_MEMORY3 = 0x22
619 781 };
620 782
621 783 /* Masks for Flags field above for IVHD subtable */
622 784
623 785 #define ACPI_IVHD_TT_ENABLE (1)
624 786 #define ACPI_IVHD_PASS_PW (1<<1)
625 787 #define ACPI_IVHD_RES_PASS_PW (1<<2)
626 788 #define ACPI_IVHD_ISOC (1<<3)
627 789 #define ACPI_IVHD_IOTLB (1<<4)
628 790
629 791 /* Masks for Flags field above for IVMD subtable */
630 792
631 793 #define ACPI_IVMD_UNITY (1)
632 794 #define ACPI_IVMD_READ (1<<1)
633 795 #define ACPI_IVMD_WRITE (1<<2)
634 796 #define ACPI_IVMD_EXCLUSION_RANGE (1<<3)
635 797
636 798
637 799 /*
638 800 * IVRS subtables, correspond to Type in ACPI_IVRS_HEADER
639 801 */
640 802
641 803 /* 0x10: I/O Virtualization Hardware Definition Block (IVHD) */
642 804
643 805 typedef struct acpi_ivrs_hardware
644 806 {
645 807 ACPI_IVRS_HEADER Header;
646 808 UINT16 CapabilityOffset; /* Offset for IOMMU control fields */
647 809 UINT64 BaseAddress; /* IOMMU control registers */
648 810 UINT16 PciSegmentGroup;
649 811 UINT16 Info; /* MSI number and unit ID */
650 812 UINT32 Reserved;
651 813
652 814 } ACPI_IVRS_HARDWARE;
653 815
654 816 /* Masks for Info field above */
655 817
656 818 #define ACPI_IVHD_MSI_NUMBER_MASK 0x001F /* 5 bits, MSI message number */
657 819 #define ACPI_IVHD_UNIT_ID_MASK 0x1F00 /* 5 bits, UnitID */
658 820
659 821
660 822 /*
661 823 * Device Entries for IVHD subtable, appear after ACPI_IVRS_HARDWARE structure.
662 824 * Upper two bits of the Type field are the (encoded) length of the structure.
663 825 * Currently, only 4 and 8 byte entries are defined. 16 and 32 byte entries
664 826 * are reserved for future use but not defined.
665 827 */
666 828 typedef struct acpi_ivrs_de_header
667 829 {
668 830 UINT8 Type;
669 831 UINT16 Id;
670 832 UINT8 DataSetting;
671 833
672 834 } ACPI_IVRS_DE_HEADER;
673 835
674 836 /* Length of device entry is in the top two bits of Type field above */
675 837
676 838 #define ACPI_IVHD_ENTRY_LENGTH 0xC0
677 839
678 840 /* Values for device entry Type field above */
679 841
680 842 enum AcpiIvrsDeviceEntryType
681 843 {
682 844 /* 4-byte device entries, all use ACPI_IVRS_DEVICE4 */
683 845
684 846 ACPI_IVRS_TYPE_PAD4 = 0,
685 847 ACPI_IVRS_TYPE_ALL = 1,
686 848 ACPI_IVRS_TYPE_SELECT = 2,
687 849 ACPI_IVRS_TYPE_START = 3,
688 850 ACPI_IVRS_TYPE_END = 4,
689 851
690 852 /* 8-byte device entries */
691 853
692 854 ACPI_IVRS_TYPE_PAD8 = 64,
693 855 ACPI_IVRS_TYPE_NOT_USED = 65,
694 856 ACPI_IVRS_TYPE_ALIAS_SELECT = 66, /* Uses ACPI_IVRS_DEVICE8A */
695 857 ACPI_IVRS_TYPE_ALIAS_START = 67, /* Uses ACPI_IVRS_DEVICE8A */
696 858 ACPI_IVRS_TYPE_EXT_SELECT = 70, /* Uses ACPI_IVRS_DEVICE8B */
697 859 ACPI_IVRS_TYPE_EXT_START = 71, /* Uses ACPI_IVRS_DEVICE8B */
698 860 ACPI_IVRS_TYPE_SPECIAL = 72 /* Uses ACPI_IVRS_DEVICE8C */
699 861 };
700 862
701 863 /* Values for Data field above */
702 864
703 865 #define ACPI_IVHD_INIT_PASS (1)
704 866 #define ACPI_IVHD_EINT_PASS (1<<1)
705 867 #define ACPI_IVHD_NMI_PASS (1<<2)
706 868 #define ACPI_IVHD_SYSTEM_MGMT (3<<4)
707 869 #define ACPI_IVHD_LINT0_PASS (1<<6)
708 870 #define ACPI_IVHD_LINT1_PASS (1<<7)
709 871
710 872
711 873 /* Types 0-4: 4-byte device entry */
712 874
713 875 typedef struct acpi_ivrs_device4
714 876 {
715 877 ACPI_IVRS_DE_HEADER Header;
716 878
717 879 } ACPI_IVRS_DEVICE4;
718 880
719 881 /* Types 66-67: 8-byte device entry */
720 882
721 883 typedef struct acpi_ivrs_device8a
722 884 {
723 885 ACPI_IVRS_DE_HEADER Header;
724 886 UINT8 Reserved1;
725 887 UINT16 UsedId;
726 888 UINT8 Reserved2;
727 889
728 890 } ACPI_IVRS_DEVICE8A;
729 891
730 892 /* Types 70-71: 8-byte device entry */
731 893
732 894 typedef struct acpi_ivrs_device8b
733 895 {
734 896 ACPI_IVRS_DE_HEADER Header;
735 897 UINT32 ExtendedData;
736 898
737 899 } ACPI_IVRS_DEVICE8B;
738 900
739 901 /* Values for ExtendedData above */
740 902
741 903 #define ACPI_IVHD_ATS_DISABLED (1<<31)
742 904
743 905 /* Type 72: 8-byte device entry */
744 906
745 907 typedef struct acpi_ivrs_device8c
746 908 {
747 909 ACPI_IVRS_DE_HEADER Header;
748 910 UINT8 Handle;
749 911 UINT16 UsedId;
750 912 UINT8 Variety;
751 913
752 914 } ACPI_IVRS_DEVICE8C;
753 915
754 916 /* Values for Variety field above */
755 917
756 918 #define ACPI_IVHD_IOAPIC 1
757 919 #define ACPI_IVHD_HPET 2
758 920
759 921
760 922 /* 0x20, 0x21, 0x22: I/O Virtualization Memory Definition Block (IVMD) */
761 923
762 924 typedef struct acpi_ivrs_memory
763 925 {
764 926 ACPI_IVRS_HEADER Header;
765 927 UINT16 AuxData;
766 928 UINT64 Reserved;
767 929 UINT64 StartAddress;
768 930 UINT64 MemoryLength;
769 931
770 932 } ACPI_IVRS_MEMORY;
771 933
772 934
773 935 /*******************************************************************************
774 936 *
775 937 * MCFG - PCI Memory Mapped Configuration table and sub-table
776 938 * Version 1
777 939 *
778 940 * Conforms to "PCI Firmware Specification", Revision 3.0, June 20, 2005
779 941 *
780 942 ******************************************************************************/
781 943
782 944 typedef struct acpi_table_mcfg
783 945 {
784 946 ACPI_TABLE_HEADER Header; /* Common ACPI table header */
785 947 UINT8 Reserved[8];
786 948
787 949 } ACPI_TABLE_MCFG;
788 950
789 951
790 952 /* Subtable */
791 953
792 954 typedef struct acpi_mcfg_allocation
793 955 {
794 956 UINT64 Address; /* Base address, processor-relative */
795 957 UINT16 PciSegment; /* PCI segment group number */
796 958 UINT8 StartBusNumber; /* Starting PCI Bus number */
797 959 UINT8 EndBusNumber; /* Final PCI Bus number */
798 960 UINT32 Reserved;
799 961
800 962 } ACPI_MCFG_ALLOCATION;
801 963
802 964
803 965 /*******************************************************************************
804 966 *
805 967 * MCHI - Management Controller Host Interface Table
806 968 * Version 1
807 969 *
808 970 * Conforms to "Management Component Transport Protocol (MCTP) Host
809 971 * Interface Specification", Revision 1.0.0a, October 13, 2009
810 972 *
811 973 ******************************************************************************/
812 974
813 975 typedef struct acpi_table_mchi
814 976 {
815 977 ACPI_TABLE_HEADER Header; /* Common ACPI table header */
816 978 UINT8 InterfaceType;
817 979 UINT8 Protocol;
818 980 UINT64 ProtocolData;
819 981 UINT8 InterruptType;
820 982 UINT8 Gpe;
821 983 UINT8 PciDeviceFlag;
822 984 UINT32 GlobalInterrupt;
823 985 ACPI_GENERIC_ADDRESS ControlRegister;
↓ open down ↓ |
547 lines elided |
↑ open up ↑ |
824 986 UINT8 PciSegment;
825 987 UINT8 PciBus;
826 988 UINT8 PciDevice;
827 989 UINT8 PciFunction;
828 990
829 991 } ACPI_TABLE_MCHI;
830 992
831 993
832 994 /*******************************************************************************
833 995 *
996 + * MTMR - MID Timer Table
997 + * Version 1
998 + *
999 + * Conforms to "Simple Firmware Interface Specification",
1000 + * Draft 0.8.2, Oct 19, 2010
1001 + * NOTE: The ACPI MTMR is equivalent to the SFI MTMR table.
1002 + *
1003 + ******************************************************************************/
1004 +
1005 +typedef struct acpi_table_mtmr
1006 +{
1007 + ACPI_TABLE_HEADER Header; /* Common ACPI table header */
1008 +
1009 +} ACPI_TABLE_MTMR;
1010 +
1011 +/* MTMR entry */
1012 +
1013 +typedef struct acpi_mtmr_entry
1014 +{
1015 + ACPI_GENERIC_ADDRESS PhysicalAddress;
1016 + UINT32 Frequency;
1017 + UINT32 Irq;
1018 +
1019 +} ACPI_MTMR_ENTRY;
1020 +
1021 +
1022 +/*******************************************************************************
1023 + *
834 1024 * SLIC - Software Licensing Description Table
835 1025 * Version 1
836 1026 *
837 1027 * Conforms to "OEM Activation 2.0 for Windows Vista Operating Systems",
838 1028 * Copyright 2006
839 1029 *
840 1030 ******************************************************************************/
841 1031
842 1032 /* Basic SLIC table is only the common ACPI header */
843 1033
844 1034 typedef struct acpi_table_slic
845 1035 {
846 1036 ACPI_TABLE_HEADER Header; /* Common ACPI table header */
847 1037
848 1038 } ACPI_TABLE_SLIC;
849 1039
850 1040
851 1041 /* Common SLIC subtable header */
852 1042
853 1043 typedef struct acpi_slic_header
854 1044 {
855 1045 UINT32 Type;
856 1046 UINT32 Length;
857 1047
858 1048 } ACPI_SLIC_HEADER;
859 1049
860 1050 /* Values for Type field above */
861 1051
862 1052 enum AcpiSlicType
863 1053 {
864 1054 ACPI_SLIC_TYPE_PUBLIC_KEY = 0,
865 1055 ACPI_SLIC_TYPE_WINDOWS_MARKER = 1,
866 1056 ACPI_SLIC_TYPE_RESERVED = 2 /* 2 and greater are reserved */
867 1057 };
868 1058
869 1059
870 1060 /*
871 1061 * SLIC Sub-tables, correspond to Type in ACPI_SLIC_HEADER
872 1062 */
873 1063
874 1064 /* 0: Public Key Structure */
875 1065
876 1066 typedef struct acpi_slic_key
877 1067 {
878 1068 ACPI_SLIC_HEADER Header;
879 1069 UINT8 KeyType;
880 1070 UINT8 Version;
881 1071 UINT16 Reserved;
882 1072 UINT32 Algorithm;
883 1073 char Magic[4];
884 1074 UINT32 BitLength;
885 1075 UINT32 Exponent;
886 1076 UINT8 Modulus[128];
887 1077
888 1078 } ACPI_SLIC_KEY;
889 1079
890 1080
891 1081 /* 1: Windows Marker Structure */
892 1082
893 1083 typedef struct acpi_slic_marker
894 1084 {
895 1085 ACPI_SLIC_HEADER Header;
896 1086 UINT32 Version;
897 1087 char OemId[ACPI_OEM_ID_SIZE]; /* ASCII OEM identification */
898 1088 char OemTableId[ACPI_OEM_TABLE_ID_SIZE]; /* ASCII OEM table identification */
899 1089 char WindowsFlag[8];
900 1090 UINT32 SlicVersion;
901 1091 UINT8 Reserved[16];
902 1092 UINT8 Signature[128];
903 1093
904 1094 } ACPI_SLIC_MARKER;
905 1095
906 1096
907 1097 /*******************************************************************************
908 1098 *
909 1099 * SPCR - Serial Port Console Redirection table
910 1100 * Version 1
911 1101 *
912 1102 * Conforms to "Serial Port Console Redirection Table",
913 1103 * Version 1.00, January 11, 2002
914 1104 *
915 1105 ******************************************************************************/
916 1106
917 1107 typedef struct acpi_table_spcr
918 1108 {
919 1109 ACPI_TABLE_HEADER Header; /* Common ACPI table header */
920 1110 UINT8 InterfaceType; /* 0=full 16550, 1=subset of 16550 */
921 1111 UINT8 Reserved[3];
922 1112 ACPI_GENERIC_ADDRESS SerialPort;
923 1113 UINT8 InterruptType;
924 1114 UINT8 PcInterrupt;
925 1115 UINT32 Interrupt;
926 1116 UINT8 BaudRate;
927 1117 UINT8 Parity;
928 1118 UINT8 StopBits;
929 1119 UINT8 FlowControl;
930 1120 UINT8 TerminalType;
931 1121 UINT8 Reserved1;
932 1122 UINT16 PciDeviceId;
933 1123 UINT16 PciVendorId;
934 1124 UINT8 PciBus;
935 1125 UINT8 PciDevice;
936 1126 UINT8 PciFunction;
937 1127 UINT32 PciFlags;
938 1128 UINT8 PciSegment;
939 1129 UINT32 Reserved2;
940 1130
941 1131 } ACPI_TABLE_SPCR;
942 1132
943 1133 /* Masks for PciFlags field above */
944 1134
945 1135 #define ACPI_SPCR_DO_NOT_DISABLE (1)
946 1136
947 1137
948 1138 /*******************************************************************************
949 1139 *
950 1140 * SPMI - Server Platform Management Interface table
951 1141 * Version 5
952 1142 *
953 1143 * Conforms to "Intelligent Platform Management Interface Specification
954 1144 * Second Generation v2.0", Document Revision 1.0, February 12, 2004 with
955 1145 * June 12, 2009 markup.
956 1146 *
957 1147 ******************************************************************************/
958 1148
959 1149 typedef struct acpi_table_spmi
960 1150 {
961 1151 ACPI_TABLE_HEADER Header; /* Common ACPI table header */
962 1152 UINT8 InterfaceType;
963 1153 UINT8 Reserved; /* Must be 1 */
964 1154 UINT16 SpecRevision; /* Version of IPMI */
965 1155 UINT8 InterruptType;
966 1156 UINT8 GpeNumber; /* GPE assigned */
967 1157 UINT8 Reserved1;
968 1158 UINT8 PciDeviceFlag;
969 1159 UINT32 Interrupt;
970 1160 ACPI_GENERIC_ADDRESS IpmiRegister;
971 1161 UINT8 PciSegment;
972 1162 UINT8 PciBus;
973 1163 UINT8 PciDevice;
974 1164 UINT8 PciFunction;
975 1165 UINT8 Reserved2;
976 1166
977 1167 } ACPI_TABLE_SPMI;
978 1168
979 1169 /* Values for InterfaceType above */
980 1170
981 1171 enum AcpiSpmiInterfaceTypes
982 1172 {
983 1173 ACPI_SPMI_NOT_USED = 0,
984 1174 ACPI_SPMI_KEYBOARD = 1,
985 1175 ACPI_SPMI_SMI = 2,
986 1176 ACPI_SPMI_BLOCK_TRANSFER = 3,
987 1177 ACPI_SPMI_SMBUS = 4,
988 1178 ACPI_SPMI_RESERVED = 5 /* 5 and above are reserved */
989 1179 };
990 1180
991 1181
992 1182 /*******************************************************************************
993 1183 *
994 1184 * TCPA - Trusted Computing Platform Alliance table
995 1185 * Version 1
996 1186 *
997 1187 * Conforms to "TCG PC Specific Implementation Specification",
998 1188 * Version 1.1, August 18, 2003
999 1189 *
1000 1190 ******************************************************************************/
1001 1191
1002 1192 typedef struct acpi_table_tcpa
1003 1193 {
1004 1194 ACPI_TABLE_HEADER Header; /* Common ACPI table header */
1005 1195 UINT16 Reserved;
1006 1196 UINT32 MaxLogLength; /* Maximum length for the event log area */
1007 1197 UINT64 LogAddress; /* Address of the event log area */
1008 1198
1009 1199 } ACPI_TABLE_TCPA;
1010 1200
1011 1201
1012 1202 /*******************************************************************************
1013 1203 *
1014 1204 * UEFI - UEFI Boot optimization Table
1015 1205 * Version 1
1016 1206 *
1017 1207 * Conforms to "Unified Extensible Firmware Interface Specification",
1018 1208 * Version 2.3, May 8, 2009
1019 1209 *
1020 1210 ******************************************************************************/
1021 1211
1022 1212 typedef struct acpi_table_uefi
↓ open down ↓ |
179 lines elided |
↑ open up ↑ |
1023 1213 {
1024 1214 ACPI_TABLE_HEADER Header; /* Common ACPI table header */
1025 1215 UINT8 Identifier[16]; /* UUID identifier */
1026 1216 UINT16 DataOffset; /* Offset of remaining data in table */
1027 1217
1028 1218 } ACPI_TABLE_UEFI;
1029 1219
1030 1220
1031 1221 /*******************************************************************************
1032 1222 *
1223 + * VRTC - Virtual Real Time Clock Table
1224 + * Version 1
1225 + *
1226 + * Conforms to "Simple Firmware Interface Specification",
1227 + * Draft 0.8.2, Oct 19, 2010
1228 + * NOTE: The ACPI VRTC is equivalent to The SFI MRTC table.
1229 + *
1230 + ******************************************************************************/
1231 +
1232 +typedef struct acpi_table_vrtc
1233 +{
1234 + ACPI_TABLE_HEADER Header; /* Common ACPI table header */
1235 +
1236 +} ACPI_TABLE_VRTC;
1237 +
1238 +/* VRTC entry */
1239 +
1240 +typedef struct acpi_vrtc_entry
1241 +{
1242 + ACPI_GENERIC_ADDRESS PhysicalAddress;
1243 + UINT32 Irq;
1244 +
1245 +} ACPI_VRTC_ENTRY;
1246 +
1247 +
1248 +/*******************************************************************************
1249 + *
1033 1250 * WAET - Windows ACPI Emulated devices Table
1034 1251 * Version 1
1035 1252 *
1036 1253 * Conforms to "Windows ACPI Emulated Devices Table", version 1.0, April 6, 2009
1037 1254 *
1038 1255 ******************************************************************************/
1039 1256
1040 1257 typedef struct acpi_table_waet
1041 1258 {
1042 1259 ACPI_TABLE_HEADER Header; /* Common ACPI table header */
1043 1260 UINT32 Flags;
1044 1261
1045 1262 } ACPI_TABLE_WAET;
1046 1263
1047 1264 /* Masks for Flags field above */
1048 1265
1049 1266 #define ACPI_WAET_RTC_NO_ACK (1) /* RTC requires no int acknowledge */
1050 1267 #define ACPI_WAET_TIMER_ONE_READ (1<<1) /* PM timer requires only one read */
1051 1268
1052 1269
1053 1270 /*******************************************************************************
1054 1271 *
1055 1272 * WDAT - Watchdog Action Table
1056 1273 * Version 1
1057 1274 *
1058 1275 * Conforms to "Hardware Watchdog Timers Design Specification",
1059 1276 * Copyright 2006 Microsoft Corporation.
1060 1277 *
1061 1278 ******************************************************************************/
1062 1279
1063 1280 typedef struct acpi_table_wdat
1064 1281 {
1065 1282 ACPI_TABLE_HEADER Header; /* Common ACPI table header */
1066 1283 UINT32 HeaderLength; /* Watchdog Header Length */
1067 1284 UINT16 PciSegment; /* PCI Segment number */
1068 1285 UINT8 PciBus; /* PCI Bus number */
1069 1286 UINT8 PciDevice; /* PCI Device number */
1070 1287 UINT8 PciFunction; /* PCI Function number */
1071 1288 UINT8 Reserved[3];
1072 1289 UINT32 TimerPeriod; /* Period of one timer count (msec) */
1073 1290 UINT32 MaxCount; /* Maximum counter value supported */
1074 1291 UINT32 MinCount; /* Minimum counter value */
1075 1292 UINT8 Flags;
1076 1293 UINT8 Reserved2[3];
1077 1294 UINT32 Entries; /* Number of watchdog entries that follow */
1078 1295
1079 1296 } ACPI_TABLE_WDAT;
1080 1297
1081 1298 /* Masks for Flags field above */
1082 1299
1083 1300 #define ACPI_WDAT_ENABLED (1)
1084 1301 #define ACPI_WDAT_STOPPED 0x80
1085 1302
1086 1303
1087 1304 /* WDAT Instruction Entries (actions) */
1088 1305
1089 1306 typedef struct acpi_wdat_entry
1090 1307 {
1091 1308 UINT8 Action;
1092 1309 UINT8 Instruction;
1093 1310 UINT16 Reserved;
1094 1311 ACPI_GENERIC_ADDRESS RegisterRegion;
1095 1312 UINT32 Value; /* Value used with Read/Write register */
1096 1313 UINT32 Mask; /* Bitmask required for this register instruction */
1097 1314
1098 1315 } ACPI_WDAT_ENTRY;
1099 1316
1100 1317 /* Values for Action field above */
1101 1318
1102 1319 enum AcpiWdatActions
1103 1320 {
1104 1321 ACPI_WDAT_RESET = 1,
1105 1322 ACPI_WDAT_GET_CURRENT_COUNTDOWN = 4,
1106 1323 ACPI_WDAT_GET_COUNTDOWN = 5,
1107 1324 ACPI_WDAT_SET_COUNTDOWN = 6,
1108 1325 ACPI_WDAT_GET_RUNNING_STATE = 8,
1109 1326 ACPI_WDAT_SET_RUNNING_STATE = 9,
1110 1327 ACPI_WDAT_GET_STOPPED_STATE = 10,
1111 1328 ACPI_WDAT_SET_STOPPED_STATE = 11,
1112 1329 ACPI_WDAT_GET_REBOOT = 16,
1113 1330 ACPI_WDAT_SET_REBOOT = 17,
1114 1331 ACPI_WDAT_GET_SHUTDOWN = 18,
1115 1332 ACPI_WDAT_SET_SHUTDOWN = 19,
1116 1333 ACPI_WDAT_GET_STATUS = 32,
1117 1334 ACPI_WDAT_SET_STATUS = 33,
1118 1335 ACPI_WDAT_ACTION_RESERVED = 34 /* 34 and greater are reserved */
1119 1336 };
1120 1337
1121 1338 /* Values for Instruction field above */
1122 1339
1123 1340 enum AcpiWdatInstructions
1124 1341 {
1125 1342 ACPI_WDAT_READ_VALUE = 0,
1126 1343 ACPI_WDAT_READ_COUNTDOWN = 1,
1127 1344 ACPI_WDAT_WRITE_VALUE = 2,
1128 1345 ACPI_WDAT_WRITE_COUNTDOWN = 3,
1129 1346 ACPI_WDAT_INSTRUCTION_RESERVED = 4, /* 4 and greater are reserved */
1130 1347 ACPI_WDAT_PRESERVE_REGISTER = 0x80 /* Except for this value */
1131 1348 };
1132 1349
1133 1350
1134 1351 /*******************************************************************************
1135 1352 *
1136 1353 * WDDT - Watchdog Descriptor Table
1137 1354 * Version 1
1138 1355 *
1139 1356 * Conforms to "Using the Intel ICH Family Watchdog Timer (WDT)",
1140 1357 * Version 001, September 2002
1141 1358 *
1142 1359 ******************************************************************************/
1143 1360
1144 1361 typedef struct acpi_table_wddt
1145 1362 {
1146 1363 ACPI_TABLE_HEADER Header; /* Common ACPI table header */
1147 1364 UINT16 SpecVersion;
1148 1365 UINT16 TableVersion;
1149 1366 UINT16 PciVendorId;
1150 1367 ACPI_GENERIC_ADDRESS Address;
1151 1368 UINT16 MaxCount; /* Maximum counter value supported */
1152 1369 UINT16 MinCount; /* Minimum counter value supported */
1153 1370 UINT16 Period;
1154 1371 UINT16 Status;
1155 1372 UINT16 Capability;
1156 1373
1157 1374 } ACPI_TABLE_WDDT;
1158 1375
1159 1376 /* Flags for Status field above */
1160 1377
1161 1378 #define ACPI_WDDT_AVAILABLE (1)
1162 1379 #define ACPI_WDDT_ACTIVE (1<<1)
1163 1380 #define ACPI_WDDT_TCO_OS_OWNED (1<<2)
1164 1381 #define ACPI_WDDT_USER_RESET (1<<11)
1165 1382 #define ACPI_WDDT_WDT_RESET (1<<12)
1166 1383 #define ACPI_WDDT_POWER_FAIL (1<<13)
1167 1384 #define ACPI_WDDT_UNKNOWN_RESET (1<<14)
1168 1385
1169 1386 /* Flags for Capability field above */
1170 1387
1171 1388 #define ACPI_WDDT_AUTO_RESET (1)
1172 1389 #define ACPI_WDDT_ALERT_SUPPORT (1<<1)
1173 1390
1174 1391
1175 1392 /*******************************************************************************
1176 1393 *
1177 1394 * WDRT - Watchdog Resource Table
1178 1395 * Version 1
1179 1396 *
1180 1397 * Conforms to "Watchdog Timer Hardware Requirements for Windows Server 2003",
1181 1398 * Version 1.01, August 28, 2006
1182 1399 *
1183 1400 ******************************************************************************/
1184 1401
1185 1402 typedef struct acpi_table_wdrt
1186 1403 {
1187 1404 ACPI_TABLE_HEADER Header; /* Common ACPI table header */
1188 1405 ACPI_GENERIC_ADDRESS ControlRegister;
1189 1406 ACPI_GENERIC_ADDRESS CountRegister;
1190 1407 UINT16 PciDeviceId;
1191 1408 UINT16 PciVendorId;
1192 1409 UINT8 PciBus; /* PCI Bus number */
1193 1410 UINT8 PciDevice; /* PCI Device number */
1194 1411 UINT8 PciFunction; /* PCI Function number */
1195 1412 UINT8 PciSegment; /* PCI Segment number */
1196 1413 UINT16 MaxCount; /* Maximum counter value supported */
↓ open down ↓ |
154 lines elided |
↑ open up ↑ |
1197 1414 UINT8 Units;
1198 1415
1199 1416 } ACPI_TABLE_WDRT;
1200 1417
1201 1418
1202 1419 /* Reset to default packing */
1203 1420
1204 1421 #pragma pack()
1205 1422
1206 1423 #endif /* __ACTBL2_H__ */
1207 -
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX