1 /******************************************************************************
3 * Name: actbl2.h - ACPI Table Definitions (tables not in ACPI spec)
5 *****************************************************************************/
8 * Copyright (C) 2000 - 2017, Intel Corp.
11 * Redistribution and use in source and binary forms, with or without
12 * modification, are permitted provided that the following conditions
14 * 1. Redistributions of source code must retain the above copyright
15 * notice, this list of conditions, and the following disclaimer,
16 * without modification.
17 * 2. Redistributions in binary form must reproduce at minimum a disclaimer
18 * substantially similar to the "NO WARRANTY" disclaimer below
19 * ("Disclaimer") and any redistribution must be conditioned upon
20 * including a substantially similar Disclaimer requirement for further
21 * binary redistribution.
22 * 3. Neither the names of the above-listed copyright holders nor the names
23 * of any contributors may be used to endorse or promote products derived
24 * from this software without specific prior written permission.
26 * Alternatively, this software may be distributed under the terms of the
27 * GNU General Public License ("GPL") version 2 as published by the Free
28 * Software Foundation.
31 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
32 * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
33 * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR
34 * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
35 * HOLDERS OR CONTRIBUTORS BE LIABLE FOR SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
36 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
37 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
38 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
39 * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING
40 * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
41 * POSSIBILITY OF SUCH DAMAGES.
48 /*******************************************************************************
50 * Additional ACPI Tables (2)
52 * These tables are not consumed directly by the ACPICA subsystem, but are
53 * included here to support device drivers and the AML disassembler.
55 * Generally, the tables in this file are defined by third-party specifications,
56 * and are not defined directly by the ACPI specification itself.
58 ******************************************************************************/
62 * Values for description table header signatures for tables defined in this
63 * file. Useful because they make it more difficult to inadvertently type in
64 * the wrong signature.
66 #define ACPI_SIG_ASF "ASF!" /* Alert Standard Format table */
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 */
70 #define ACPI_SIG_DBGP "DBGP" /* Debug Port table */
71 #define ACPI_SIG_DMAR "DMAR" /* DMA Remapping table */
72 #define ACPI_SIG_HPET "HPET" /* High Precision Event Timer table */
73 #define ACPI_SIG_IBFT "IBFT" /* iSCSI Boot Firmware Table */
74 #define ACPI_SIG_IORT "IORT" /* IO Remapping Table */
75 #define ACPI_SIG_IVRS "IVRS" /* I/O Virtualization Reporting Structure */
76 #define ACPI_SIG_LPIT "LPIT" /* Low Power Idle Table */
77 #define ACPI_SIG_MCFG "MCFG" /* PCI Memory Mapped Configuration table */
78 #define ACPI_SIG_MCHI "MCHI" /* Management Controller Host Interface table */
79 #define ACPI_SIG_MSDM "MSDM" /* Microsoft Data Management Table */
80 #define ACPI_SIG_MTMR "MTMR" /* MID Timer table */
81 #define ACPI_SIG_SDEI "SDEI" /* Software Delegated Exception Interface Table */
82 #define ACPI_SIG_SLIC "SLIC" /* Software Licensing Description Table */
83 #define ACPI_SIG_SPCR "SPCR" /* Serial Port Console Redirection table */
84 #define ACPI_SIG_SPMI "SPMI" /* Server Platform Management Interface table */
85 #define ACPI_SIG_TCPA "TCPA" /* Trusted Computing Platform Alliance table */
86 #define ACPI_SIG_TPM2 "TPM2" /* Trusted Platform Module 2.0 H/W interface table */
87 #define ACPI_SIG_UEFI "UEFI" /* Uefi Boot Optimization Table */
88 #define ACPI_SIG_VRTC "VRTC" /* Virtual Real Time Clock Table */
89 #define ACPI_SIG_WAET "WAET" /* Windows ACPI Emulated devices Table */
90 #define ACPI_SIG_WDAT "WDAT" /* Watchdog Action Table */
91 #define ACPI_SIG_WDDT "WDDT" /* Watchdog Timer Description Table */
92 #define ACPI_SIG_WDRT "WDRT" /* Watchdog Resource Table */
93 #define ACPI_SIG_WSMT "WSMT" /* Windows SMM Security Migrations Table */
94 #define ACPI_SIG_XXXX "XXXX" /* Intermediate AML header for ASL/ASL+ converter */
96 #ifdef ACPI_UNDEFINED_TABLES
98 * These tables have been seen in the field, but no definition has been found
100 #define ACPI_SIG_ATKG "ATKG"
101 #define ACPI_SIG_GSCI "GSCI" /* GMCH SCI table */
102 #define ACPI_SIG_IEIT "IEIT"
106 * All tables must be byte-packed to match the ACPI specification, since
107 * the tables are provided by the system BIOS.
112 * Note: C bitfields are not used for this reason:
114 * "Bitfields are great and easy to read, but unfortunately the C language
115 * does not specify the layout of bitfields in memory, which means they are
116 * essentially useless for dealing with packed data in on-disk formats or
117 * binary wire protocols." (Or ACPI tables and buffers.) "If you ask me,
118 * this decision was a design error in C. Ritchie could have picked an order
119 * and stuck with it." Norman Ramsey.
120 * See http://stackoverflow.com/a/1053662/41661
124 /*******************************************************************************
126 * ASF - Alert Standard Format table (Signature "ASF!")
129 * Conforms to the Alert Standard Format Specification V2.0, 23 April 2003
131 ******************************************************************************/
133 typedef struct acpi_table_asf
135 ACPI_TABLE_HEADER Header
; /* Common ACPI table header */
140 /* ASF subtable header */
142 typedef struct acpi_asf_header
151 /* Values for Type field above */
155 ACPI_ASF_TYPE_INFO
= 0,
156 ACPI_ASF_TYPE_ALERT
= 1,
157 ACPI_ASF_TYPE_CONTROL
= 2,
158 ACPI_ASF_TYPE_BOOT
= 3,
159 ACPI_ASF_TYPE_ADDRESS
= 4,
160 ACPI_ASF_TYPE_RESERVED
= 5
167 /* 0: ASF Information */
169 typedef struct acpi_asf_info
171 ACPI_ASF_HEADER Header
;
173 UINT8 MinPollInterval
;
181 /* Masks for Flags field above */
183 #define ACPI_ASF_SMBUS_PROTOCOLS (1)
188 typedef struct acpi_asf_alert
190 ACPI_ASF_HEADER Header
;
198 typedef struct acpi_asf_alert_data
213 } ACPI_ASF_ALERT_DATA
;
216 /* 2: ASF Remote Control */
218 typedef struct acpi_asf_remote
220 ACPI_ASF_HEADER Header
;
227 typedef struct acpi_asf_control_data
234 } ACPI_ASF_CONTROL_DATA
;
237 /* 3: ASF RMCP Boot Options */
239 typedef struct acpi_asf_rmcp
241 ACPI_ASF_HEADER Header
;
242 UINT8 Capabilities
[7];
243 UINT8 CompletionCode
;
248 UINT16 OemParameters
;
255 typedef struct acpi_asf_address
257 ACPI_ASF_HEADER Header
;
264 /*******************************************************************************
266 * BOOT - Simple Boot Flag Table
269 * Conforms to the "Simple Boot Flag Specification", Version 2.1
271 ******************************************************************************/
273 typedef struct acpi_table_boot
275 ACPI_TABLE_HEADER Header
; /* Common ACPI table header */
276 UINT8 CmosIndex
; /* Index in CMOS RAM for the boot register */
282 /*******************************************************************************
284 * CSRT - Core System Resource Table
287 * Conforms to the "Core System Resource Table (CSRT)", November 14, 2011
289 ******************************************************************************/
291 typedef struct acpi_table_csrt
293 ACPI_TABLE_HEADER Header
; /* Common ACPI table header */
298 /* Resource Group subtable */
300 typedef struct acpi_csrt_group
309 UINT32 SharedInfoLength
;
311 /* Shared data immediately follows (Length = SharedInfoLength) */
315 /* Shared Info subtable */
317 typedef struct acpi_csrt_shared_info
324 UINT8 InterruptPolarity
;
327 UINT8 DmaAddressWidth
;
328 UINT16 BaseRequestLine
;
329 UINT16 NumHandshakeSignals
;
332 /* Resource descriptors immediately follow (Length = Group Length - SharedInfoLength) */
334 } ACPI_CSRT_SHARED_INFO
;
336 /* Resource Descriptor subtable */
338 typedef struct acpi_csrt_descriptor
345 /* Resource-specific information immediately follows */
347 } ACPI_CSRT_DESCRIPTOR
;
352 #define ACPI_CSRT_TYPE_INTERRUPT 0x0001
353 #define ACPI_CSRT_TYPE_TIMER 0x0002
354 #define ACPI_CSRT_TYPE_DMA 0x0003
356 /* Resource Subtypes */
358 #define ACPI_CSRT_XRUPT_LINE 0x0000
359 #define ACPI_CSRT_XRUPT_CONTROLLER 0x0001
360 #define ACPI_CSRT_TIMER 0x0000
361 #define ACPI_CSRT_DMA_CHANNEL 0x0000
362 #define ACPI_CSRT_DMA_CONTROLLER 0x0001
365 /*******************************************************************************
367 * DBG2 - Debug Port Table 2
368 * Version 0 (Both main table and subtables)
370 * Conforms to "Microsoft Debug Port Table 2 (DBG2)", December 10, 2015
372 ******************************************************************************/
374 typedef struct acpi_table_dbg2
376 ACPI_TABLE_HEADER Header
; /* Common ACPI table header */
383 typedef struct acpi_dbg2_header
391 /* Debug Device Information Subtable */
393 typedef struct acpi_dbg2_device
397 UINT8 RegisterCount
; /* Number of BaseAddress registers */
398 UINT16 NamepathLength
;
399 UINT16 NamepathOffset
;
400 UINT16 OemDataLength
;
401 UINT16 OemDataOffset
;
405 UINT16 BaseAddressOffset
;
406 UINT16 AddressSizeOffset
;
409 * BaseAddress (required) - Each in 12-byte Generic Address Structure format.
410 * AddressSize (required) - Array of UINT32 sizes corresponding to each BaseAddress register.
411 * Namepath (required) - Null terminated string. Single dot if not supported.
412 * OemData (optional) - Length is OemDataLength.
416 /* Types for PortType field above */
418 #define ACPI_DBG2_SERIAL_PORT 0x8000
419 #define ACPI_DBG2_1394_PORT 0x8001
420 #define ACPI_DBG2_USB_PORT 0x8002
421 #define ACPI_DBG2_NET_PORT 0x8003
423 /* Subtypes for PortSubtype field above */
425 #define ACPI_DBG2_16550_COMPATIBLE 0x0000
426 #define ACPI_DBG2_16550_SUBSET 0x0001
427 #define ACPI_DBG2_ARM_PL011 0x0003
428 #define ACPI_DBG2_ARM_SBSA_32BIT 0x000D
429 #define ACPI_DBG2_ARM_SBSA_GENERIC 0x000E
430 #define ACPI_DBG2_ARM_DCC 0x000F
431 #define ACPI_DBG2_BCM2835 0x0010
433 #define ACPI_DBG2_1394_STANDARD 0x0000
435 #define ACPI_DBG2_USB_XHCI 0x0000
436 #define ACPI_DBG2_USB_EHCI 0x0001
439 /*******************************************************************************
441 * DBGP - Debug Port table
444 * Conforms to the "Debug Port Specification", Version 1.00, 2/9/2000
446 ******************************************************************************/
448 typedef struct acpi_table_dbgp
450 ACPI_TABLE_HEADER Header
; /* Common ACPI table header */
451 UINT8 Type
; /* 0=full 16550, 1=subset of 16550 */
453 ACPI_GENERIC_ADDRESS DebugPort
;
458 /*******************************************************************************
460 * DMAR - DMA Remapping table
463 * Conforms to "Intel Virtualization Technology for Directed I/O",
464 * Version 2.3, October 2014
466 ******************************************************************************/
468 typedef struct acpi_table_dmar
470 ACPI_TABLE_HEADER Header
; /* Common ACPI table header */
471 UINT8 Width
; /* Host Address Width */
477 /* Masks for Flags field above */
479 #define ACPI_DMAR_INTR_REMAP (1)
480 #define ACPI_DMAR_X2APIC_OPT_OUT (1<<1)
481 #define ACPI_DMAR_X2APIC_MODE (1<<2)
484 /* DMAR subtable header */
486 typedef struct acpi_dmar_header
493 /* Values for subtable type in ACPI_DMAR_HEADER */
497 ACPI_DMAR_TYPE_HARDWARE_UNIT
= 0,
498 ACPI_DMAR_TYPE_RESERVED_MEMORY
= 1,
499 ACPI_DMAR_TYPE_ROOT_ATS
= 2,
500 ACPI_DMAR_TYPE_HARDWARE_AFFINITY
= 3,
501 ACPI_DMAR_TYPE_NAMESPACE
= 4,
502 ACPI_DMAR_TYPE_RESERVED
= 5 /* 5 and greater are reserved */
506 /* DMAR Device Scope structure */
508 typedef struct acpi_dmar_device_scope
516 } ACPI_DMAR_DEVICE_SCOPE
;
518 /* Values for EntryType in ACPI_DMAR_DEVICE_SCOPE - device types */
520 enum AcpiDmarScopeType
522 ACPI_DMAR_SCOPE_TYPE_NOT_USED
= 0,
523 ACPI_DMAR_SCOPE_TYPE_ENDPOINT
= 1,
524 ACPI_DMAR_SCOPE_TYPE_BRIDGE
= 2,
525 ACPI_DMAR_SCOPE_TYPE_IOAPIC
= 3,
526 ACPI_DMAR_SCOPE_TYPE_HPET
= 4,
527 ACPI_DMAR_SCOPE_TYPE_NAMESPACE
= 5,
528 ACPI_DMAR_SCOPE_TYPE_RESERVED
= 6 /* 6 and greater are reserved */
531 typedef struct acpi_dmar_pci_path
536 } ACPI_DMAR_PCI_PATH
;
540 * DMAR Subtables, correspond to Type in ACPI_DMAR_HEADER
543 /* 0: Hardware Unit Definition */
545 typedef struct acpi_dmar_hardware_unit
547 ACPI_DMAR_HEADER Header
;
551 UINT64 Address
; /* Register Base Address */
553 } ACPI_DMAR_HARDWARE_UNIT
;
555 /* Masks for Flags field above */
557 #define ACPI_DMAR_INCLUDE_ALL (1)
560 /* 1: Reserved Memory Defininition */
562 typedef struct acpi_dmar_reserved_memory
564 ACPI_DMAR_HEADER Header
;
567 UINT64 BaseAddress
; /* 4K aligned base address */
568 UINT64 EndAddress
; /* 4K aligned limit address */
570 } ACPI_DMAR_RESERVED_MEMORY
;
572 /* Masks for Flags field above */
574 #define ACPI_DMAR_ALLOW_ALL (1)
577 /* 2: Root Port ATS Capability Reporting Structure */
579 typedef struct acpi_dmar_atsr
581 ACPI_DMAR_HEADER Header
;
588 /* Masks for Flags field above */
590 #define ACPI_DMAR_ALL_PORTS (1)
593 /* 3: Remapping Hardware Static Affinity Structure */
595 typedef struct acpi_dmar_rhsa
597 ACPI_DMAR_HEADER Header
;
600 UINT32 ProximityDomain
;
605 /* 4: ACPI Namespace Device Declaration Structure */
607 typedef struct acpi_dmar_andd
609 ACPI_DMAR_HEADER Header
;
617 /*******************************************************************************
619 * HPET - High Precision Event Timer table
622 * Conforms to "IA-PC HPET (High Precision Event Timers) Specification",
623 * Version 1.0a, October 2004
625 ******************************************************************************/
627 typedef struct acpi_table_hpet
629 ACPI_TABLE_HEADER Header
; /* Common ACPI table header */
630 UINT32 Id
; /* Hardware ID of event timer block */
631 ACPI_GENERIC_ADDRESS Address
; /* Address of event timer block */
632 UINT8 Sequence
; /* HPET sequence number */
633 UINT16 MinimumTick
; /* Main counter min tick, periodic mode */
638 /* Masks for Flags field above */
640 #define ACPI_HPET_PAGE_PROTECT_MASK (3)
642 /* Values for Page Protect flags */
644 enum AcpiHpetPageProtect
646 ACPI_HPET_NO_PAGE_PROTECT
= 0,
647 ACPI_HPET_PAGE_PROTECT4
= 1,
648 ACPI_HPET_PAGE_PROTECT64
= 2
652 /*******************************************************************************
654 * IBFT - Boot Firmware Table
657 * Conforms to "iSCSI Boot Firmware Table (iBFT) as Defined in ACPI 3.0b
658 * Specification", Version 1.01, March 1, 2007
660 * Note: It appears that this table is not intended to appear in the RSDT/XSDT.
661 * Therefore, it is not currently supported by the disassembler.
663 ******************************************************************************/
665 typedef struct acpi_table_ibft
667 ACPI_TABLE_HEADER Header
; /* Common ACPI table header */
673 /* IBFT common subtable header */
675 typedef struct acpi_ibft_header
685 /* Values for Type field above */
689 ACPI_IBFT_TYPE_NOT_USED
= 0,
690 ACPI_IBFT_TYPE_CONTROL
= 1,
691 ACPI_IBFT_TYPE_INITIATOR
= 2,
692 ACPI_IBFT_TYPE_NIC
= 3,
693 ACPI_IBFT_TYPE_TARGET
= 4,
694 ACPI_IBFT_TYPE_EXTENSIONS
= 5,
695 ACPI_IBFT_TYPE_RESERVED
= 6 /* 6 and greater are reserved */
701 typedef struct acpi_ibft_control
703 ACPI_IBFT_HEADER Header
;
705 UINT16 InitiatorOffset
;
707 UINT16 Target0Offset
;
709 UINT16 Target1Offset
;
713 typedef struct acpi_ibft_initiator
715 ACPI_IBFT_HEADER Header
;
718 UINT8 PrimaryServer
[16];
719 UINT8 SecondaryServer
[16];
723 } ACPI_IBFT_INITIATOR
;
725 typedef struct acpi_ibft_nic
727 ACPI_IBFT_HEADER Header
;
729 UINT8 SubnetMaskPrefix
;
732 UINT8 PrimaryDns
[16];
733 UINT8 SecondaryDns
[16];
743 typedef struct acpi_ibft_target
745 ACPI_IBFT_HEADER Header
;
746 UINT8 TargetIpAddress
[16];
747 UINT16 TargetIpSocket
;
748 UINT8 TargetBootLun
[8];
750 UINT8 NicAssociation
;
751 UINT16 TargetNameLength
;
752 UINT16 TargetNameOffset
;
753 UINT16 ChapNameLength
;
754 UINT16 ChapNameOffset
;
755 UINT16 ChapSecretLength
;
756 UINT16 ChapSecretOffset
;
757 UINT16 ReverseChapNameLength
;
758 UINT16 ReverseChapNameOffset
;
759 UINT16 ReverseChapSecretLength
;
760 UINT16 ReverseChapSecretOffset
;
765 /*******************************************************************************
767 * IORT - IO Remapping Table
769 * Conforms to "IO Remapping Table System Software on ARM Platforms",
770 * Document number: ARM DEN 0049C, May 2017
772 ******************************************************************************/
774 typedef struct acpi_table_iort
776 ACPI_TABLE_HEADER Header
;
787 typedef struct acpi_iort_node
794 UINT32 MappingOffset
;
799 /* Values for subtable Type above */
801 enum AcpiIortNodeType
803 ACPI_IORT_NODE_ITS_GROUP
= 0x00,
804 ACPI_IORT_NODE_NAMED_COMPONENT
= 0x01,
805 ACPI_IORT_NODE_PCI_ROOT_COMPLEX
= 0x02,
806 ACPI_IORT_NODE_SMMU
= 0x03,
807 ACPI_IORT_NODE_SMMU_V3
= 0x04
811 typedef struct acpi_iort_id_mapping
813 UINT32 InputBase
; /* Lowest value in input range */
814 UINT32 IdCount
; /* Number of IDs */
815 UINT32 OutputBase
; /* Lowest value in output range */
816 UINT32 OutputReference
; /* A reference to the output node */
819 } ACPI_IORT_ID_MAPPING
;
821 /* Masks for Flags field above for IORT subtable */
823 #define ACPI_IORT_ID_SINGLE_MAPPING (1)
826 typedef struct acpi_iort_memory_access
828 UINT32 CacheCoherency
;
833 } ACPI_IORT_MEMORY_ACCESS
;
835 /* Values for CacheCoherency field above */
837 #define ACPI_IORT_NODE_COHERENT 0x00000001 /* The device node is fully coherent */
838 #define ACPI_IORT_NODE_NOT_COHERENT 0x00000000 /* The device node is not coherent */
840 /* Masks for Hints field above */
842 #define ACPI_IORT_HT_TRANSIENT (1)
843 #define ACPI_IORT_HT_WRITE (1<<1)
844 #define ACPI_IORT_HT_READ (1<<2)
845 #define ACPI_IORT_HT_OVERRIDE (1<<3)
847 /* Masks for MemoryFlags field above */
849 #define ACPI_IORT_MF_COHERENCY (1)
850 #define ACPI_IORT_MF_ATTRIBUTES (1<<1)
854 * IORT node specific subtables
856 typedef struct acpi_iort_its_group
859 UINT32 Identifiers
[1]; /* GIC ITS identifier arrary */
861 } ACPI_IORT_ITS_GROUP
;
864 typedef struct acpi_iort_named_component
867 UINT64 MemoryProperties
; /* Memory access properties */
868 UINT8 MemoryAddressLimit
; /* Memory address size limit */
869 char DeviceName
[1]; /* Path of namespace object */
871 } ACPI_IORT_NAMED_COMPONENT
;
874 typedef struct acpi_iort_root_complex
876 UINT64 MemoryProperties
; /* Memory access properties */
878 UINT32 PciSegmentNumber
;
880 } ACPI_IORT_ROOT_COMPLEX
;
882 /* Values for AtsAttribute field above */
884 #define ACPI_IORT_ATS_SUPPORTED 0x00000001 /* The root complex supports ATS */
885 #define ACPI_IORT_ATS_UNSUPPORTED 0x00000000 /* The root complex doesn't support ATS */
888 typedef struct acpi_iort_smmu
890 UINT64 BaseAddress
; /* SMMU base address */
891 UINT64 Span
; /* Length of memory range */
894 UINT32 GlobalInterruptOffset
;
895 UINT32 ContextInterruptCount
;
896 UINT32 ContextInterruptOffset
;
897 UINT32 PmuInterruptCount
;
898 UINT32 PmuInterruptOffset
;
899 UINT64 Interrupts
[1]; /* Interrupt array */
903 /* Values for Model field above */
905 #define ACPI_IORT_SMMU_V1 0x00000000 /* Generic SMMUv1 */
906 #define ACPI_IORT_SMMU_V2 0x00000001 /* Generic SMMUv2 */
907 #define ACPI_IORT_SMMU_CORELINK_MMU400 0x00000002 /* ARM Corelink MMU-400 */
908 #define ACPI_IORT_SMMU_CORELINK_MMU500 0x00000003 /* ARM Corelink MMU-500 */
909 #define ACPI_IORT_SMMU_CORELINK_MMU401 0x00000004 /* ARM Corelink MMU-401 */
910 #define ACPI_IORT_SMMU_CAVIUM_THUNDERX 0x00000005 /* Cavium ThunderX SMMUv2 */
912 /* Masks for Flags field above */
914 #define ACPI_IORT_SMMU_DVM_SUPPORTED (1)
915 #define ACPI_IORT_SMMU_COHERENT_WALK (1<<1)
917 /* Global interrupt format */
919 typedef struct acpi_iort_smmu_gsi
924 UINT32 NSgCfgIrptFlags
;
925 } ACPI_IORT_SMMU_GSI
;
928 typedef struct acpi_iort_smmu_v3
930 UINT64 BaseAddress
; /* SMMUv3 base address */
945 /* Values for Model field above */
947 #define ACPI_IORT_SMMU_V3_GENERIC 0x00000000 /* Generic SMMUv3 */
948 #define ACPI_IORT_SMMU_V3_HISILICON_HI161X 0x00000001 /* HiSilicon Hi161x SMMUv3 */
949 #define ACPI_IORT_SMMU_V3_CAVIUM_CN99XX 0x00000002 /* Cavium CN99xx SMMUv3 */
951 /* Masks for Flags field above */
953 #define ACPI_IORT_SMMU_V3_COHACC_OVERRIDE (1)
954 #define ACPI_IORT_SMMU_V3_HTTU_OVERRIDE (1<<1)
955 #define ACPI_IORT_SMMU_V3_PXM_VALID (1<<3)
958 /*******************************************************************************
960 * IVRS - I/O Virtualization Reporting Structure
963 * Conforms to "AMD I/O Virtualization Technology (IOMMU) Specification",
964 * Revision 1.26, February 2009.
966 ******************************************************************************/
968 typedef struct acpi_table_ivrs
970 ACPI_TABLE_HEADER Header
; /* Common ACPI table header */
971 UINT32 Info
; /* Common virtualization info */
976 /* Values for Info field above */
978 #define ACPI_IVRS_PHYSICAL_SIZE 0x00007F00 /* 7 bits, physical address size */
979 #define ACPI_IVRS_VIRTUAL_SIZE 0x003F8000 /* 7 bits, virtual address size */
980 #define ACPI_IVRS_ATS_RESERVED 0x00400000 /* ATS address translation range reserved */
983 /* IVRS subtable header */
985 typedef struct acpi_ivrs_header
987 UINT8 Type
; /* Subtable type */
989 UINT16 Length
; /* Subtable length */
990 UINT16 DeviceId
; /* ID of IOMMU */
994 /* Values for subtable Type above */
998 ACPI_IVRS_TYPE_HARDWARE
= 0x10,
999 ACPI_IVRS_TYPE_MEMORY1
= 0x20,
1000 ACPI_IVRS_TYPE_MEMORY2
= 0x21,
1001 ACPI_IVRS_TYPE_MEMORY3
= 0x22
1004 /* Masks for Flags field above for IVHD subtable */
1006 #define ACPI_IVHD_TT_ENABLE (1)
1007 #define ACPI_IVHD_PASS_PW (1<<1)
1008 #define ACPI_IVHD_RES_PASS_PW (1<<2)
1009 #define ACPI_IVHD_ISOC (1<<3)
1010 #define ACPI_IVHD_IOTLB (1<<4)
1012 /* Masks for Flags field above for IVMD subtable */
1014 #define ACPI_IVMD_UNITY (1)
1015 #define ACPI_IVMD_READ (1<<1)
1016 #define ACPI_IVMD_WRITE (1<<2)
1017 #define ACPI_IVMD_EXCLUSION_RANGE (1<<3)
1021 * IVRS subtables, correspond to Type in ACPI_IVRS_HEADER
1024 /* 0x10: I/O Virtualization Hardware Definition Block (IVHD) */
1026 typedef struct acpi_ivrs_hardware
1028 ACPI_IVRS_HEADER Header
;
1029 UINT16 CapabilityOffset
; /* Offset for IOMMU control fields */
1030 UINT64 BaseAddress
; /* IOMMU control registers */
1031 UINT16 PciSegmentGroup
;
1032 UINT16 Info
; /* MSI number and unit ID */
1035 } ACPI_IVRS_HARDWARE
;
1037 /* Masks for Info field above */
1039 #define ACPI_IVHD_MSI_NUMBER_MASK 0x001F /* 5 bits, MSI message number */
1040 #define ACPI_IVHD_UNIT_ID_MASK 0x1F00 /* 5 bits, UnitID */
1044 * Device Entries for IVHD subtable, appear after ACPI_IVRS_HARDWARE structure.
1045 * Upper two bits of the Type field are the (encoded) length of the structure.
1046 * Currently, only 4 and 8 byte entries are defined. 16 and 32 byte entries
1047 * are reserved for future use but not defined.
1049 typedef struct acpi_ivrs_de_header
1055 } ACPI_IVRS_DE_HEADER
;
1057 /* Length of device entry is in the top two bits of Type field above */
1059 #define ACPI_IVHD_ENTRY_LENGTH 0xC0
1061 /* Values for device entry Type field above */
1063 enum AcpiIvrsDeviceEntryType
1065 /* 4-byte device entries, all use ACPI_IVRS_DEVICE4 */
1067 ACPI_IVRS_TYPE_PAD4
= 0,
1068 ACPI_IVRS_TYPE_ALL
= 1,
1069 ACPI_IVRS_TYPE_SELECT
= 2,
1070 ACPI_IVRS_TYPE_START
= 3,
1071 ACPI_IVRS_TYPE_END
= 4,
1073 /* 8-byte device entries */
1075 ACPI_IVRS_TYPE_PAD8
= 64,
1076 ACPI_IVRS_TYPE_NOT_USED
= 65,
1077 ACPI_IVRS_TYPE_ALIAS_SELECT
= 66, /* Uses ACPI_IVRS_DEVICE8A */
1078 ACPI_IVRS_TYPE_ALIAS_START
= 67, /* Uses ACPI_IVRS_DEVICE8A */
1079 ACPI_IVRS_TYPE_EXT_SELECT
= 70, /* Uses ACPI_IVRS_DEVICE8B */
1080 ACPI_IVRS_TYPE_EXT_START
= 71, /* Uses ACPI_IVRS_DEVICE8B */
1081 ACPI_IVRS_TYPE_SPECIAL
= 72 /* Uses ACPI_IVRS_DEVICE8C */
1084 /* Values for Data field above */
1086 #define ACPI_IVHD_INIT_PASS (1)
1087 #define ACPI_IVHD_EINT_PASS (1<<1)
1088 #define ACPI_IVHD_NMI_PASS (1<<2)
1089 #define ACPI_IVHD_SYSTEM_MGMT (3<<4)
1090 #define ACPI_IVHD_LINT0_PASS (1<<6)
1091 #define ACPI_IVHD_LINT1_PASS (1<<7)
1094 /* Types 0-4: 4-byte device entry */
1096 typedef struct acpi_ivrs_device4
1098 ACPI_IVRS_DE_HEADER Header
;
1100 } ACPI_IVRS_DEVICE4
;
1102 /* Types 66-67: 8-byte device entry */
1104 typedef struct acpi_ivrs_device8a
1106 ACPI_IVRS_DE_HEADER Header
;
1111 } ACPI_IVRS_DEVICE8A
;
1113 /* Types 70-71: 8-byte device entry */
1115 typedef struct acpi_ivrs_device8b
1117 ACPI_IVRS_DE_HEADER Header
;
1118 UINT32 ExtendedData
;
1120 } ACPI_IVRS_DEVICE8B
;
1122 /* Values for ExtendedData above */
1124 #define ACPI_IVHD_ATS_DISABLED (1<<31)
1126 /* Type 72: 8-byte device entry */
1128 typedef struct acpi_ivrs_device8c
1130 ACPI_IVRS_DE_HEADER Header
;
1135 } ACPI_IVRS_DEVICE8C
;
1137 /* Values for Variety field above */
1139 #define ACPI_IVHD_IOAPIC 1
1140 #define ACPI_IVHD_HPET 2
1143 /* 0x20, 0x21, 0x22: I/O Virtualization Memory Definition Block (IVMD) */
1145 typedef struct acpi_ivrs_memory
1147 ACPI_IVRS_HEADER Header
;
1150 UINT64 StartAddress
;
1151 UINT64 MemoryLength
;
1156 /*******************************************************************************
1158 * LPIT - Low Power Idle Table
1160 * Conforms to "ACPI Low Power Idle Table (LPIT)" July 2014.
1162 ******************************************************************************/
1164 typedef struct acpi_table_lpit
1166 ACPI_TABLE_HEADER Header
; /* Common ACPI table header */
1171 /* LPIT subtable header */
1173 typedef struct acpi_lpit_header
1175 UINT32 Type
; /* Subtable type */
1176 UINT32 Length
; /* Subtable length */
1183 /* Values for subtable Type above */
1187 ACPI_LPIT_TYPE_NATIVE_CSTATE
= 0x00,
1188 ACPI_LPIT_TYPE_RESERVED
= 0x01 /* 1 and above are reserved */
1191 /* Masks for Flags field above */
1193 #define ACPI_LPIT_STATE_DISABLED (1)
1194 #define ACPI_LPIT_NO_COUNTER (1<<1)
1197 * LPIT subtables, correspond to Type in ACPI_LPIT_HEADER
1200 /* 0x00: Native C-state instruction based LPI structure */
1202 typedef struct acpi_lpit_native
1204 ACPI_LPIT_HEADER Header
;
1205 ACPI_GENERIC_ADDRESS EntryTrigger
;
1208 ACPI_GENERIC_ADDRESS ResidencyCounter
;
1209 UINT64 CounterFrequency
;
1214 /*******************************************************************************
1216 * MCFG - PCI Memory Mapped Configuration table and subtable
1219 * Conforms to "PCI Firmware Specification", Revision 3.0, June 20, 2005
1221 ******************************************************************************/
1223 typedef struct acpi_table_mcfg
1225 ACPI_TABLE_HEADER Header
; /* Common ACPI table header */
1233 typedef struct acpi_mcfg_allocation
1235 UINT64 Address
; /* Base address, processor-relative */
1236 UINT16 PciSegment
; /* PCI segment group number */
1237 UINT8 StartBusNumber
; /* Starting PCI Bus number */
1238 UINT8 EndBusNumber
; /* Final PCI Bus number */
1241 } ACPI_MCFG_ALLOCATION
;
1244 /*******************************************************************************
1246 * MCHI - Management Controller Host Interface Table
1249 * Conforms to "Management Component Transport Protocol (MCTP) Host
1250 * Interface Specification", Revision 1.0.0a, October 13, 2009
1252 ******************************************************************************/
1254 typedef struct acpi_table_mchi
1256 ACPI_TABLE_HEADER Header
; /* Common ACPI table header */
1257 UINT8 InterfaceType
;
1259 UINT64 ProtocolData
;
1260 UINT8 InterruptType
;
1262 UINT8 PciDeviceFlag
;
1263 UINT32 GlobalInterrupt
;
1264 ACPI_GENERIC_ADDRESS ControlRegister
;
1273 /*******************************************************************************
1275 * MSDM - Microsoft Data Management table
1277 * Conforms to "Microsoft Software Licensing Tables (SLIC and MSDM)",
1278 * November 29, 2011. Copyright 2011 Microsoft
1280 ******************************************************************************/
1282 /* Basic MSDM table is only the common ACPI header */
1284 typedef struct acpi_table_msdm
1286 ACPI_TABLE_HEADER Header
; /* Common ACPI table header */
1291 /*******************************************************************************
1293 * MTMR - MID Timer Table
1296 * Conforms to "Simple Firmware Interface Specification",
1297 * Draft 0.8.2, Oct 19, 2010
1298 * NOTE: The ACPI MTMR is equivalent to the SFI MTMR table.
1300 ******************************************************************************/
1302 typedef struct acpi_table_mtmr
1304 ACPI_TABLE_HEADER Header
; /* Common ACPI table header */
1310 typedef struct acpi_mtmr_entry
1312 ACPI_GENERIC_ADDRESS PhysicalAddress
;
1318 /*******************************************************************************
1320 * SDEI - Software Delegated Exception Interface Descriptor Table
1322 * Conforms to "Software Delegated Exception Interface (SDEI)" ARM DEN0054A,
1323 * May 8th, 2017. Copyright 2017 ARM Ltd.
1325 ******************************************************************************/
1327 typedef struct acpi_table_sdei
1329 ACPI_TABLE_HEADER Header
; /* Common ACPI table header */
1334 /*******************************************************************************
1336 * SLIC - Software Licensing Description Table
1338 * Conforms to "Microsoft Software Licensing Tables (SLIC and MSDM)",
1339 * November 29, 2011. Copyright 2011 Microsoft
1341 ******************************************************************************/
1343 /* Basic SLIC table is only the common ACPI header */
1345 typedef struct acpi_table_slic
1347 ACPI_TABLE_HEADER Header
; /* Common ACPI table header */
1352 /*******************************************************************************
1354 * SPCR - Serial Port Console Redirection table
1357 * Conforms to "Serial Port Console Redirection Table",
1358 * Version 1.03, August 10, 2015
1360 ******************************************************************************/
1362 typedef struct acpi_table_spcr
1364 ACPI_TABLE_HEADER Header
; /* Common ACPI table header */
1365 UINT8 InterfaceType
; /* 0=full 16550, 1=subset of 16550 */
1367 ACPI_GENERIC_ADDRESS SerialPort
;
1368 UINT8 InterruptType
;
1388 /* Masks for PciFlags field above */
1390 #define ACPI_SPCR_DO_NOT_DISABLE (1)
1392 /* Values for Interface Type: See the definition of the DBG2 table */
1395 /*******************************************************************************
1397 * SPMI - Server Platform Management Interface table
1400 * Conforms to "Intelligent Platform Management Interface Specification
1401 * Second Generation v2.0", Document Revision 1.0, February 12, 2004 with
1402 * June 12, 2009 markup.
1404 ******************************************************************************/
1406 typedef struct acpi_table_spmi
1408 ACPI_TABLE_HEADER Header
; /* Common ACPI table header */
1409 UINT8 InterfaceType
;
1410 UINT8 Reserved
; /* Must be 1 */
1411 UINT16 SpecRevision
; /* Version of IPMI */
1412 UINT8 InterruptType
;
1413 UINT8 GpeNumber
; /* GPE assigned */
1415 UINT8 PciDeviceFlag
;
1417 ACPI_GENERIC_ADDRESS IpmiRegister
;
1426 /* Values for InterfaceType above */
1428 enum AcpiSpmiInterfaceTypes
1430 ACPI_SPMI_NOT_USED
= 0,
1431 ACPI_SPMI_KEYBOARD
= 1,
1433 ACPI_SPMI_BLOCK_TRANSFER
= 3,
1434 ACPI_SPMI_SMBUS
= 4,
1435 ACPI_SPMI_RESERVED
= 5 /* 5 and above are reserved */
1439 /*******************************************************************************
1441 * TCPA - Trusted Computing Platform Alliance table
1444 * Conforms to "TCG ACPI Specification, Family 1.2 and 2.0",
1445 * Version 1.2, Revision 8
1448 * NOTE: There are two versions of the table with the same signature --
1449 * the client version and the server version. The common PlatformClass
1450 * field is used to differentiate the two types of tables.
1452 ******************************************************************************/
1454 typedef struct acpi_table_tcpa_hdr
1456 ACPI_TABLE_HEADER Header
; /* Common ACPI table header */
1457 UINT16 PlatformClass
;
1459 } ACPI_TABLE_TCPA_HDR
;
1462 * Values for PlatformClass above.
1463 * This is how the client and server subtables are differentiated
1465 #define ACPI_TCPA_CLIENT_TABLE 0
1466 #define ACPI_TCPA_SERVER_TABLE 1
1469 typedef struct acpi_table_tcpa_client
1471 UINT32 MinimumLogLength
; /* Minimum length for the event log area */
1472 UINT64 LogAddress
; /* Address of the event log area */
1474 } ACPI_TABLE_TCPA_CLIENT
;
1476 typedef struct acpi_table_tcpa_server
1479 UINT64 MinimumLogLength
; /* Minimum length for the event log area */
1480 UINT64 LogAddress
; /* Address of the event log area */
1481 UINT16 SpecRevision
;
1483 UINT8 InterruptFlags
;
1486 UINT32 GlobalInterrupt
;
1487 ACPI_GENERIC_ADDRESS Address
;
1489 ACPI_GENERIC_ADDRESS ConfigAddress
;
1491 UINT8 Bus
; /* PCI Bus/Segment/Function numbers */
1495 } ACPI_TABLE_TCPA_SERVER
;
1497 /* Values for DeviceFlags above */
1499 #define ACPI_TCPA_PCI_DEVICE (1)
1500 #define ACPI_TCPA_BUS_PNP (1<<1)
1501 #define ACPI_TCPA_ADDRESS_VALID (1<<2)
1503 /* Values for InterruptFlags above */
1505 #define ACPI_TCPA_INTERRUPT_MODE (1)
1506 #define ACPI_TCPA_INTERRUPT_POLARITY (1<<1)
1507 #define ACPI_TCPA_SCI_VIA_GPE (1<<2)
1508 #define ACPI_TCPA_GLOBAL_INTERRUPT (1<<3)
1511 /*******************************************************************************
1513 * TPM2 - Trusted Platform Module (TPM) 2.0 Hardware Interface Table
1516 * Conforms to "TCG ACPI Specification, Family 1.2 and 2.0",
1517 * Version 1.2, Revision 8
1520 ******************************************************************************/
1522 typedef struct acpi_table_tpm2
1524 ACPI_TABLE_HEADER Header
; /* Common ACPI table header */
1525 UINT16 PlatformClass
;
1527 UINT64 ControlAddress
;
1530 /* Platform-specific data follows */
1534 /* Values for StartMethod above */
1536 #define ACPI_TPM2_NOT_ALLOWED 0
1537 #define ACPI_TPM2_START_METHOD 2
1538 #define ACPI_TPM2_MEMORY_MAPPED 6
1539 #define ACPI_TPM2_COMMAND_BUFFER 7
1540 #define ACPI_TPM2_COMMAND_BUFFER_WITH_START_METHOD 8
1541 #define ACPI_TPM2_COMMAND_BUFFER_WITH_ARM_SMC 11 /* V1.2 Rev 8 */
1544 /* Trailer appears after any StartMethod subtables */
1546 typedef struct acpi_tpm2_trailer
1548 UINT32 MinimumLogLength
; /* Minimum length for the event log area */
1549 UINT64 LogAddress
; /* Address of the event log area */
1551 } ACPI_TPM2_TRAILER
;
1555 * Subtables (StartMethod-specific)
1558 /* 11: Start Method for ARM SMC (V1.2 Rev 8) */
1560 typedef struct acpi_tpm2_arm_smc
1562 UINT32 GlobalInterrupt
;
1563 UINT8 InterruptFlags
;
1564 UINT8 OperationFlags
;
1568 } ACPI_TPM2_ARM_SMC
;
1570 /* Values for InterruptFlags above */
1572 #define ACPI_TPM2_INTERRUPT_SUPPORT (1)
1574 /* Values for OperationFlags above */
1576 #define ACPI_TPM2_IDLE_SUPPORT (1)
1579 /*******************************************************************************
1581 * UEFI - UEFI Boot optimization Table
1584 * Conforms to "Unified Extensible Firmware Interface Specification",
1585 * Version 2.3, May 8, 2009
1587 ******************************************************************************/
1589 typedef struct acpi_table_uefi
1591 ACPI_TABLE_HEADER Header
; /* Common ACPI table header */
1592 UINT8 Identifier
[16]; /* UUID identifier */
1593 UINT16 DataOffset
; /* Offset of remaining data in table */
1598 /*******************************************************************************
1600 * VRTC - Virtual Real Time Clock Table
1603 * Conforms to "Simple Firmware Interface Specification",
1604 * Draft 0.8.2, Oct 19, 2010
1605 * NOTE: The ACPI VRTC is equivalent to The SFI MRTC table.
1607 ******************************************************************************/
1609 typedef struct acpi_table_vrtc
1611 ACPI_TABLE_HEADER Header
; /* Common ACPI table header */
1617 typedef struct acpi_vrtc_entry
1619 ACPI_GENERIC_ADDRESS PhysicalAddress
;
1625 /*******************************************************************************
1627 * WAET - Windows ACPI Emulated devices Table
1630 * Conforms to "Windows ACPI Emulated Devices Table", version 1.0, April 6, 2009
1632 ******************************************************************************/
1634 typedef struct acpi_table_waet
1636 ACPI_TABLE_HEADER Header
; /* Common ACPI table header */
1641 /* Masks for Flags field above */
1643 #define ACPI_WAET_RTC_NO_ACK (1) /* RTC requires no int acknowledge */
1644 #define ACPI_WAET_TIMER_ONE_READ (1<<1) /* PM timer requires only one read */
1647 /*******************************************************************************
1649 * WDAT - Watchdog Action Table
1652 * Conforms to "Hardware Watchdog Timers Design Specification",
1653 * Copyright 2006 Microsoft Corporation.
1655 ******************************************************************************/
1657 typedef struct acpi_table_wdat
1659 ACPI_TABLE_HEADER Header
; /* Common ACPI table header */
1660 UINT32 HeaderLength
; /* Watchdog Header Length */
1661 UINT16 PciSegment
; /* PCI Segment number */
1662 UINT8 PciBus
; /* PCI Bus number */
1663 UINT8 PciDevice
; /* PCI Device number */
1664 UINT8 PciFunction
; /* PCI Function number */
1666 UINT32 TimerPeriod
; /* Period of one timer count (msec) */
1667 UINT32 MaxCount
; /* Maximum counter value supported */
1668 UINT32 MinCount
; /* Minimum counter value */
1671 UINT32 Entries
; /* Number of watchdog entries that follow */
1675 /* Masks for Flags field above */
1677 #define ACPI_WDAT_ENABLED (1)
1678 #define ACPI_WDAT_STOPPED 0x80
1681 /* WDAT Instruction Entries (actions) */
1683 typedef struct acpi_wdat_entry
1688 ACPI_GENERIC_ADDRESS RegisterRegion
;
1689 UINT32 Value
; /* Value used with Read/Write register */
1690 UINT32 Mask
; /* Bitmask required for this register instruction */
1694 /* Values for Action field above */
1696 enum AcpiWdatActions
1698 ACPI_WDAT_RESET
= 1,
1699 ACPI_WDAT_GET_CURRENT_COUNTDOWN
= 4,
1700 ACPI_WDAT_GET_COUNTDOWN
= 5,
1701 ACPI_WDAT_SET_COUNTDOWN
= 6,
1702 ACPI_WDAT_GET_RUNNING_STATE
= 8,
1703 ACPI_WDAT_SET_RUNNING_STATE
= 9,
1704 ACPI_WDAT_GET_STOPPED_STATE
= 10,
1705 ACPI_WDAT_SET_STOPPED_STATE
= 11,
1706 ACPI_WDAT_GET_REBOOT
= 16,
1707 ACPI_WDAT_SET_REBOOT
= 17,
1708 ACPI_WDAT_GET_SHUTDOWN
= 18,
1709 ACPI_WDAT_SET_SHUTDOWN
= 19,
1710 ACPI_WDAT_GET_STATUS
= 32,
1711 ACPI_WDAT_SET_STATUS
= 33,
1712 ACPI_WDAT_ACTION_RESERVED
= 34 /* 34 and greater are reserved */
1715 /* Values for Instruction field above */
1717 enum AcpiWdatInstructions
1719 ACPI_WDAT_READ_VALUE
= 0,
1720 ACPI_WDAT_READ_COUNTDOWN
= 1,
1721 ACPI_WDAT_WRITE_VALUE
= 2,
1722 ACPI_WDAT_WRITE_COUNTDOWN
= 3,
1723 ACPI_WDAT_INSTRUCTION_RESERVED
= 4, /* 4 and greater are reserved */
1724 ACPI_WDAT_PRESERVE_REGISTER
= 0x80 /* Except for this value */
1728 /*******************************************************************************
1730 * WDDT - Watchdog Descriptor Table
1733 * Conforms to "Using the Intel ICH Family Watchdog Timer (WDT)",
1734 * Version 001, September 2002
1736 ******************************************************************************/
1738 typedef struct acpi_table_wddt
1740 ACPI_TABLE_HEADER Header
; /* Common ACPI table header */
1742 UINT16 TableVersion
;
1744 ACPI_GENERIC_ADDRESS Address
;
1745 UINT16 MaxCount
; /* Maximum counter value supported */
1746 UINT16 MinCount
; /* Minimum counter value supported */
1753 /* Flags for Status field above */
1755 #define ACPI_WDDT_AVAILABLE (1)
1756 #define ACPI_WDDT_ACTIVE (1<<1)
1757 #define ACPI_WDDT_TCO_OS_OWNED (1<<2)
1758 #define ACPI_WDDT_USER_RESET (1<<11)
1759 #define ACPI_WDDT_WDT_RESET (1<<12)
1760 #define ACPI_WDDT_POWER_FAIL (1<<13)
1761 #define ACPI_WDDT_UNKNOWN_RESET (1<<14)
1763 /* Flags for Capability field above */
1765 #define ACPI_WDDT_AUTO_RESET (1)
1766 #define ACPI_WDDT_ALERT_SUPPORT (1<<1)
1769 /*******************************************************************************
1771 * WDRT - Watchdog Resource Table
1774 * Conforms to "Watchdog Timer Hardware Requirements for Windows Server 2003",
1775 * Version 1.01, August 28, 2006
1777 ******************************************************************************/
1779 typedef struct acpi_table_wdrt
1781 ACPI_TABLE_HEADER Header
; /* Common ACPI table header */
1782 ACPI_GENERIC_ADDRESS ControlRegister
;
1783 ACPI_GENERIC_ADDRESS CountRegister
;
1786 UINT8 PciBus
; /* PCI Bus number */
1787 UINT8 PciDevice
; /* PCI Device number */
1788 UINT8 PciFunction
; /* PCI Function number */
1789 UINT8 PciSegment
; /* PCI Segment number */
1790 UINT16 MaxCount
; /* Maximum counter value supported */
1796 /*******************************************************************************
1798 * WSMT - Windows SMM Security Migrations Table
1801 * Conforms to "Windows SMM Security Migrations Table",
1802 * Version 1.0, April 18, 2016
1804 ******************************************************************************/
1806 typedef struct acpi_table_wsmt
1808 ACPI_TABLE_HEADER Header
; /* Common ACPI table header */
1809 UINT32 ProtectionFlags
;
1813 /* Flags for ProtectionFlags field above */
1815 #define ACPI_WSMT_FIXED_COMM_BUFFERS (1)
1816 #define ACPI_WSMT_COMM_BUFFER_NESTED_PTR_PROTECTION (2)
1817 #define ACPI_WSMT_SYSTEM_RESOURCE_PROTECTION (4)
1820 /* Reset to default packing */
1824 #endif /* __ACTBL2_H__ */