1 /******************************************************************************
3 * Name: actbl2.h - ACPI Table Definitions (tables not in ACPI spec)
5 *****************************************************************************/
8 * Copyright (C) 2000 - 2013, 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_MCFG "MCFG" /* PCI Memory Mapped Configuration table */
76 #define ACPI_SIG_MCHI "MCHI" /* Management Controller Host Interface table */
77 #define ACPI_SIG_MTMR "MTMR" /* MID Timer table */
78 #define ACPI_SIG_SLIC "SLIC" /* Software Licensing Description Table */
79 #define ACPI_SIG_SPCR "SPCR" /* Serial Port Console Redirection table */
80 #define ACPI_SIG_SPMI "SPMI" /* Server Platform Management Interface table */
81 #define ACPI_SIG_TCPA "TCPA" /* Trusted Computing Platform Alliance table */
82 #define ACPI_SIG_UEFI "UEFI" /* Uefi Boot Optimization Table */
83 #define ACPI_SIG_VRTC "VRTC" /* Virtual Real Time Clock Table */
84 #define ACPI_SIG_WAET "WAET" /* Windows ACPI Emulated devices Table */
85 #define ACPI_SIG_WDAT "WDAT" /* Watchdog Action Table */
86 #define ACPI_SIG_WDDT "WDDT" /* Watchdog Timer Description Table */
87 #define ACPI_SIG_WDRT "WDRT" /* Watchdog Resource Table */
89 #ifdef ACPI_UNDEFINED_TABLES
91 * These tables have been seen in the field, but no definition has been found
93 #define ACPI_SIG_ATKG "ATKG"
94 #define ACPI_SIG_GSCI "GSCI" /* GMCH SCI table */
95 #define ACPI_SIG_IEIT "IEIT"
99 * All tables must be byte-packed to match the ACPI specification, since
100 * the tables are provided by the system BIOS.
105 * Note: C bitfields are not used for this reason:
107 * "Bitfields are great and easy to read, but unfortunately the C language
108 * does not specify the layout of bitfields in memory, which means they are
109 * essentially useless for dealing with packed data in on-disk formats or
110 * binary wire protocols." (Or ACPI tables and buffers.) "If you ask me,
111 * this decision was a design error in C. Ritchie could have picked an order
112 * and stuck with it." Norman Ramsey.
113 * See http://stackoverflow.com/a/1053662/41661
117 /*******************************************************************************
119 * ASF - Alert Standard Format table (Signature "ASF!")
122 * Conforms to the Alert Standard Format Specification V2.0, 23 April 2003
124 ******************************************************************************/
126 typedef struct acpi_table_asf
128 ACPI_TABLE_HEADER Header; /* Common ACPI table header */
133 /* ASF subtable header */
135 typedef struct acpi_asf_header
144 /* Values for Type field above */
148 ACPI_ASF_TYPE_INFO = 0,
149 ACPI_ASF_TYPE_ALERT = 1,
150 ACPI_ASF_TYPE_CONTROL = 2,
151 ACPI_ASF_TYPE_BOOT = 3,
152 ACPI_ASF_TYPE_ADDRESS = 4,
153 ACPI_ASF_TYPE_RESERVED = 5
160 /* 0: ASF Information */
162 typedef struct acpi_asf_info
164 ACPI_ASF_HEADER Header;
166 UINT8 MinPollInterval;
174 /* Masks for Flags field above */
176 #define ACPI_ASF_SMBUS_PROTOCOLS (1)
181 typedef struct acpi_asf_alert
183 ACPI_ASF_HEADER Header;
191 typedef struct acpi_asf_alert_data
206 } ACPI_ASF_ALERT_DATA;
209 /* 2: ASF Remote Control */
211 typedef struct acpi_asf_remote
213 ACPI_ASF_HEADER Header;
220 typedef struct acpi_asf_control_data
227 } ACPI_ASF_CONTROL_DATA;
230 /* 3: ASF RMCP Boot Options */
232 typedef struct acpi_asf_rmcp
234 ACPI_ASF_HEADER Header;
235 UINT8 Capabilities[7];
236 UINT8 CompletionCode;
241 UINT16 OemParameters;
248 typedef struct acpi_asf_address
250 ACPI_ASF_HEADER Header;
257 /*******************************************************************************
259 * BOOT - Simple Boot Flag Table
262 * Conforms to the "Simple Boot Flag Specification", Version 2.1
264 ******************************************************************************/
266 typedef struct acpi_table_boot
268 ACPI_TABLE_HEADER Header; /* Common ACPI table header */
269 UINT8 CmosIndex; /* Index in CMOS RAM for the boot register */
275 /*******************************************************************************
277 * CSRT - Core System Resource Table
280 * Conforms to the "Core System Resource Table (CSRT)", November 14, 2011
282 ******************************************************************************/
284 typedef struct acpi_table_csrt
286 ACPI_TABLE_HEADER Header; /* Common ACPI table header */
291 /* Resource Group subtable */
293 typedef struct acpi_csrt_group
302 UINT32 SharedInfoLength;
304 /* Shared data immediately follows (Length = SharedInfoLength) */
308 /* Shared Info subtable */
310 typedef struct acpi_csrt_shared_info
317 UINT8 InterruptPolarity;
320 UINT8 DmaAddressWidth;
321 UINT16 BaseRequestLine;
322 UINT16 NumHandshakeSignals;
325 /* Resource descriptors immediately follow (Length = Group Length - SharedInfoLength) */
327 } ACPI_CSRT_SHARED_INFO;
329 /* Resource Descriptor subtable */
331 typedef struct acpi_csrt_descriptor
338 /* Resource-specific information immediately follows */
340 } ACPI_CSRT_DESCRIPTOR;
345 #define ACPI_CSRT_TYPE_INTERRUPT 0x0001
346 #define ACPI_CSRT_TYPE_TIMER 0x0002
347 #define ACPI_CSRT_TYPE_DMA 0x0003
349 /* Resource Subtypes */
351 #define ACPI_CSRT_XRUPT_LINE 0x0000
352 #define ACPI_CSRT_XRUPT_CONTROLLER 0x0001
353 #define ACPI_CSRT_TIMER 0x0000
354 #define ACPI_CSRT_DMA_CHANNEL 0x0000
355 #define ACPI_CSRT_DMA_CONTROLLER 0x0001
358 /*******************************************************************************
360 * DBG2 - Debug Port Table 2
361 * Version 0 (Both main table and subtables)
363 * Conforms to "Microsoft Debug Port Table 2 (DBG2)", May 22 2012.
365 ******************************************************************************/
367 typedef struct acpi_table_dbg2
369 ACPI_TABLE_HEADER Header; /* Common ACPI table header */
376 typedef struct acpi_dbg2_header
384 /* Debug Device Information Subtable */
386 typedef struct acpi_dbg2_device
390 UINT8 RegisterCount; /* Number of BaseAddress registers */
391 UINT16 NamepathLength;
392 UINT16 NamepathOffset;
393 UINT16 OemDataLength;
394 UINT16 OemDataOffset;
398 UINT16 BaseAddressOffset;
399 UINT16 AddressSizeOffset;
402 * BaseAddress (required) - Each in 12-byte Generic Address Structure format.
403 * AddressSize (required) - Array of UINT32 sizes corresponding to each BaseAddress register.
404 * Namepath (required) - Null terminated string. Single dot if not supported.
405 * OemData (optional) - Length is OemDataLength.
409 /* Types for PortType field above */
411 #define ACPI_DBG2_SERIAL_PORT 0x8000
412 #define ACPI_DBG2_1394_PORT 0x8001
413 #define ACPI_DBG2_USB_PORT 0x8002
414 #define ACPI_DBG2_NET_PORT 0x8003
416 /* Subtypes for PortSubtype field above */
418 #define ACPI_DBG2_16550_COMPATIBLE 0x0000
419 #define ACPI_DBG2_16550_SUBSET 0x0001
421 #define ACPI_DBG2_1394_STANDARD 0x0000
423 #define ACPI_DBG2_USB_XHCI 0x0000
424 #define ACPI_DBG2_USB_EHCI 0x0001
427 /*******************************************************************************
429 * DBGP - Debug Port table
432 * Conforms to the "Debug Port Specification", Version 1.00, 2/9/2000
434 ******************************************************************************/
436 typedef struct acpi_table_dbgp
438 ACPI_TABLE_HEADER Header; /* Common ACPI table header */
439 UINT8 Type; /* 0=full 16550, 1=subset of 16550 */
441 ACPI_GENERIC_ADDRESS DebugPort;
446 /*******************************************************************************
448 * DMAR - DMA Remapping table
451 * Conforms to "Intel Virtualization Technology for Directed I/O",
452 * Version 1.2, Sept. 2008
454 ******************************************************************************/
456 typedef struct acpi_table_dmar
458 ACPI_TABLE_HEADER Header; /* Common ACPI table header */
459 UINT8 Width; /* Host Address Width */
465 /* Masks for Flags field above */
467 #define ACPI_DMAR_INTR_REMAP (1)
470 /* DMAR subtable header */
472 typedef struct acpi_dmar_header
479 /* Values for subtable type in ACPI_DMAR_HEADER */
483 ACPI_DMAR_TYPE_HARDWARE_UNIT = 0,
484 ACPI_DMAR_TYPE_RESERVED_MEMORY = 1,
485 ACPI_DMAR_TYPE_ATSR = 2,
486 ACPI_DMAR_HARDWARE_AFFINITY = 3,
487 ACPI_DMAR_TYPE_RESERVED = 4 /* 4 and greater are reserved */
491 /* DMAR Device Scope structure */
493 typedef struct acpi_dmar_device_scope
501 } ACPI_DMAR_DEVICE_SCOPE;
503 /* Values for EntryType in ACPI_DMAR_DEVICE_SCOPE */
505 enum AcpiDmarScopeType
507 ACPI_DMAR_SCOPE_TYPE_NOT_USED = 0,
508 ACPI_DMAR_SCOPE_TYPE_ENDPOINT = 1,
509 ACPI_DMAR_SCOPE_TYPE_BRIDGE = 2,
510 ACPI_DMAR_SCOPE_TYPE_IOAPIC = 3,
511 ACPI_DMAR_SCOPE_TYPE_HPET = 4,
512 ACPI_DMAR_SCOPE_TYPE_RESERVED = 5 /* 5 and greater are reserved */
515 typedef struct acpi_dmar_pci_path
520 } ACPI_DMAR_PCI_PATH;
524 * DMAR Sub-tables, correspond to Type in ACPI_DMAR_HEADER
527 /* 0: Hardware Unit Definition */
529 typedef struct acpi_dmar_hardware_unit
531 ACPI_DMAR_HEADER Header;
535 UINT64 Address; /* Register Base Address */
537 } ACPI_DMAR_HARDWARE_UNIT;
539 /* Masks for Flags field above */
541 #define ACPI_DMAR_INCLUDE_ALL (1)
544 /* 1: Reserved Memory Defininition */
546 typedef struct acpi_dmar_reserved_memory
548 ACPI_DMAR_HEADER Header;
551 UINT64 BaseAddress; /* 4K aligned base address */
552 UINT64 EndAddress; /* 4K aligned limit address */
554 } ACPI_DMAR_RESERVED_MEMORY;
556 /* Masks for Flags field above */
558 #define ACPI_DMAR_ALLOW_ALL (1)
561 /* 2: Root Port ATS Capability Reporting Structure */
563 typedef struct acpi_dmar_atsr
565 ACPI_DMAR_HEADER Header;
572 /* Masks for Flags field above */
574 #define ACPI_DMAR_ALL_PORTS (1)
577 /* 3: Remapping Hardware Static Affinity Structure */
579 typedef struct acpi_dmar_rhsa
581 ACPI_DMAR_HEADER Header;
584 UINT32 ProximityDomain;
589 /*******************************************************************************
591 * HPET - High Precision Event Timer table
594 * Conforms to "IA-PC HPET (High Precision Event Timers) Specification",
595 * Version 1.0a, October 2004
597 ******************************************************************************/
599 typedef struct acpi_table_hpet
601 ACPI_TABLE_HEADER Header; /* Common ACPI table header */
602 UINT32 Id; /* Hardware ID of event timer block */
603 ACPI_GENERIC_ADDRESS Address; /* Address of event timer block */
604 UINT8 Sequence; /* HPET sequence number */
605 UINT16 MinimumTick; /* Main counter min tick, periodic mode */
610 /* Masks for Flags field above */
612 #define ACPI_HPET_PAGE_PROTECT_MASK (3)
614 /* Values for Page Protect flags */
616 enum AcpiHpetPageProtect
618 ACPI_HPET_NO_PAGE_PROTECT = 0,
619 ACPI_HPET_PAGE_PROTECT4 = 1,
620 ACPI_HPET_PAGE_PROTECT64 = 2
624 /*******************************************************************************
626 * IBFT - Boot Firmware Table
629 * Conforms to "iSCSI Boot Firmware Table (iBFT) as Defined in ACPI 3.0b
630 * Specification", Version 1.01, March 1, 2007
632 * Note: It appears that this table is not intended to appear in the RSDT/XSDT.
633 * Therefore, it is not currently supported by the disassembler.
635 ******************************************************************************/
637 typedef struct acpi_table_ibft
639 ACPI_TABLE_HEADER Header; /* Common ACPI table header */
645 /* IBFT common subtable header */
647 typedef struct acpi_ibft_header
657 /* Values for Type field above */
661 ACPI_IBFT_TYPE_NOT_USED = 0,
662 ACPI_IBFT_TYPE_CONTROL = 1,
663 ACPI_IBFT_TYPE_INITIATOR = 2,
664 ACPI_IBFT_TYPE_NIC = 3,
665 ACPI_IBFT_TYPE_TARGET = 4,
666 ACPI_IBFT_TYPE_EXTENSIONS = 5,
667 ACPI_IBFT_TYPE_RESERVED = 6 /* 6 and greater are reserved */
673 typedef struct acpi_ibft_control
675 ACPI_IBFT_HEADER Header;
677 UINT16 InitiatorOffset;
679 UINT16 Target0Offset;
681 UINT16 Target1Offset;
685 typedef struct acpi_ibft_initiator
687 ACPI_IBFT_HEADER Header;
690 UINT8 PrimaryServer[16];
691 UINT8 SecondaryServer[16];
695 } ACPI_IBFT_INITIATOR;
697 typedef struct acpi_ibft_nic
699 ACPI_IBFT_HEADER Header;
701 UINT8 SubnetMaskPrefix;
704 UINT8 PrimaryDns[16];
705 UINT8 SecondaryDns[16];
715 typedef struct acpi_ibft_target
717 ACPI_IBFT_HEADER Header;
718 UINT8 TargetIpAddress[16];
719 UINT16 TargetIpSocket;
720 UINT8 TargetBootLun[8];
722 UINT8 NicAssociation;
723 UINT16 TargetNameLength;
724 UINT16 TargetNameOffset;
725 UINT16 ChapNameLength;
726 UINT16 ChapNameOffset;
727 UINT16 ChapSecretLength;
728 UINT16 ChapSecretOffset;
729 UINT16 ReverseChapNameLength;
730 UINT16 ReverseChapNameOffset;
731 UINT16 ReverseChapSecretLength;
732 UINT16 ReverseChapSecretOffset;
737 /*******************************************************************************
739 * IVRS - I/O Virtualization Reporting Structure
742 * Conforms to "AMD I/O Virtualization Technology (IOMMU) Specification",
743 * Revision 1.26, February 2009.
745 ******************************************************************************/
747 typedef struct acpi_table_ivrs
749 ACPI_TABLE_HEADER Header; /* Common ACPI table header */
750 UINT32 Info; /* Common virtualization info */
755 /* Values for Info field above */
757 #define ACPI_IVRS_PHYSICAL_SIZE 0x00007F00 /* 7 bits, physical address size */
758 #define ACPI_IVRS_VIRTUAL_SIZE 0x003F8000 /* 7 bits, virtual address size */
759 #define ACPI_IVRS_ATS_RESERVED 0x00400000 /* ATS address translation range reserved */
762 /* IVRS subtable header */
764 typedef struct acpi_ivrs_header
766 UINT8 Type; /* Subtable type */
768 UINT16 Length; /* Subtable length */
769 UINT16 DeviceId; /* ID of IOMMU */
773 /* Values for subtable Type above */
777 ACPI_IVRS_TYPE_HARDWARE = 0x10,
778 ACPI_IVRS_TYPE_MEMORY1 = 0x20,
779 ACPI_IVRS_TYPE_MEMORY2 = 0x21,
780 ACPI_IVRS_TYPE_MEMORY3 = 0x22
783 /* Masks for Flags field above for IVHD subtable */
785 #define ACPI_IVHD_TT_ENABLE (1)
786 #define ACPI_IVHD_PASS_PW (1<<1)
787 #define ACPI_IVHD_RES_PASS_PW (1<<2)
788 #define ACPI_IVHD_ISOC (1<<3)
789 #define ACPI_IVHD_IOTLB (1<<4)
791 /* Masks for Flags field above for IVMD subtable */
793 #define ACPI_IVMD_UNITY (1)
794 #define ACPI_IVMD_READ (1<<1)
795 #define ACPI_IVMD_WRITE (1<<2)
796 #define ACPI_IVMD_EXCLUSION_RANGE (1<<3)
800 * IVRS subtables, correspond to Type in ACPI_IVRS_HEADER
803 /* 0x10: I/O Virtualization Hardware Definition Block (IVHD) */
805 typedef struct acpi_ivrs_hardware
807 ACPI_IVRS_HEADER Header;
808 UINT16 CapabilityOffset; /* Offset for IOMMU control fields */
809 UINT64 BaseAddress; /* IOMMU control registers */
810 UINT16 PciSegmentGroup;
811 UINT16 Info; /* MSI number and unit ID */
814 } ACPI_IVRS_HARDWARE;
816 /* Masks for Info field above */
818 #define ACPI_IVHD_MSI_NUMBER_MASK 0x001F /* 5 bits, MSI message number */
819 #define ACPI_IVHD_UNIT_ID_MASK 0x1F00 /* 5 bits, UnitID */
823 * Device Entries for IVHD subtable, appear after ACPI_IVRS_HARDWARE structure.
824 * Upper two bits of the Type field are the (encoded) length of the structure.
825 * Currently, only 4 and 8 byte entries are defined. 16 and 32 byte entries
826 * are reserved for future use but not defined.
828 typedef struct acpi_ivrs_de_header
834 } ACPI_IVRS_DE_HEADER;
836 /* Length of device entry is in the top two bits of Type field above */
838 #define ACPI_IVHD_ENTRY_LENGTH 0xC0
840 /* Values for device entry Type field above */
842 enum AcpiIvrsDeviceEntryType
844 /* 4-byte device entries, all use ACPI_IVRS_DEVICE4 */
846 ACPI_IVRS_TYPE_PAD4 = 0,
847 ACPI_IVRS_TYPE_ALL = 1,
848 ACPI_IVRS_TYPE_SELECT = 2,
849 ACPI_IVRS_TYPE_START = 3,
850 ACPI_IVRS_TYPE_END = 4,
852 /* 8-byte device entries */
854 ACPI_IVRS_TYPE_PAD8 = 64,
855 ACPI_IVRS_TYPE_NOT_USED = 65,
856 ACPI_IVRS_TYPE_ALIAS_SELECT = 66, /* Uses ACPI_IVRS_DEVICE8A */
857 ACPI_IVRS_TYPE_ALIAS_START = 67, /* Uses ACPI_IVRS_DEVICE8A */
858 ACPI_IVRS_TYPE_EXT_SELECT = 70, /* Uses ACPI_IVRS_DEVICE8B */
859 ACPI_IVRS_TYPE_EXT_START = 71, /* Uses ACPI_IVRS_DEVICE8B */
860 ACPI_IVRS_TYPE_SPECIAL = 72 /* Uses ACPI_IVRS_DEVICE8C */
863 /* Values for Data field above */
865 #define ACPI_IVHD_INIT_PASS (1)
866 #define ACPI_IVHD_EINT_PASS (1<<1)
867 #define ACPI_IVHD_NMI_PASS (1<<2)
868 #define ACPI_IVHD_SYSTEM_MGMT (3<<4)
869 #define ACPI_IVHD_LINT0_PASS (1<<6)
870 #define ACPI_IVHD_LINT1_PASS (1<<7)
873 /* Types 0-4: 4-byte device entry */
875 typedef struct acpi_ivrs_device4
877 ACPI_IVRS_DE_HEADER Header;
881 /* Types 66-67: 8-byte device entry */
883 typedef struct acpi_ivrs_device8a
885 ACPI_IVRS_DE_HEADER Header;
890 } ACPI_IVRS_DEVICE8A;
892 /* Types 70-71: 8-byte device entry */
894 typedef struct acpi_ivrs_device8b
896 ACPI_IVRS_DE_HEADER Header;
899 } ACPI_IVRS_DEVICE8B;
901 /* Values for ExtendedData above */
903 #define ACPI_IVHD_ATS_DISABLED (1<<31)
905 /* Type 72: 8-byte device entry */
907 typedef struct acpi_ivrs_device8c
909 ACPI_IVRS_DE_HEADER Header;
914 } ACPI_IVRS_DEVICE8C;
916 /* Values for Variety field above */
918 #define ACPI_IVHD_IOAPIC 1
919 #define ACPI_IVHD_HPET 2
922 /* 0x20, 0x21, 0x22: I/O Virtualization Memory Definition Block (IVMD) */
924 typedef struct acpi_ivrs_memory
926 ACPI_IVRS_HEADER Header;
935 /*******************************************************************************
937 * MCFG - PCI Memory Mapped Configuration table and sub-table
940 * Conforms to "PCI Firmware Specification", Revision 3.0, June 20, 2005
942 ******************************************************************************/
944 typedef struct acpi_table_mcfg
946 ACPI_TABLE_HEADER Header; /* Common ACPI table header */
954 typedef struct acpi_mcfg_allocation
956 UINT64 Address; /* Base address, processor-relative */
957 UINT16 PciSegment; /* PCI segment group number */
958 UINT8 StartBusNumber; /* Starting PCI Bus number */
959 UINT8 EndBusNumber; /* Final PCI Bus number */
962 } ACPI_MCFG_ALLOCATION;
965 /*******************************************************************************
967 * MCHI - Management Controller Host Interface Table
970 * Conforms to "Management Component Transport Protocol (MCTP) Host
971 * Interface Specification", Revision 1.0.0a, October 13, 2009
973 ******************************************************************************/
975 typedef struct acpi_table_mchi
977 ACPI_TABLE_HEADER Header; /* Common ACPI table header */
984 UINT32 GlobalInterrupt;
985 ACPI_GENERIC_ADDRESS ControlRegister;
994 /*******************************************************************************
996 * MTMR - MID Timer Table
999 * Conforms to "Simple Firmware Interface Specification",
1000 * Draft 0.8.2, Oct 19, 2010
1001 * NOTE: The ACPI MTMR is equivalent to the SFI MTMR table.
1003 ******************************************************************************/
1005 typedef struct acpi_table_mtmr
1007 ACPI_TABLE_HEADER Header; /* Common ACPI table header */
1013 typedef struct acpi_mtmr_entry
1015 ACPI_GENERIC_ADDRESS PhysicalAddress;
1022 /*******************************************************************************
1024 * SLIC - Software Licensing Description Table
1027 * Conforms to "OEM Activation 2.0 for Windows Vista Operating Systems",
1030 ******************************************************************************/
1032 /* Basic SLIC table is only the common ACPI header */
1034 typedef struct acpi_table_slic
1036 ACPI_TABLE_HEADER Header; /* Common ACPI table header */
1041 /* Common SLIC subtable header */
1043 typedef struct acpi_slic_header
1050 /* Values for Type field above */
1054 ACPI_SLIC_TYPE_PUBLIC_KEY = 0,
1055 ACPI_SLIC_TYPE_WINDOWS_MARKER = 1,
1056 ACPI_SLIC_TYPE_RESERVED = 2 /* 2 and greater are reserved */
1061 * SLIC Sub-tables, correspond to Type in ACPI_SLIC_HEADER
1064 /* 0: Public Key Structure */
1066 typedef struct acpi_slic_key
1068 ACPI_SLIC_HEADER Header;
1081 /* 1: Windows Marker Structure */
1083 typedef struct acpi_slic_marker
1085 ACPI_SLIC_HEADER Header;
1087 char OemId[ACPI_OEM_ID_SIZE]; /* ASCII OEM identification */
1088 char OemTableId[ACPI_OEM_TABLE_ID_SIZE]; /* ASCII OEM table identification */
1089 char WindowsFlag[8];
1092 UINT8 Signature[128];
1097 /*******************************************************************************
1099 * SPCR - Serial Port Console Redirection table
1102 * Conforms to "Serial Port Console Redirection Table",
1103 * Version 1.00, January 11, 2002
1105 ******************************************************************************/
1107 typedef struct acpi_table_spcr
1109 ACPI_TABLE_HEADER Header; /* Common ACPI table header */
1110 UINT8 InterfaceType; /* 0=full 16550, 1=subset of 16550 */
1112 ACPI_GENERIC_ADDRESS SerialPort;
1113 UINT8 InterruptType;
1133 /* Masks for PciFlags field above */
1135 #define ACPI_SPCR_DO_NOT_DISABLE (1)
1138 /*******************************************************************************
1140 * SPMI - Server Platform Management Interface table
1143 * Conforms to "Intelligent Platform Management Interface Specification
1144 * Second Generation v2.0", Document Revision 1.0, February 12, 2004 with
1145 * June 12, 2009 markup.
1147 ******************************************************************************/
1149 typedef struct acpi_table_spmi
1151 ACPI_TABLE_HEADER Header; /* Common ACPI table header */
1152 UINT8 InterfaceType;
1153 UINT8 Reserved; /* Must be 1 */
1154 UINT16 SpecRevision; /* Version of IPMI */
1155 UINT8 InterruptType;
1156 UINT8 GpeNumber; /* GPE assigned */
1158 UINT8 PciDeviceFlag;
1160 ACPI_GENERIC_ADDRESS IpmiRegister;
1169 /* Values for InterfaceType above */
1171 enum AcpiSpmiInterfaceTypes
1173 ACPI_SPMI_NOT_USED = 0,
1174 ACPI_SPMI_KEYBOARD = 1,
1176 ACPI_SPMI_BLOCK_TRANSFER = 3,
1177 ACPI_SPMI_SMBUS = 4,
1178 ACPI_SPMI_RESERVED = 5 /* 5 and above are reserved */
1182 /*******************************************************************************
1184 * TCPA - Trusted Computing Platform Alliance table
1187 * Conforms to "TCG PC Specific Implementation Specification",
1188 * Version 1.1, August 18, 2003
1190 ******************************************************************************/
1192 typedef struct acpi_table_tcpa
1194 ACPI_TABLE_HEADER Header; /* Common ACPI table header */
1196 UINT32 MaxLogLength; /* Maximum length for the event log area */
1197 UINT64 LogAddress; /* Address of the event log area */
1202 /*******************************************************************************
1204 * UEFI - UEFI Boot optimization Table
1207 * Conforms to "Unified Extensible Firmware Interface Specification",
1208 * Version 2.3, May 8, 2009
1210 ******************************************************************************/
1212 typedef struct acpi_table_uefi
1214 ACPI_TABLE_HEADER Header; /* Common ACPI table header */
1215 UINT8 Identifier[16]; /* UUID identifier */
1216 UINT16 DataOffset; /* Offset of remaining data in table */
1221 /*******************************************************************************
1223 * VRTC - Virtual Real Time Clock Table
1226 * Conforms to "Simple Firmware Interface Specification",
1227 * Draft 0.8.2, Oct 19, 2010
1228 * NOTE: The ACPI VRTC is equivalent to The SFI MRTC table.
1230 ******************************************************************************/
1232 typedef struct acpi_table_vrtc
1234 ACPI_TABLE_HEADER Header; /* Common ACPI table header */
1240 typedef struct acpi_vrtc_entry
1242 ACPI_GENERIC_ADDRESS PhysicalAddress;
1248 /*******************************************************************************
1250 * WAET - Windows ACPI Emulated devices Table
1253 * Conforms to "Windows ACPI Emulated Devices Table", version 1.0, April 6, 2009
1255 ******************************************************************************/
1257 typedef struct acpi_table_waet
1259 ACPI_TABLE_HEADER Header; /* Common ACPI table header */
1264 /* Masks for Flags field above */
1266 #define ACPI_WAET_RTC_NO_ACK (1) /* RTC requires no int acknowledge */
1267 #define ACPI_WAET_TIMER_ONE_READ (1<<1) /* PM timer requires only one read */
1270 /*******************************************************************************
1272 * WDAT - Watchdog Action Table
1275 * Conforms to "Hardware Watchdog Timers Design Specification",
1276 * Copyright 2006 Microsoft Corporation.
1278 ******************************************************************************/
1280 typedef struct acpi_table_wdat
1282 ACPI_TABLE_HEADER Header; /* Common ACPI table header */
1283 UINT32 HeaderLength; /* Watchdog Header Length */
1284 UINT16 PciSegment; /* PCI Segment number */
1285 UINT8 PciBus; /* PCI Bus number */
1286 UINT8 PciDevice; /* PCI Device number */
1287 UINT8 PciFunction; /* PCI Function number */
1289 UINT32 TimerPeriod; /* Period of one timer count (msec) */
1290 UINT32 MaxCount; /* Maximum counter value supported */
1291 UINT32 MinCount; /* Minimum counter value */
1294 UINT32 Entries; /* Number of watchdog entries that follow */
1298 /* Masks for Flags field above */
1300 #define ACPI_WDAT_ENABLED (1)
1301 #define ACPI_WDAT_STOPPED 0x80
1304 /* WDAT Instruction Entries (actions) */
1306 typedef struct acpi_wdat_entry
1311 ACPI_GENERIC_ADDRESS RegisterRegion;
1312 UINT32 Value; /* Value used with Read/Write register */
1313 UINT32 Mask; /* Bitmask required for this register instruction */
1317 /* Values for Action field above */
1319 enum AcpiWdatActions
1321 ACPI_WDAT_RESET = 1,
1322 ACPI_WDAT_GET_CURRENT_COUNTDOWN = 4,
1323 ACPI_WDAT_GET_COUNTDOWN = 5,
1324 ACPI_WDAT_SET_COUNTDOWN = 6,
1325 ACPI_WDAT_GET_RUNNING_STATE = 8,
1326 ACPI_WDAT_SET_RUNNING_STATE = 9,
1327 ACPI_WDAT_GET_STOPPED_STATE = 10,
1328 ACPI_WDAT_SET_STOPPED_STATE = 11,
1329 ACPI_WDAT_GET_REBOOT = 16,
1330 ACPI_WDAT_SET_REBOOT = 17,
1331 ACPI_WDAT_GET_SHUTDOWN = 18,
1332 ACPI_WDAT_SET_SHUTDOWN = 19,
1333 ACPI_WDAT_GET_STATUS = 32,
1334 ACPI_WDAT_SET_STATUS = 33,
1335 ACPI_WDAT_ACTION_RESERVED = 34 /* 34 and greater are reserved */
1338 /* Values for Instruction field above */
1340 enum AcpiWdatInstructions
1342 ACPI_WDAT_READ_VALUE = 0,
1343 ACPI_WDAT_READ_COUNTDOWN = 1,
1344 ACPI_WDAT_WRITE_VALUE = 2,
1345 ACPI_WDAT_WRITE_COUNTDOWN = 3,
1346 ACPI_WDAT_INSTRUCTION_RESERVED = 4, /* 4 and greater are reserved */
1347 ACPI_WDAT_PRESERVE_REGISTER = 0x80 /* Except for this value */
1351 /*******************************************************************************
1353 * WDDT - Watchdog Descriptor Table
1356 * Conforms to "Using the Intel ICH Family Watchdog Timer (WDT)",
1357 * Version 001, September 2002
1359 ******************************************************************************/
1361 typedef struct acpi_table_wddt
1363 ACPI_TABLE_HEADER Header; /* Common ACPI table header */
1365 UINT16 TableVersion;
1367 ACPI_GENERIC_ADDRESS Address;
1368 UINT16 MaxCount; /* Maximum counter value supported */
1369 UINT16 MinCount; /* Minimum counter value supported */
1376 /* Flags for Status field above */
1378 #define ACPI_WDDT_AVAILABLE (1)
1379 #define ACPI_WDDT_ACTIVE (1<<1)
1380 #define ACPI_WDDT_TCO_OS_OWNED (1<<2)
1381 #define ACPI_WDDT_USER_RESET (1<<11)
1382 #define ACPI_WDDT_WDT_RESET (1<<12)
1383 #define ACPI_WDDT_POWER_FAIL (1<<13)
1384 #define ACPI_WDDT_UNKNOWN_RESET (1<<14)
1386 /* Flags for Capability field above */
1388 #define ACPI_WDDT_AUTO_RESET (1)
1389 #define ACPI_WDDT_ALERT_SUPPORT (1<<1)
1392 /*******************************************************************************
1394 * WDRT - Watchdog Resource Table
1397 * Conforms to "Watchdog Timer Hardware Requirements for Windows Server 2003",
1398 * Version 1.01, August 28, 2006
1400 ******************************************************************************/
1402 typedef struct acpi_table_wdrt
1404 ACPI_TABLE_HEADER Header; /* Common ACPI table header */
1405 ACPI_GENERIC_ADDRESS ControlRegister;
1406 ACPI_GENERIC_ADDRESS CountRegister;
1409 UINT8 PciBus; /* PCI Bus number */
1410 UINT8 PciDevice; /* PCI Device number */
1411 UINT8 PciFunction; /* PCI Function number */
1412 UINT8 PciSegment; /* PCI Segment number */
1413 UINT16 MaxCount; /* Maximum counter value supported */
1419 /* Reset to default packing */
1423 #endif /* __ACTBL2_H__ */