1 /******************************************************************************
3 * Name: actbl3.h - ACPI Table Definitions
5 *****************************************************************************/
7 /******************************************************************************
11 * Some or all of this work - Copyright (c) 1999 - 2020, Intel Corp.
12 * All rights reserved.
16 * 2.1. This is your license from Intel Corp. under its intellectual property
17 * rights. You may have additional license terms from the party that provided
18 * you this software, covering your right to use that party's intellectual
21 * 2.2. Intel grants, free of charge, to any person ("Licensee") obtaining a
22 * copy of the source code appearing in this file ("Covered Code") an
23 * irrevocable, perpetual, worldwide license under Intel's copyrights in the
24 * base code distributed originally by Intel ("Original Intel Code") to copy,
25 * make derivatives, distribute, use and display any portion of the Covered
26 * Code in any form, with the right to sublicense such rights; and
28 * 2.3. Intel grants Licensee a non-exclusive and non-transferable patent
29 * license (with the right to sublicense), under only those claims of Intel
30 * patents that are infringed by the Original Intel Code, to make, use, sell,
31 * offer to sell, and import the Covered Code and derivative works thereof
32 * solely to the minimum extent necessary to exercise the above copyright
33 * license, and in no event shall the patent license extend to any additions
34 * to or modifications of the Original Intel Code. No other license or right
35 * is granted directly or by implication, estoppel or otherwise;
37 * The above copyright and patent license is granted only if the following
42 * 3.1. Redistribution of Source with Rights to Further Distribute Source.
43 * Redistribution of source code of any substantial portion of the Covered
44 * Code or modification with rights to further distribute source must include
45 * the above Copyright Notice, the above License, this list of Conditions,
46 * and the following Disclaimer and Export Compliance provision. In addition,
47 * Licensee must cause all Covered Code to which Licensee contributes to
48 * contain a file documenting the changes Licensee made to create that Covered
49 * Code and the date of any change. Licensee must include in that file the
50 * documentation of any changes made by any predecessor Licensee. Licensee
51 * must include a prominent statement that the modification is derived,
52 * directly or indirectly, from Original Intel Code.
54 * 3.2. Redistribution of Source with no Rights to Further Distribute Source.
55 * Redistribution of source code of any substantial portion of the Covered
56 * Code or modification without rights to further distribute source must
57 * include the following Disclaimer and Export Compliance provision in the
58 * documentation and/or other materials provided with distribution. In
59 * addition, Licensee may not authorize further sublicense of source of any
60 * portion of the Covered Code, and must include terms to the effect that the
61 * license from Licensee to its licensee is limited to the intellectual
62 * property embodied in the software Licensee provides to its licensee, and
63 * not to intellectual property embodied in modifications its licensee may
66 * 3.3. Redistribution of Executable. Redistribution in executable form of any
67 * substantial portion of the Covered Code or modification must reproduce the
68 * above Copyright Notice, and the following Disclaimer and Export Compliance
69 * provision in the documentation and/or other materials provided with the
72 * 3.4. Intel retains all right, title, and interest in and to the Original
75 * 3.5. Neither the name Intel nor any other trademark owned or controlled by
76 * Intel shall be used in advertising or otherwise to promote the sale, use or
77 * other dealings in products derived from or relating to the Covered Code
78 * without prior written authorization from Intel.
80 * 4. Disclaimer and Export Compliance
82 * 4.1. INTEL MAKES NO WARRANTY OF ANY KIND REGARDING ANY SOFTWARE PROVIDED
83 * HERE. ANY SOFTWARE ORIGINATING FROM INTEL OR DERIVED FROM INTEL SOFTWARE
84 * IS PROVIDED "AS IS," AND INTEL WILL NOT PROVIDE ANY SUPPORT, ASSISTANCE,
85 * INSTALLATION, TRAINING OR OTHER SERVICES. INTEL WILL NOT PROVIDE ANY
86 * UPDATES, ENHANCEMENTS OR EXTENSIONS. INTEL SPECIFICALLY DISCLAIMS ANY
87 * IMPLIED WARRANTIES OF MERCHANTABILITY, NONINFRINGEMENT AND FITNESS FOR A
90 * 4.2. IN NO EVENT SHALL INTEL HAVE ANY LIABILITY TO LICENSEE, ITS LICENSEES
91 * OR ANY OTHER THIRD PARTY, FOR ANY LOST PROFITS, LOST DATA, LOSS OF USE OR
92 * COSTS OF PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES, OR FOR ANY INDIRECT,
93 * SPECIAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THIS AGREEMENT, UNDER ANY
94 * CAUSE OF ACTION OR THEORY OF LIABILITY, AND IRRESPECTIVE OF WHETHER INTEL
95 * HAS ADVANCE NOTICE OF THE POSSIBILITY OF SUCH DAMAGES. THESE LIMITATIONS
96 * SHALL APPLY NOTWITHSTANDING THE FAILURE OF THE ESSENTIAL PURPOSE OF ANY
99 * 4.3. Licensee shall not export, either directly or indirectly, any of this
100 * software or system incorporating such software without first obtaining any
101 * required license or other approval from the U. S. Department of Commerce or
102 * any other agency or department of the United States Government. In the
103 * event Licensee exports any such software from the United States or
104 * re-exports any such software from a foreign destination, Licensee shall
105 * ensure that the distribution and export/re-export of the software is in
106 * compliance with all laws, regulations, orders, or other restrictions of the
107 * U.S. Export Administration Regulations. Licensee agrees that neither it nor
108 * any of its subsidiaries will export/re-export any technical data, process,
109 * software, or service, directly or indirectly, to any country for which the
110 * United States government or any agency thereof requires an export license,
111 * other governmental approval, or letter of assurance, without first obtaining
112 * such license, approval or letter.
114 *****************************************************************************
116 * Alternatively, you may choose to be licensed under the terms of the
119 * Redistribution and use in source and binary forms, with or without
120 * modification, are permitted provided that the following conditions
122 * 1. Redistributions of source code must retain the above copyright
123 * notice, this list of conditions, and the following disclaimer,
124 * without modification.
125 * 2. Redistributions in binary form must reproduce at minimum a disclaimer
126 * substantially similar to the "NO WARRANTY" disclaimer below
127 * ("Disclaimer") and any redistribution must be conditioned upon
128 * including a substantially similar Disclaimer requirement for further
129 * binary redistribution.
130 * 3. Neither the names of the above-listed copyright holders nor the names
131 * of any contributors may be used to endorse or promote products derived
132 * from this software without specific prior written permission.
134 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
135 * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
136 * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
137 * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
138 * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
139 * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
140 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
141 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
142 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
143 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
144 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
146 * Alternatively, you may choose to be licensed under the terms of the
147 * GNU General Public License ("GPL") version 2 as published by the Free
148 * Software Foundation.
150 *****************************************************************************/
156 /*******************************************************************************
158 * Additional ACPI Tables
160 * These tables are not consumed directly by the ACPICA subsystem, but are
161 * included here to support device drivers and the AML disassembler.
163 ******************************************************************************/
167 * Values for description table header signatures for tables defined in this
168 * file. Useful because they make it more difficult to inadvertently type in
169 * the wrong signature.
171 #define ACPI_SIG_SLIC "SLIC" /* Software Licensing Description Table */
172 #define ACPI_SIG_SLIT "SLIT" /* System Locality Distance Information Table */
173 #define ACPI_SIG_SPCR "SPCR" /* Serial Port Console Redirection table */
174 #define ACPI_SIG_SPMI "SPMI" /* Server Platform Management Interface table */
175 #define ACPI_SIG_SRAT "SRAT" /* System Resource Affinity Table */
176 #define ACPI_SIG_STAO "STAO" /* Status Override table */
177 #define ACPI_SIG_TCPA "TCPA" /* Trusted Computing Platform Alliance table */
178 #define ACPI_SIG_TPM2 "TPM2" /* Trusted Platform Module 2.0 H/W interface table */
179 #define ACPI_SIG_UEFI "UEFI" /* Uefi Boot Optimization Table */
180 #define ACPI_SIG_VRTC "VRTC" /* Virtual Real Time Clock Table */
181 #define ACPI_SIG_WAET "WAET" /* Windows ACPI Emulated devices Table */
182 #define ACPI_SIG_WDAT "WDAT" /* Watchdog Action Table */
183 #define ACPI_SIG_WDDT "WDDT" /* Watchdog Timer Description Table */
184 #define ACPI_SIG_WDRT "WDRT" /* Watchdog Resource Table */
185 #define ACPI_SIG_WPBT "WPBT" /* Windows Platform Binary Table */
186 #define ACPI_SIG_WSMT "WSMT" /* Windows SMM Security Mitigations Table */
187 #define ACPI_SIG_XENV "XENV" /* Xen Environment table */
188 #define ACPI_SIG_XXXX "XXXX" /* Intermediate AML header for ASL/ASL+ converter */
191 * All tables must be byte-packed to match the ACPI specification, since
192 * the tables are provided by the system BIOS.
197 * Note: C bitfields are not used for this reason:
199 * "Bitfields are great and easy to read, but unfortunately the C language
200 * does not specify the layout of bitfields in memory, which means they are
201 * essentially useless for dealing with packed data in on-disk formats or
202 * binary wire protocols." (Or ACPI tables and buffers.) "If you ask me,
203 * this decision was a design error in C. Ritchie could have picked an order
204 * and stuck with it." Norman Ramsey.
205 * See http://stackoverflow.com/a/1053662/41661
209 /*******************************************************************************
211 * SLIC - Software Licensing Description Table
213 * Conforms to "Microsoft Software Licensing Tables (SLIC and MSDM)",
214 * November 29, 2011. Copyright 2011 Microsoft
216 ******************************************************************************/
218 /* Basic SLIC table is only the common ACPI header */
220 typedef struct acpi_table_slic
222 ACPI_TABLE_HEADER Header; /* Common ACPI table header */
227 /*******************************************************************************
229 * SLIT - System Locality Distance Information Table
232 ******************************************************************************/
234 typedef struct acpi_table_slit
236 ACPI_TABLE_HEADER Header; /* Common ACPI table header */
237 UINT64 LocalityCount;
238 UINT8 Entry[1]; /* Real size = localities^2 */
243 /*******************************************************************************
245 * SPCR - Serial Port Console Redirection table
248 * Conforms to "Serial Port Console Redirection Table",
249 * Version 1.03, August 10, 2015
251 ******************************************************************************/
253 typedef struct acpi_table_spcr
255 ACPI_TABLE_HEADER Header; /* Common ACPI table header */
256 UINT8 InterfaceType; /* 0=full 16550, 1=subset of 16550 */
258 ACPI_GENERIC_ADDRESS SerialPort;
279 /* Masks for PciFlags field above */
281 #define ACPI_SPCR_DO_NOT_DISABLE (1)
283 /* Values for Interface Type: See the definition of the DBG2 table */
286 /*******************************************************************************
288 * SPMI - Server Platform Management Interface table
291 * Conforms to "Intelligent Platform Management Interface Specification
292 * Second Generation v2.0", Document Revision 1.0, February 12, 2004 with
293 * June 12, 2009 markup.
295 ******************************************************************************/
297 typedef struct acpi_table_spmi
299 ACPI_TABLE_HEADER Header; /* Common ACPI table header */
301 UINT8 Reserved; /* Must be 1 */
302 UINT16 SpecRevision; /* Version of IPMI */
304 UINT8 GpeNumber; /* GPE assigned */
308 ACPI_GENERIC_ADDRESS IpmiRegister;
317 /* Values for InterfaceType above */
319 enum AcpiSpmiInterfaceTypes
321 ACPI_SPMI_NOT_USED = 0,
322 ACPI_SPMI_KEYBOARD = 1,
324 ACPI_SPMI_BLOCK_TRANSFER = 3,
326 ACPI_SPMI_RESERVED = 5 /* 5 and above are reserved */
330 /*******************************************************************************
332 * SRAT - System Resource Affinity Table
335 ******************************************************************************/
337 typedef struct acpi_table_srat
339 ACPI_TABLE_HEADER Header; /* Common ACPI table header */
340 UINT32 TableRevision; /* Must be value '1' */
341 UINT64 Reserved; /* Reserved, must be zero */
345 /* Values for subtable type in ACPI_SUBTABLE_HEADER */
349 ACPI_SRAT_TYPE_CPU_AFFINITY = 0,
350 ACPI_SRAT_TYPE_MEMORY_AFFINITY = 1,
351 ACPI_SRAT_TYPE_X2APIC_CPU_AFFINITY = 2,
352 ACPI_SRAT_TYPE_GICC_AFFINITY = 3,
353 ACPI_SRAT_TYPE_GIC_ITS_AFFINITY = 4, /* ACPI 6.2 */
354 ACPI_SRAT_TYPE_GENERIC_AFFINITY = 5, /* ACPI 6.3 */
355 ACPI_SRAT_TYPE_RESERVED = 6 /* 5 and greater are reserved */
359 * SRAT Subtables, correspond to Type in ACPI_SUBTABLE_HEADER
362 /* 0: Processor Local APIC/SAPIC Affinity */
364 typedef struct acpi_srat_cpu_affinity
366 ACPI_SUBTABLE_HEADER Header;
367 UINT8 ProximityDomainLo;
371 UINT8 ProximityDomainHi[3];
374 } ACPI_SRAT_CPU_AFFINITY;
378 #define ACPI_SRAT_CPU_USE_AFFINITY (1) /* 00: Use affinity structure */
381 /* 1: Memory Affinity */
383 typedef struct acpi_srat_mem_affinity
385 ACPI_SUBTABLE_HEADER Header;
386 UINT32 ProximityDomain;
387 UINT16 Reserved; /* Reserved, must be zero */
392 UINT64 Reserved2; /* Reserved, must be zero */
394 } ACPI_SRAT_MEM_AFFINITY;
398 #define ACPI_SRAT_MEM_ENABLED (1) /* 00: Use affinity structure */
399 #define ACPI_SRAT_MEM_HOT_PLUGGABLE (1<<1) /* 01: Memory region is hot pluggable */
400 #define ACPI_SRAT_MEM_NON_VOLATILE (1<<2) /* 02: Memory region is non-volatile */
403 /* 2: Processor Local X2_APIC Affinity (ACPI 4.0) */
405 typedef struct acpi_srat_x2apic_cpu_affinity
407 ACPI_SUBTABLE_HEADER Header;
408 UINT16 Reserved; /* Reserved, must be zero */
409 UINT32 ProximityDomain;
415 } ACPI_SRAT_X2APIC_CPU_AFFINITY;
417 /* Flags for ACPI_SRAT_CPU_AFFINITY and ACPI_SRAT_X2APIC_CPU_AFFINITY */
419 #define ACPI_SRAT_CPU_ENABLED (1) /* 00: Use affinity structure */
422 /* 3: GICC Affinity (ACPI 5.1) */
424 typedef struct acpi_srat_gicc_affinity
426 ACPI_SUBTABLE_HEADER Header;
427 UINT32 ProximityDomain;
428 UINT32 AcpiProcessorUid;
432 } ACPI_SRAT_GICC_AFFINITY;
434 /* Flags for ACPI_SRAT_GICC_AFFINITY */
436 #define ACPI_SRAT_GICC_ENABLED (1) /* 00: Use affinity structure */
439 /* 4: GCC ITS Affinity (ACPI 6.2) */
441 typedef struct acpi_srat_gic_its_affinity
443 ACPI_SUBTABLE_HEADER Header;
444 UINT32 ProximityDomain;
448 } ACPI_SRAT_GIC_ITS_AFFINITY;
451 /* 5: Generic Initiator Affinity Structure (ACPI 6.3) */
453 typedef struct acpi_srat_generic_affinity
455 ACPI_SUBTABLE_HEADER Header;
457 UINT8 DeviceHandleType;
458 UINT32 ProximityDomain;
459 UINT8 DeviceHandle[16];
463 } ACPI_SRAT_GENERIC_AFFINITY;
465 /* Flags for ACPI_SRAT_GENERIC_AFFINITY */
467 #define ACPI_SRAT_GENERIC_AFFINITY_ENABLED (1) /* 00: Use affinity structure */
469 /*******************************************************************************
471 * STAO - Status Override Table (_STA override) - ACPI 6.0
474 * Conforms to "ACPI Specification for Status Override Table"
477 ******************************************************************************/
479 typedef struct acpi_table_stao
481 ACPI_TABLE_HEADER Header; /* Common ACPI table header */
487 /*******************************************************************************
489 * TCPA - Trusted Computing Platform Alliance table
492 * TCG Hardware Interface Table for TPM 1.2 Clients and Servers
494 * Conforms to "TCG ACPI Specification, Family 1.2 and 2.0",
495 * Version 1.2, Revision 8
498 * NOTE: There are two versions of the table with the same signature --
499 * the client version and the server version. The common PlatformClass
500 * field is used to differentiate the two types of tables.
502 ******************************************************************************/
504 typedef struct acpi_table_tcpa_hdr
506 ACPI_TABLE_HEADER Header; /* Common ACPI table header */
507 UINT16 PlatformClass;
509 } ACPI_TABLE_TCPA_HDR;
512 * Values for PlatformClass above.
513 * This is how the client and server subtables are differentiated
515 #define ACPI_TCPA_CLIENT_TABLE 0
516 #define ACPI_TCPA_SERVER_TABLE 1
519 typedef struct acpi_table_tcpa_client
521 UINT32 MinimumLogLength; /* Minimum length for the event log area */
522 UINT64 LogAddress; /* Address of the event log area */
524 } ACPI_TABLE_TCPA_CLIENT;
526 typedef struct acpi_table_tcpa_server
529 UINT64 MinimumLogLength; /* Minimum length for the event log area */
530 UINT64 LogAddress; /* Address of the event log area */
533 UINT8 InterruptFlags;
536 UINT32 GlobalInterrupt;
537 ACPI_GENERIC_ADDRESS Address;
539 ACPI_GENERIC_ADDRESS ConfigAddress;
541 UINT8 Bus; /* PCI Bus/Segment/Function numbers */
545 } ACPI_TABLE_TCPA_SERVER;
547 /* Values for DeviceFlags above */
549 #define ACPI_TCPA_PCI_DEVICE (1)
550 #define ACPI_TCPA_BUS_PNP (1<<1)
551 #define ACPI_TCPA_ADDRESS_VALID (1<<2)
553 /* Values for InterruptFlags above */
555 #define ACPI_TCPA_INTERRUPT_MODE (1)
556 #define ACPI_TCPA_INTERRUPT_POLARITY (1<<1)
557 #define ACPI_TCPA_SCI_VIA_GPE (1<<2)
558 #define ACPI_TCPA_GLOBAL_INTERRUPT (1<<3)
561 /*******************************************************************************
563 * TPM2 - Trusted Platform Module (TPM) 2.0 Hardware Interface Table
566 * TCG Hardware Interface Table for TPM 2.0 Clients and Servers
568 * Conforms to "TCG ACPI Specification, Family 1.2 and 2.0",
569 * Version 1.2, Revision 8
572 ******************************************************************************/
576 typedef struct acpi_table_tpm23
578 ACPI_TABLE_HEADER Header; /* Common ACPI table header */
580 UINT64 ControlAddress;
585 /* Value for StartMethod above */
587 #define ACPI_TPM23_ACPI_START_METHOD 2
590 * Optional trailer for revision 3. If start method is 2, there is a 4 byte
591 * reserved area of all zeros.
593 typedef struct acpi_tmp23_trailer
597 } ACPI_TPM23_TRAILER;
602 typedef struct acpi_table_tpm2
604 ACPI_TABLE_HEADER Header; /* Common ACPI table header */
605 UINT16 PlatformClass;
607 UINT64 ControlAddress;
610 /* Platform-specific data follows */
614 /* Values for StartMethod above */
616 #define ACPI_TPM2_NOT_ALLOWED 0
617 #define ACPI_TPM2_RESERVED1 1
618 #define ACPI_TPM2_START_METHOD 2
619 #define ACPI_TPM2_RESERVED3 3
620 #define ACPI_TPM2_RESERVED4 4
621 #define ACPI_TPM2_RESERVED5 5
622 #define ACPI_TPM2_MEMORY_MAPPED 6
623 #define ACPI_TPM2_COMMAND_BUFFER 7
624 #define ACPI_TPM2_COMMAND_BUFFER_WITH_START_METHOD 8
625 #define ACPI_TPM2_RESERVED9 9
626 #define ACPI_TPM2_RESERVED10 10
627 #define ACPI_TPM2_COMMAND_BUFFER_WITH_ARM_SMC 11 /* V1.2 Rev 8 */
628 #define ACPI_TPM2_RESERVED 12
631 /* Optional trailer appears after any StartMethod subtables */
633 typedef struct acpi_tpm2_trailer
635 UINT8 MethodParameters[12];
636 UINT32 MinimumLogLength; /* Minimum length for the event log area */
637 UINT64 LogAddress; /* Address of the event log area */
643 * Subtables (StartMethod-specific)
646 /* 11: Start Method for ARM SMC (V1.2 Rev 8) */
648 typedef struct acpi_tpm2_arm_smc
650 UINT32 GlobalInterrupt;
651 UINT8 InterruptFlags;
652 UINT8 OperationFlags;
658 /* Values for InterruptFlags above */
660 #define ACPI_TPM2_INTERRUPT_SUPPORT (1)
662 /* Values for OperationFlags above */
664 #define ACPI_TPM2_IDLE_SUPPORT (1)
667 /*******************************************************************************
669 * UEFI - UEFI Boot optimization Table
672 * Conforms to "Unified Extensible Firmware Interface Specification",
673 * Version 2.3, May 8, 2009
675 ******************************************************************************/
677 typedef struct acpi_table_uefi
679 ACPI_TABLE_HEADER Header; /* Common ACPI table header */
680 UINT8 Identifier[16]; /* UUID identifier */
681 UINT16 DataOffset; /* Offset of remaining data in table */
686 /*******************************************************************************
688 * VRTC - Virtual Real Time Clock Table
691 * Conforms to "Simple Firmware Interface Specification",
692 * Draft 0.8.2, Oct 19, 2010
693 * NOTE: The ACPI VRTC is equivalent to The SFI MRTC table.
695 ******************************************************************************/
697 typedef struct acpi_table_vrtc
699 ACPI_TABLE_HEADER Header; /* Common ACPI table header */
705 typedef struct acpi_vrtc_entry
707 ACPI_GENERIC_ADDRESS PhysicalAddress;
713 /*******************************************************************************
715 * WAET - Windows ACPI Emulated devices Table
718 * Conforms to "Windows ACPI Emulated Devices Table", version 1.0, April 6, 2009
720 ******************************************************************************/
722 typedef struct acpi_table_waet
724 ACPI_TABLE_HEADER Header; /* Common ACPI table header */
729 /* Masks for Flags field above */
731 #define ACPI_WAET_RTC_NO_ACK (1) /* RTC requires no int acknowledge */
732 #define ACPI_WAET_TIMER_ONE_READ (1<<1) /* PM timer requires only one read */
735 /*******************************************************************************
737 * WDAT - Watchdog Action Table
740 * Conforms to "Hardware Watchdog Timers Design Specification",
741 * Copyright 2006 Microsoft Corporation.
743 ******************************************************************************/
745 typedef struct acpi_table_wdat
747 ACPI_TABLE_HEADER Header; /* Common ACPI table header */
748 UINT32 HeaderLength; /* Watchdog Header Length */
749 UINT16 PciSegment; /* PCI Segment number */
750 UINT8 PciBus; /* PCI Bus number */
751 UINT8 PciDevice; /* PCI Device number */
752 UINT8 PciFunction; /* PCI Function number */
754 UINT32 TimerPeriod; /* Period of one timer count (msec) */
755 UINT32 MaxCount; /* Maximum counter value supported */
756 UINT32 MinCount; /* Minimum counter value */
759 UINT32 Entries; /* Number of watchdog entries that follow */
763 /* Masks for Flags field above */
765 #define ACPI_WDAT_ENABLED (1)
766 #define ACPI_WDAT_STOPPED 0x80
769 /* WDAT Instruction Entries (actions) */
771 typedef struct acpi_wdat_entry
776 ACPI_GENERIC_ADDRESS RegisterRegion;
777 UINT32 Value; /* Value used with Read/Write register */
778 UINT32 Mask; /* Bitmask required for this register instruction */
782 /* Values for Action field above */
787 ACPI_WDAT_GET_CURRENT_COUNTDOWN = 4,
788 ACPI_WDAT_GET_COUNTDOWN = 5,
789 ACPI_WDAT_SET_COUNTDOWN = 6,
790 ACPI_WDAT_GET_RUNNING_STATE = 8,
791 ACPI_WDAT_SET_RUNNING_STATE = 9,
792 ACPI_WDAT_GET_STOPPED_STATE = 10,
793 ACPI_WDAT_SET_STOPPED_STATE = 11,
794 ACPI_WDAT_GET_REBOOT = 16,
795 ACPI_WDAT_SET_REBOOT = 17,
796 ACPI_WDAT_GET_SHUTDOWN = 18,
797 ACPI_WDAT_SET_SHUTDOWN = 19,
798 ACPI_WDAT_GET_STATUS = 32,
799 ACPI_WDAT_SET_STATUS = 33,
800 ACPI_WDAT_ACTION_RESERVED = 34 /* 34 and greater are reserved */
803 /* Values for Instruction field above */
805 enum AcpiWdatInstructions
807 ACPI_WDAT_READ_VALUE = 0,
808 ACPI_WDAT_READ_COUNTDOWN = 1,
809 ACPI_WDAT_WRITE_VALUE = 2,
810 ACPI_WDAT_WRITE_COUNTDOWN = 3,
811 ACPI_WDAT_INSTRUCTION_RESERVED = 4, /* 4 and greater are reserved */
812 ACPI_WDAT_PRESERVE_REGISTER = 0x80 /* Except for this value */
816 /*******************************************************************************
818 * WDDT - Watchdog Descriptor Table
821 * Conforms to "Using the Intel ICH Family Watchdog Timer (WDT)",
822 * Version 001, September 2002
824 ******************************************************************************/
826 typedef struct acpi_table_wddt
828 ACPI_TABLE_HEADER Header; /* Common ACPI table header */
832 ACPI_GENERIC_ADDRESS Address;
833 UINT16 MaxCount; /* Maximum counter value supported */
834 UINT16 MinCount; /* Minimum counter value supported */
841 /* Flags for Status field above */
843 #define ACPI_WDDT_AVAILABLE (1)
844 #define ACPI_WDDT_ACTIVE (1<<1)
845 #define ACPI_WDDT_TCO_OS_OWNED (1<<2)
846 #define ACPI_WDDT_USER_RESET (1<<11)
847 #define ACPI_WDDT_WDT_RESET (1<<12)
848 #define ACPI_WDDT_POWER_FAIL (1<<13)
849 #define ACPI_WDDT_UNKNOWN_RESET (1<<14)
851 /* Flags for Capability field above */
853 #define ACPI_WDDT_AUTO_RESET (1)
854 #define ACPI_WDDT_ALERT_SUPPORT (1<<1)
857 /*******************************************************************************
859 * WDRT - Watchdog Resource Table
862 * Conforms to "Watchdog Timer Hardware Requirements for Windows Server 2003",
863 * Version 1.01, August 28, 2006
865 ******************************************************************************/
867 typedef struct acpi_table_wdrt
869 ACPI_TABLE_HEADER Header; /* Common ACPI table header */
870 ACPI_GENERIC_ADDRESS ControlRegister;
871 ACPI_GENERIC_ADDRESS CountRegister;
874 UINT8 PciBus; /* PCI Bus number */
875 UINT8 PciDevice; /* PCI Device number */
876 UINT8 PciFunction; /* PCI Function number */
877 UINT8 PciSegment; /* PCI Segment number */
878 UINT16 MaxCount; /* Maximum counter value supported */
884 /*******************************************************************************
886 * WPBT - Windows Platform Environment Table (ACPI 6.0)
889 * Conforms to "Windows Platform Binary Table (WPBT)" 29 November 2011
891 ******************************************************************************/
893 typedef struct acpi_table_wpbt
895 ACPI_TABLE_HEADER Header; /* Common ACPI table header */
897 UINT64 HandoffAddress;
900 UINT16 ArgumentsLength;
905 /*******************************************************************************
907 * WSMT - Windows SMM Security Mitigations Table
910 * Conforms to "Windows SMM Security Mitigations Table",
911 * Version 1.0, April 18, 2016
913 ******************************************************************************/
915 typedef struct acpi_table_wsmt
917 ACPI_TABLE_HEADER Header; /* Common ACPI table header */
918 UINT32 ProtectionFlags;
922 /* Flags for ProtectionFlags field above */
924 #define ACPI_WSMT_FIXED_COMM_BUFFERS (1)
925 #define ACPI_WSMT_COMM_BUFFER_NESTED_PTR_PROTECTION (2)
926 #define ACPI_WSMT_SYSTEM_RESOURCE_PROTECTION (4)
929 /*******************************************************************************
931 * XENV - Xen Environment Table (ACPI 6.0)
934 * Conforms to "ACPI Specification for Xen Environment Table" 4 January 2015
936 ******************************************************************************/
938 typedef struct acpi_table_xenv
940 ACPI_TABLE_HEADER Header; /* Common ACPI table header */
941 UINT64 GrantTableAddress;
942 UINT64 GrantTableSize;
943 UINT32 EventInterrupt;
949 /* Reset to default packing */
953 #endif /* __ACTBL3_H__ */