1 /******************************************************************************
3 * Name: actbl2.h - ACPI Table Definitions (tables not in ACPI spec)
5 *****************************************************************************/
8 * Copyright (C) 2000 - 2014, 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 * The tables in this file are defined by third-party specifications, and are
56 * 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_IVRS "IVRS" /* I/O Virtualization Reporting Structure */
75 #define ACPI_SIG_LPIT "LPIT" /* Low Power Idle Table */
76 #define ACPI_SIG_MCFG "MCFG" /* PCI Memory Mapped Configuration table */
77 #define ACPI_SIG_MCHI "MCHI" /* Management Controller Host Interface table */
78 #define ACPI_SIG_MTMR "MTMR" /* MID Timer table */
79 #define ACPI_SIG_SLIC "SLIC" /* Software Licensing Description Table */
80 #define ACPI_SIG_SPCR "SPCR" /* Serial Port Console Redirection table */
81 #define ACPI_SIG_SPMI "SPMI" /* Server Platform Management Interface table */
82 #define ACPI_SIG_TCPA "TCPA" /* Trusted Computing Platform Alliance table */
83 #define ACPI_SIG_UEFI "UEFI" /* Uefi Boot Optimization Table */
84 #define ACPI_SIG_VRTC "VRTC" /* Virtual Real Time Clock Table */
85 #define ACPI_SIG_WAET "WAET" /* Windows ACPI Emulated devices Table */
86 #define ACPI_SIG_WDAT "WDAT" /* Watchdog Action Table */
87 #define ACPI_SIG_WDDT "WDDT" /* Watchdog Timer Description Table */
88 #define ACPI_SIG_WDRT "WDRT" /* Watchdog Resource Table */
90 #ifdef ACPI_UNDEFINED_TABLES
92 * These tables have been seen in the field, but no definition has been found
94 #define ACPI_SIG_ATKG "ATKG"
95 #define ACPI_SIG_GSCI "GSCI" /* GMCH SCI table */
96 #define ACPI_SIG_IEIT "IEIT"
100 * All tables must be byte-packed to match the ACPI specification, since
101 * the tables are provided by the system BIOS.
106 * Note: C bitfields are not used for this reason:
108 * "Bitfields are great and easy to read, but unfortunately the C language
109 * does not specify the layout of bitfields in memory, which means they are
110 * essentially useless for dealing with packed data in on-disk formats or
111 * binary wire protocols." (Or ACPI tables and buffers.) "If you ask me,
112 * this decision was a design error in C. Ritchie could have picked an order
113 * and stuck with it." Norman Ramsey.
114 * See http://stackoverflow.com/a/1053662/41661
118 /*******************************************************************************
120 * ASF - Alert Standard Format table (Signature "ASF!")
123 * Conforms to the Alert Standard Format Specification V2.0, 23 April 2003
125 ******************************************************************************/
127 typedef struct acpi_table_asf
129 ACPI_TABLE_HEADER Header; /* Common ACPI table header */
134 /* ASF subtable header */
136 typedef struct acpi_asf_header
145 /* Values for Type field above */
149 ACPI_ASF_TYPE_INFO = 0,
150 ACPI_ASF_TYPE_ALERT = 1,
151 ACPI_ASF_TYPE_CONTROL = 2,
152 ACPI_ASF_TYPE_BOOT = 3,
153 ACPI_ASF_TYPE_ADDRESS = 4,
154 ACPI_ASF_TYPE_RESERVED = 5
161 /* 0: ASF Information */
163 typedef struct acpi_asf_info
165 ACPI_ASF_HEADER Header;
167 UINT8 MinPollInterval;
175 /* Masks for Flags field above */
177 #define ACPI_ASF_SMBUS_PROTOCOLS (1)
182 typedef struct acpi_asf_alert
184 ACPI_ASF_HEADER Header;
192 typedef struct acpi_asf_alert_data
207 } ACPI_ASF_ALERT_DATA;
210 /* 2: ASF Remote Control */
212 typedef struct acpi_asf_remote
214 ACPI_ASF_HEADER Header;
221 typedef struct acpi_asf_control_data
228 } ACPI_ASF_CONTROL_DATA;
231 /* 3: ASF RMCP Boot Options */
233 typedef struct acpi_asf_rmcp
235 ACPI_ASF_HEADER Header;
236 UINT8 Capabilities[7];
237 UINT8 CompletionCode;
242 UINT16 OemParameters;
249 typedef struct acpi_asf_address
251 ACPI_ASF_HEADER Header;
258 /*******************************************************************************
260 * BOOT - Simple Boot Flag Table
263 * Conforms to the "Simple Boot Flag Specification", Version 2.1
265 ******************************************************************************/
267 typedef struct acpi_table_boot
269 ACPI_TABLE_HEADER Header; /* Common ACPI table header */
270 UINT8 CmosIndex; /* Index in CMOS RAM for the boot register */
276 /*******************************************************************************
278 * CSRT - Core System Resource Table
281 * Conforms to the "Core System Resource Table (CSRT)", November 14, 2011
283 ******************************************************************************/
285 typedef struct acpi_table_csrt
287 ACPI_TABLE_HEADER Header; /* Common ACPI table header */
292 /* Resource Group subtable */
294 typedef struct acpi_csrt_group
303 UINT32 SharedInfoLength;
305 /* Shared data immediately follows (Length = SharedInfoLength) */
309 /* Shared Info subtable */
311 typedef struct acpi_csrt_shared_info
318 UINT8 InterruptPolarity;
321 UINT8 DmaAddressWidth;
322 UINT16 BaseRequestLine;
323 UINT16 NumHandshakeSignals;
326 /* Resource descriptors immediately follow (Length = Group Length - SharedInfoLength) */
328 } ACPI_CSRT_SHARED_INFO;
330 /* Resource Descriptor subtable */
332 typedef struct acpi_csrt_descriptor
339 /* Resource-specific information immediately follows */
341 } ACPI_CSRT_DESCRIPTOR;
346 #define ACPI_CSRT_TYPE_INTERRUPT 0x0001
347 #define ACPI_CSRT_TYPE_TIMER 0x0002
348 #define ACPI_CSRT_TYPE_DMA 0x0003
350 /* Resource Subtypes */
352 #define ACPI_CSRT_XRUPT_LINE 0x0000
353 #define ACPI_CSRT_XRUPT_CONTROLLER 0x0001
354 #define ACPI_CSRT_TIMER 0x0000
355 #define ACPI_CSRT_DMA_CHANNEL 0x0000
356 #define ACPI_CSRT_DMA_CONTROLLER 0x0001
359 /*******************************************************************************
361 * DBG2 - Debug Port Table 2
362 * Version 0 (Both main table and subtables)
364 * Conforms to "Microsoft Debug Port Table 2 (DBG2)", May 22 2012.
366 ******************************************************************************/
368 typedef struct acpi_table_dbg2
370 ACPI_TABLE_HEADER Header; /* Common ACPI table header */
377 typedef struct acpi_dbg2_header
385 /* Debug Device Information Subtable */
387 typedef struct acpi_dbg2_device
391 UINT8 RegisterCount; /* Number of BaseAddress registers */
392 UINT16 NamepathLength;
393 UINT16 NamepathOffset;
394 UINT16 OemDataLength;
395 UINT16 OemDataOffset;
399 UINT16 BaseAddressOffset;
400 UINT16 AddressSizeOffset;
403 * BaseAddress (required) - Each in 12-byte Generic Address Structure format.
404 * AddressSize (required) - Array of UINT32 sizes corresponding to each BaseAddress register.
405 * Namepath (required) - Null terminated string. Single dot if not supported.
406 * OemData (optional) - Length is OemDataLength.
410 /* Types for PortType field above */
412 #define ACPI_DBG2_SERIAL_PORT 0x8000
413 #define ACPI_DBG2_1394_PORT 0x8001
414 #define ACPI_DBG2_USB_PORT 0x8002
415 #define ACPI_DBG2_NET_PORT 0x8003
417 /* Subtypes for PortSubtype field above */
419 #define ACPI_DBG2_16550_COMPATIBLE 0x0000
420 #define ACPI_DBG2_16550_SUBSET 0x0001
422 #define ACPI_DBG2_1394_STANDARD 0x0000
424 #define ACPI_DBG2_USB_XHCI 0x0000
425 #define ACPI_DBG2_USB_EHCI 0x0001
428 /*******************************************************************************
430 * DBGP - Debug Port table
433 * Conforms to the "Debug Port Specification", Version 1.00, 2/9/2000
435 ******************************************************************************/
437 typedef struct acpi_table_dbgp
439 ACPI_TABLE_HEADER Header; /* Common ACPI table header */
440 UINT8 Type; /* 0=full 16550, 1=subset of 16550 */
442 ACPI_GENERIC_ADDRESS DebugPort;
447 /*******************************************************************************
449 * DMAR - DMA Remapping table
452 * Conforms to "Intel Virtualization Technology for Directed I/O",
453 * Version 1.2, Sept. 2008
455 ******************************************************************************/
457 typedef struct acpi_table_dmar
459 ACPI_TABLE_HEADER Header; /* Common ACPI table header */
460 UINT8 Width; /* Host Address Width */
466 /* Masks for Flags field above */
468 #define ACPI_DMAR_INTR_REMAP (1)
471 /* DMAR subtable header */
473 typedef struct acpi_dmar_header
480 /* Values for subtable type in ACPI_DMAR_HEADER */
484 ACPI_DMAR_TYPE_HARDWARE_UNIT = 0,
485 ACPI_DMAR_TYPE_RESERVED_MEMORY = 1,
486 ACPI_DMAR_TYPE_ATSR = 2,
487 ACPI_DMAR_HARDWARE_AFFINITY = 3,
488 ACPI_DMAR_TYPE_RESERVED = 4 /* 4 and greater are reserved */
492 /* DMAR Device Scope structure */
494 typedef struct acpi_dmar_device_scope
502 } ACPI_DMAR_DEVICE_SCOPE;
504 /* Values for EntryType in ACPI_DMAR_DEVICE_SCOPE */
506 enum AcpiDmarScopeType
508 ACPI_DMAR_SCOPE_TYPE_NOT_USED = 0,
509 ACPI_DMAR_SCOPE_TYPE_ENDPOINT = 1,
510 ACPI_DMAR_SCOPE_TYPE_BRIDGE = 2,
511 ACPI_DMAR_SCOPE_TYPE_IOAPIC = 3,
512 ACPI_DMAR_SCOPE_TYPE_HPET = 4,
513 ACPI_DMAR_SCOPE_TYPE_RESERVED = 5 /* 5 and greater are reserved */
516 typedef struct acpi_dmar_pci_path
521 } ACPI_DMAR_PCI_PATH;
525 * DMAR Subtables, correspond to Type in ACPI_DMAR_HEADER
528 /* 0: Hardware Unit Definition */
530 typedef struct acpi_dmar_hardware_unit
532 ACPI_DMAR_HEADER Header;
536 UINT64 Address; /* Register Base Address */
538 } ACPI_DMAR_HARDWARE_UNIT;
540 /* Masks for Flags field above */
542 #define ACPI_DMAR_INCLUDE_ALL (1)
545 /* 1: Reserved Memory Defininition */
547 typedef struct acpi_dmar_reserved_memory
549 ACPI_DMAR_HEADER Header;
552 UINT64 BaseAddress; /* 4K aligned base address */
553 UINT64 EndAddress; /* 4K aligned limit address */
555 } ACPI_DMAR_RESERVED_MEMORY;
557 /* Masks for Flags field above */
559 #define ACPI_DMAR_ALLOW_ALL (1)
562 /* 2: Root Port ATS Capability Reporting Structure */
564 typedef struct acpi_dmar_atsr
566 ACPI_DMAR_HEADER Header;
573 /* Masks for Flags field above */
575 #define ACPI_DMAR_ALL_PORTS (1)
578 /* 3: Remapping Hardware Static Affinity Structure */
580 typedef struct acpi_dmar_rhsa
582 ACPI_DMAR_HEADER Header;
585 UINT32 ProximityDomain;
590 /*******************************************************************************
592 * HPET - High Precision Event Timer table
595 * Conforms to "IA-PC HPET (High Precision Event Timers) Specification",
596 * Version 1.0a, October 2004
598 ******************************************************************************/
600 typedef struct acpi_table_hpet
602 ACPI_TABLE_HEADER Header; /* Common ACPI table header */
603 UINT32 Id; /* Hardware ID of event timer block */
604 ACPI_GENERIC_ADDRESS Address; /* Address of event timer block */
605 UINT8 Sequence; /* HPET sequence number */
606 UINT16 MinimumTick; /* Main counter min tick, periodic mode */
611 /* Masks for Flags field above */
613 #define ACPI_HPET_PAGE_PROTECT_MASK (3)
615 /* Values for Page Protect flags */
617 enum AcpiHpetPageProtect
619 ACPI_HPET_NO_PAGE_PROTECT = 0,
620 ACPI_HPET_PAGE_PROTECT4 = 1,
621 ACPI_HPET_PAGE_PROTECT64 = 2
625 /*******************************************************************************
627 * IBFT - Boot Firmware Table
630 * Conforms to "iSCSI Boot Firmware Table (iBFT) as Defined in ACPI 3.0b
631 * Specification", Version 1.01, March 1, 2007
633 * Note: It appears that this table is not intended to appear in the RSDT/XSDT.
634 * Therefore, it is not currently supported by the disassembler.
636 ******************************************************************************/
638 typedef struct acpi_table_ibft
640 ACPI_TABLE_HEADER Header; /* Common ACPI table header */
646 /* IBFT common subtable header */
648 typedef struct acpi_ibft_header
658 /* Values for Type field above */
662 ACPI_IBFT_TYPE_NOT_USED = 0,
663 ACPI_IBFT_TYPE_CONTROL = 1,
664 ACPI_IBFT_TYPE_INITIATOR = 2,
665 ACPI_IBFT_TYPE_NIC = 3,
666 ACPI_IBFT_TYPE_TARGET = 4,
667 ACPI_IBFT_TYPE_EXTENSIONS = 5,
668 ACPI_IBFT_TYPE_RESERVED = 6 /* 6 and greater are reserved */
674 typedef struct acpi_ibft_control
676 ACPI_IBFT_HEADER Header;
678 UINT16 InitiatorOffset;
680 UINT16 Target0Offset;
682 UINT16 Target1Offset;
686 typedef struct acpi_ibft_initiator
688 ACPI_IBFT_HEADER Header;
691 UINT8 PrimaryServer[16];
692 UINT8 SecondaryServer[16];
696 } ACPI_IBFT_INITIATOR;
698 typedef struct acpi_ibft_nic
700 ACPI_IBFT_HEADER Header;
702 UINT8 SubnetMaskPrefix;
705 UINT8 PrimaryDns[16];
706 UINT8 SecondaryDns[16];
716 typedef struct acpi_ibft_target
718 ACPI_IBFT_HEADER Header;
719 UINT8 TargetIpAddress[16];
720 UINT16 TargetIpSocket;
721 UINT8 TargetBootLun[8];
723 UINT8 NicAssociation;
724 UINT16 TargetNameLength;
725 UINT16 TargetNameOffset;
726 UINT16 ChapNameLength;
727 UINT16 ChapNameOffset;
728 UINT16 ChapSecretLength;
729 UINT16 ChapSecretOffset;
730 UINT16 ReverseChapNameLength;
731 UINT16 ReverseChapNameOffset;
732 UINT16 ReverseChapSecretLength;
733 UINT16 ReverseChapSecretOffset;
738 /*******************************************************************************
740 * IVRS - I/O Virtualization Reporting Structure
743 * Conforms to "AMD I/O Virtualization Technology (IOMMU) Specification",
744 * Revision 1.26, February 2009.
746 ******************************************************************************/
748 typedef struct acpi_table_ivrs
750 ACPI_TABLE_HEADER Header; /* Common ACPI table header */
751 UINT32 Info; /* Common virtualization info */
756 /* Values for Info field above */
758 #define ACPI_IVRS_PHYSICAL_SIZE 0x00007F00 /* 7 bits, physical address size */
759 #define ACPI_IVRS_VIRTUAL_SIZE 0x003F8000 /* 7 bits, virtual address size */
760 #define ACPI_IVRS_ATS_RESERVED 0x00400000 /* ATS address translation range reserved */
763 /* IVRS subtable header */
765 typedef struct acpi_ivrs_header
767 UINT8 Type; /* Subtable type */
769 UINT16 Length; /* Subtable length */
770 UINT16 DeviceId; /* ID of IOMMU */
774 /* Values for subtable Type above */
778 ACPI_IVRS_TYPE_HARDWARE = 0x10,
779 ACPI_IVRS_TYPE_MEMORY1 = 0x20,
780 ACPI_IVRS_TYPE_MEMORY2 = 0x21,
781 ACPI_IVRS_TYPE_MEMORY3 = 0x22
784 /* Masks for Flags field above for IVHD subtable */
786 #define ACPI_IVHD_TT_ENABLE (1)
787 #define ACPI_IVHD_PASS_PW (1<<1)
788 #define ACPI_IVHD_RES_PASS_PW (1<<2)
789 #define ACPI_IVHD_ISOC (1<<3)
790 #define ACPI_IVHD_IOTLB (1<<4)
792 /* Masks for Flags field above for IVMD subtable */
794 #define ACPI_IVMD_UNITY (1)
795 #define ACPI_IVMD_READ (1<<1)
796 #define ACPI_IVMD_WRITE (1<<2)
797 #define ACPI_IVMD_EXCLUSION_RANGE (1<<3)
801 * IVRS subtables, correspond to Type in ACPI_IVRS_HEADER
804 /* 0x10: I/O Virtualization Hardware Definition Block (IVHD) */
806 typedef struct acpi_ivrs_hardware
808 ACPI_IVRS_HEADER Header;
809 UINT16 CapabilityOffset; /* Offset for IOMMU control fields */
810 UINT64 BaseAddress; /* IOMMU control registers */
811 UINT16 PciSegmentGroup;
812 UINT16 Info; /* MSI number and unit ID */
815 } ACPI_IVRS_HARDWARE;
817 /* Masks for Info field above */
819 #define ACPI_IVHD_MSI_NUMBER_MASK 0x001F /* 5 bits, MSI message number */
820 #define ACPI_IVHD_UNIT_ID_MASK 0x1F00 /* 5 bits, UnitID */
824 * Device Entries for IVHD subtable, appear after ACPI_IVRS_HARDWARE structure.
825 * Upper two bits of the Type field are the (encoded) length of the structure.
826 * Currently, only 4 and 8 byte entries are defined. 16 and 32 byte entries
827 * are reserved for future use but not defined.
829 typedef struct acpi_ivrs_de_header
835 } ACPI_IVRS_DE_HEADER;
837 /* Length of device entry is in the top two bits of Type field above */
839 #define ACPI_IVHD_ENTRY_LENGTH 0xC0
841 /* Values for device entry Type field above */
843 enum AcpiIvrsDeviceEntryType
845 /* 4-byte device entries, all use ACPI_IVRS_DEVICE4 */
847 ACPI_IVRS_TYPE_PAD4 = 0,
848 ACPI_IVRS_TYPE_ALL = 1,
849 ACPI_IVRS_TYPE_SELECT = 2,
850 ACPI_IVRS_TYPE_START = 3,
851 ACPI_IVRS_TYPE_END = 4,
853 /* 8-byte device entries */
855 ACPI_IVRS_TYPE_PAD8 = 64,
856 ACPI_IVRS_TYPE_NOT_USED = 65,
857 ACPI_IVRS_TYPE_ALIAS_SELECT = 66, /* Uses ACPI_IVRS_DEVICE8A */
858 ACPI_IVRS_TYPE_ALIAS_START = 67, /* Uses ACPI_IVRS_DEVICE8A */
859 ACPI_IVRS_TYPE_EXT_SELECT = 70, /* Uses ACPI_IVRS_DEVICE8B */
860 ACPI_IVRS_TYPE_EXT_START = 71, /* Uses ACPI_IVRS_DEVICE8B */
861 ACPI_IVRS_TYPE_SPECIAL = 72 /* Uses ACPI_IVRS_DEVICE8C */
864 /* Values for Data field above */
866 #define ACPI_IVHD_INIT_PASS (1)
867 #define ACPI_IVHD_EINT_PASS (1<<1)
868 #define ACPI_IVHD_NMI_PASS (1<<2)
869 #define ACPI_IVHD_SYSTEM_MGMT (3<<4)
870 #define ACPI_IVHD_LINT0_PASS (1<<6)
871 #define ACPI_IVHD_LINT1_PASS (1<<7)
874 /* Types 0-4: 4-byte device entry */
876 typedef struct acpi_ivrs_device4
878 ACPI_IVRS_DE_HEADER Header;
882 /* Types 66-67: 8-byte device entry */
884 typedef struct acpi_ivrs_device8a
886 ACPI_IVRS_DE_HEADER Header;
891 } ACPI_IVRS_DEVICE8A;
893 /* Types 70-71: 8-byte device entry */
895 typedef struct acpi_ivrs_device8b
897 ACPI_IVRS_DE_HEADER Header;
900 } ACPI_IVRS_DEVICE8B;
902 /* Values for ExtendedData above */
904 #define ACPI_IVHD_ATS_DISABLED (1<<31)
906 /* Type 72: 8-byte device entry */
908 typedef struct acpi_ivrs_device8c
910 ACPI_IVRS_DE_HEADER Header;
915 } ACPI_IVRS_DEVICE8C;
917 /* Values for Variety field above */
919 #define ACPI_IVHD_IOAPIC 1
920 #define ACPI_IVHD_HPET 2
923 /* 0x20, 0x21, 0x22: I/O Virtualization Memory Definition Block (IVMD) */
925 typedef struct acpi_ivrs_memory
927 ACPI_IVRS_HEADER Header;
936 /*******************************************************************************
938 * LPIT - Low Power Idle Table
940 * Conforms to "ACPI Low Power Idle Table (LPIT) and _LPD Proposal (DRAFT)"
942 ******************************************************************************/
944 typedef struct acpi_table_lpit
946 ACPI_TABLE_HEADER Header; /* Common ACPI table header */
951 /* LPIT subtable header */
953 typedef struct acpi_lpit_header
955 UINT32 Type; /* Subtable type */
956 UINT32 Length; /* Subtable length */
963 /* Values for subtable Type above */
967 ACPI_LPIT_TYPE_NATIVE_CSTATE = 0x00,
968 ACPI_LPIT_TYPE_SIMPLE_IO = 0x01
971 /* Masks for Flags field above */
973 #define ACPI_LPIT_STATE_DISABLED (1)
974 #define ACPI_LPIT_NO_COUNTER (1<<1)
977 * LPIT subtables, correspond to Type in ACPI_LPIT_HEADER
980 /* 0x00: Native C-state instruction based LPI structure */
982 typedef struct acpi_lpit_native
984 ACPI_LPIT_HEADER Header;
985 ACPI_GENERIC_ADDRESS EntryTrigger;
988 ACPI_GENERIC_ADDRESS ResidencyCounter;
989 UINT64 CounterFrequency;
994 /* 0x01: Simple I/O based LPI structure */
996 typedef struct acpi_lpit_io
998 ACPI_LPIT_HEADER Header;
999 ACPI_GENERIC_ADDRESS EntryTrigger;
1000 UINT32 TriggerAction;
1001 UINT64 TriggerValue;
1003 ACPI_GENERIC_ADDRESS MinimumIdleState;
1006 ACPI_GENERIC_ADDRESS ResidencyCounter;
1007 UINT64 CounterFrequency;
1012 /*******************************************************************************
1014 * MCFG - PCI Memory Mapped Configuration table and subtable
1017 * Conforms to "PCI Firmware Specification", Revision 3.0, June 20, 2005
1019 ******************************************************************************/
1021 typedef struct acpi_table_mcfg
1023 ACPI_TABLE_HEADER Header; /* Common ACPI table header */
1031 typedef struct acpi_mcfg_allocation
1033 UINT64 Address; /* Base address, processor-relative */
1034 UINT16 PciSegment; /* PCI segment group number */
1035 UINT8 StartBusNumber; /* Starting PCI Bus number */
1036 UINT8 EndBusNumber; /* Final PCI Bus number */
1039 } ACPI_MCFG_ALLOCATION;
1042 /*******************************************************************************
1044 * MCHI - Management Controller Host Interface Table
1047 * Conforms to "Management Component Transport Protocol (MCTP) Host
1048 * Interface Specification", Revision 1.0.0a, October 13, 2009
1050 ******************************************************************************/
1052 typedef struct acpi_table_mchi
1054 ACPI_TABLE_HEADER Header; /* Common ACPI table header */
1055 UINT8 InterfaceType;
1057 UINT64 ProtocolData;
1058 UINT8 InterruptType;
1060 UINT8 PciDeviceFlag;
1061 UINT32 GlobalInterrupt;
1062 ACPI_GENERIC_ADDRESS ControlRegister;
1071 /*******************************************************************************
1073 * MTMR - MID Timer Table
1076 * Conforms to "Simple Firmware Interface Specification",
1077 * Draft 0.8.2, Oct 19, 2010
1078 * NOTE: The ACPI MTMR is equivalent to the SFI MTMR table.
1080 ******************************************************************************/
1082 typedef struct acpi_table_mtmr
1084 ACPI_TABLE_HEADER Header; /* Common ACPI table header */
1090 typedef struct acpi_mtmr_entry
1092 ACPI_GENERIC_ADDRESS PhysicalAddress;
1099 /*******************************************************************************
1101 * SLIC - Software Licensing Description Table
1104 * Conforms to "OEM Activation 2.0 for Windows Vista Operating Systems",
1107 ******************************************************************************/
1109 /* Basic SLIC table is only the common ACPI header */
1111 typedef struct acpi_table_slic
1113 ACPI_TABLE_HEADER Header; /* Common ACPI table header */
1118 /* Common SLIC subtable header */
1120 typedef struct acpi_slic_header
1127 /* Values for Type field above */
1131 ACPI_SLIC_TYPE_PUBLIC_KEY = 0,
1132 ACPI_SLIC_TYPE_WINDOWS_MARKER = 1,
1133 ACPI_SLIC_TYPE_RESERVED = 2 /* 2 and greater are reserved */
1138 * SLIC Subtables, correspond to Type in ACPI_SLIC_HEADER
1141 /* 0: Public Key Structure */
1143 typedef struct acpi_slic_key
1145 ACPI_SLIC_HEADER Header;
1158 /* 1: Windows Marker Structure */
1160 typedef struct acpi_slic_marker
1162 ACPI_SLIC_HEADER Header;
1164 char OemId[ACPI_OEM_ID_SIZE]; /* ASCII OEM identification */
1165 char OemTableId[ACPI_OEM_TABLE_ID_SIZE]; /* ASCII OEM table identification */
1166 char WindowsFlag[8];
1169 UINT8 Signature[128];
1174 /*******************************************************************************
1176 * SPCR - Serial Port Console Redirection table
1179 * Conforms to "Serial Port Console Redirection Table",
1180 * Version 1.00, January 11, 2002
1182 ******************************************************************************/
1184 typedef struct acpi_table_spcr
1186 ACPI_TABLE_HEADER Header; /* Common ACPI table header */
1187 UINT8 InterfaceType; /* 0=full 16550, 1=subset of 16550 */
1189 ACPI_GENERIC_ADDRESS SerialPort;
1190 UINT8 InterruptType;
1210 /* Masks for PciFlags field above */
1212 #define ACPI_SPCR_DO_NOT_DISABLE (1)
1215 /*******************************************************************************
1217 * SPMI - Server Platform Management Interface table
1220 * Conforms to "Intelligent Platform Management Interface Specification
1221 * Second Generation v2.0", Document Revision 1.0, February 12, 2004 with
1222 * June 12, 2009 markup.
1224 ******************************************************************************/
1226 typedef struct acpi_table_spmi
1228 ACPI_TABLE_HEADER Header; /* Common ACPI table header */
1229 UINT8 InterfaceType;
1230 UINT8 Reserved; /* Must be 1 */
1231 UINT16 SpecRevision; /* Version of IPMI */
1232 UINT8 InterruptType;
1233 UINT8 GpeNumber; /* GPE assigned */
1235 UINT8 PciDeviceFlag;
1237 ACPI_GENERIC_ADDRESS IpmiRegister;
1246 /* Values for InterfaceType above */
1248 enum AcpiSpmiInterfaceTypes
1250 ACPI_SPMI_NOT_USED = 0,
1251 ACPI_SPMI_KEYBOARD = 1,
1253 ACPI_SPMI_BLOCK_TRANSFER = 3,
1254 ACPI_SPMI_SMBUS = 4,
1255 ACPI_SPMI_RESERVED = 5 /* 5 and above are reserved */
1259 /*******************************************************************************
1261 * TCPA - Trusted Computing Platform Alliance table
1264 * Conforms to "TCG PC Specific Implementation Specification",
1265 * Version 1.1, August 18, 2003
1267 ******************************************************************************/
1269 typedef struct acpi_table_tcpa
1271 ACPI_TABLE_HEADER Header; /* Common ACPI table header */
1273 UINT32 MaxLogLength; /* Maximum length for the event log area */
1274 UINT64 LogAddress; /* Address of the event log area */
1279 /*******************************************************************************
1281 * UEFI - UEFI Boot optimization Table
1284 * Conforms to "Unified Extensible Firmware Interface Specification",
1285 * Version 2.3, May 8, 2009
1287 ******************************************************************************/
1289 typedef struct acpi_table_uefi
1291 ACPI_TABLE_HEADER Header; /* Common ACPI table header */
1292 UINT8 Identifier[16]; /* UUID identifier */
1293 UINT16 DataOffset; /* Offset of remaining data in table */
1298 /*******************************************************************************
1300 * VRTC - Virtual Real Time Clock Table
1303 * Conforms to "Simple Firmware Interface Specification",
1304 * Draft 0.8.2, Oct 19, 2010
1305 * NOTE: The ACPI VRTC is equivalent to The SFI MRTC table.
1307 ******************************************************************************/
1309 typedef struct acpi_table_vrtc
1311 ACPI_TABLE_HEADER Header; /* Common ACPI table header */
1317 typedef struct acpi_vrtc_entry
1319 ACPI_GENERIC_ADDRESS PhysicalAddress;
1325 /*******************************************************************************
1327 * WAET - Windows ACPI Emulated devices Table
1330 * Conforms to "Windows ACPI Emulated Devices Table", version 1.0, April 6, 2009
1332 ******************************************************************************/
1334 typedef struct acpi_table_waet
1336 ACPI_TABLE_HEADER Header; /* Common ACPI table header */
1341 /* Masks for Flags field above */
1343 #define ACPI_WAET_RTC_NO_ACK (1) /* RTC requires no int acknowledge */
1344 #define ACPI_WAET_TIMER_ONE_READ (1<<1) /* PM timer requires only one read */
1347 /*******************************************************************************
1349 * WDAT - Watchdog Action Table
1352 * Conforms to "Hardware Watchdog Timers Design Specification",
1353 * Copyright 2006 Microsoft Corporation.
1355 ******************************************************************************/
1357 typedef struct acpi_table_wdat
1359 ACPI_TABLE_HEADER Header; /* Common ACPI table header */
1360 UINT32 HeaderLength; /* Watchdog Header Length */
1361 UINT16 PciSegment; /* PCI Segment number */
1362 UINT8 PciBus; /* PCI Bus number */
1363 UINT8 PciDevice; /* PCI Device number */
1364 UINT8 PciFunction; /* PCI Function number */
1366 UINT32 TimerPeriod; /* Period of one timer count (msec) */
1367 UINT32 MaxCount; /* Maximum counter value supported */
1368 UINT32 MinCount; /* Minimum counter value */
1371 UINT32 Entries; /* Number of watchdog entries that follow */
1375 /* Masks for Flags field above */
1377 #define ACPI_WDAT_ENABLED (1)
1378 #define ACPI_WDAT_STOPPED 0x80
1381 /* WDAT Instruction Entries (actions) */
1383 typedef struct acpi_wdat_entry
1388 ACPI_GENERIC_ADDRESS RegisterRegion;
1389 UINT32 Value; /* Value used with Read/Write register */
1390 UINT32 Mask; /* Bitmask required for this register instruction */
1394 /* Values for Action field above */
1396 enum AcpiWdatActions
1398 ACPI_WDAT_RESET = 1,
1399 ACPI_WDAT_GET_CURRENT_COUNTDOWN = 4,
1400 ACPI_WDAT_GET_COUNTDOWN = 5,
1401 ACPI_WDAT_SET_COUNTDOWN = 6,
1402 ACPI_WDAT_GET_RUNNING_STATE = 8,
1403 ACPI_WDAT_SET_RUNNING_STATE = 9,
1404 ACPI_WDAT_GET_STOPPED_STATE = 10,
1405 ACPI_WDAT_SET_STOPPED_STATE = 11,
1406 ACPI_WDAT_GET_REBOOT = 16,
1407 ACPI_WDAT_SET_REBOOT = 17,
1408 ACPI_WDAT_GET_SHUTDOWN = 18,
1409 ACPI_WDAT_SET_SHUTDOWN = 19,
1410 ACPI_WDAT_GET_STATUS = 32,
1411 ACPI_WDAT_SET_STATUS = 33,
1412 ACPI_WDAT_ACTION_RESERVED = 34 /* 34 and greater are reserved */
1415 /* Values for Instruction field above */
1417 enum AcpiWdatInstructions
1419 ACPI_WDAT_READ_VALUE = 0,
1420 ACPI_WDAT_READ_COUNTDOWN = 1,
1421 ACPI_WDAT_WRITE_VALUE = 2,
1422 ACPI_WDAT_WRITE_COUNTDOWN = 3,
1423 ACPI_WDAT_INSTRUCTION_RESERVED = 4, /* 4 and greater are reserved */
1424 ACPI_WDAT_PRESERVE_REGISTER = 0x80 /* Except for this value */
1428 /*******************************************************************************
1430 * WDDT - Watchdog Descriptor Table
1433 * Conforms to "Using the Intel ICH Family Watchdog Timer (WDT)",
1434 * Version 001, September 2002
1436 ******************************************************************************/
1438 typedef struct acpi_table_wddt
1440 ACPI_TABLE_HEADER Header; /* Common ACPI table header */
1442 UINT16 TableVersion;
1444 ACPI_GENERIC_ADDRESS Address;
1445 UINT16 MaxCount; /* Maximum counter value supported */
1446 UINT16 MinCount; /* Minimum counter value supported */
1453 /* Flags for Status field above */
1455 #define ACPI_WDDT_AVAILABLE (1)
1456 #define ACPI_WDDT_ACTIVE (1<<1)
1457 #define ACPI_WDDT_TCO_OS_OWNED (1<<2)
1458 #define ACPI_WDDT_USER_RESET (1<<11)
1459 #define ACPI_WDDT_WDT_RESET (1<<12)
1460 #define ACPI_WDDT_POWER_FAIL (1<<13)
1461 #define ACPI_WDDT_UNKNOWN_RESET (1<<14)
1463 /* Flags for Capability field above */
1465 #define ACPI_WDDT_AUTO_RESET (1)
1466 #define ACPI_WDDT_ALERT_SUPPORT (1<<1)
1469 /*******************************************************************************
1471 * WDRT - Watchdog Resource Table
1474 * Conforms to "Watchdog Timer Hardware Requirements for Windows Server 2003",
1475 * Version 1.01, August 28, 2006
1477 ******************************************************************************/
1479 typedef struct acpi_table_wdrt
1481 ACPI_TABLE_HEADER Header; /* Common ACPI table header */
1482 ACPI_GENERIC_ADDRESS ControlRegister;
1483 ACPI_GENERIC_ADDRESS CountRegister;
1486 UINT8 PciBus; /* PCI Bus number */
1487 UINT8 PciDevice; /* PCI Device number */
1488 UINT8 PciFunction; /* PCI Function number */
1489 UINT8 PciSegment; /* PCI Segment number */
1490 UINT16 MaxCount; /* Maximum counter value supported */
1496 /* Reset to default packing */
1500 #endif /* __ACTBL2_H__ */