1 /******************************************************************************
3 * Name: actbl2.h - ACPI Specification Revision 2.0 Tables
5 *****************************************************************************/
7 /******************************************************************************
11 * Some or all of this work - Copyright (c) 1999 - 2010, Intel Corp.
12 * All rights reserved.
16 * 2.1. This is your license from Intel Corp. under its intellectual property
17 * rights. You may have additional license terms from the party that provided
18 * you this software, covering your right to use that party's intellectual
21 * 2.2. Intel grants, free of charge, to any person ("Licensee") obtaining a
22 * copy of the source code appearing in this file ("Covered Code") an
23 * irrevocable, perpetual, worldwide license under Intel's copyrights in the
24 * base code distributed originally by Intel ("Original Intel Code") to copy,
25 * make derivatives, distribute, use and display any portion of the Covered
26 * Code in any form, with the right to sublicense such rights; and
28 * 2.3. Intel grants Licensee a non-exclusive and non-transferable patent
29 * license (with the right to sublicense), under only those claims of Intel
30 * patents that are infringed by the Original Intel Code, to make, use, sell,
31 * offer to sell, and import the Covered Code and derivative works thereof
32 * solely to the minimum extent necessary to exercise the above copyright
33 * license, and in no event shall the patent license extend to any additions
34 * to or modifications of the Original Intel Code. No other license or right
35 * is granted directly or by implication, estoppel or otherwise;
37 * The above copyright and patent license is granted only if the following
42 * 3.1. Redistribution of Source with Rights to Further Distribute Source.
43 * Redistribution of source code of any substantial portion of the Covered
44 * Code or modification with rights to further distribute source must include
45 * the above Copyright Notice, the above License, this list of Conditions,
46 * and the following Disclaimer and Export Compliance provision. In addition,
47 * Licensee must cause all Covered Code to which Licensee contributes to
48 * contain a file documenting the changes Licensee made to create that Covered
49 * Code and the date of any change. Licensee must include in that file the
50 * documentation of any changes made by any predecessor Licensee. Licensee
51 * must include a prominent statement that the modification is derived,
52 * directly or indirectly, from Original Intel Code.
54 * 3.2. Redistribution of Source with no Rights to Further Distribute Source.
55 * Redistribution of source code of any substantial portion of the Covered
56 * Code or modification without rights to further distribute source must
57 * include the following Disclaimer and Export Compliance provision in the
58 * documentation and/or other materials provided with distribution. In
59 * addition, Licensee may not authorize further sublicense of source of any
60 * portion of the Covered Code, and must include terms to the effect that the
61 * license from Licensee to its licensee is limited to the intellectual
62 * property embodied in the software Licensee provides to its licensee, and
63 * not to intellectual property embodied in modifications its licensee may
66 * 3.3. Redistribution of Executable. Redistribution in executable form of any
67 * substantial portion of the Covered Code or modification must reproduce the
68 * above Copyright Notice, and the following Disclaimer and Export Compliance
69 * provision in the documentation and/or other materials provided with the
72 * 3.4. Intel retains all right, title, and interest in and to the Original
75 * 3.5. Neither the name Intel nor any other trademark owned or controlled by
76 * Intel shall be used in advertising or otherwise to promote the sale, use or
77 * other dealings in products derived from or relating to the Covered Code
78 * without prior written authorization from Intel.
80 * 4. Disclaimer and Export Compliance
82 * 4.1. INTEL MAKES NO WARRANTY OF ANY KIND REGARDING ANY SOFTWARE PROVIDED
83 * HERE. ANY SOFTWARE ORIGINATING FROM INTEL OR DERIVED FROM INTEL SOFTWARE
84 * IS PROVIDED "AS IS," AND INTEL WILL NOT PROVIDE ANY SUPPORT, ASSISTANCE,
85 * INSTALLATION, TRAINING OR OTHER SERVICES. INTEL WILL NOT PROVIDE ANY
86 * UPDATES, ENHANCEMENTS OR EXTENSIONS. INTEL SPECIFICALLY DISCLAIMS ANY
87 * IMPLIED WARRANTIES OF MERCHANTABILITY, NONINFRINGEMENT AND FITNESS FOR A
90 * 4.2. IN NO EVENT SHALL INTEL HAVE ANY LIABILITY TO LICENSEE, ITS LICENSEES
91 * OR ANY OTHER THIRD PARTY, FOR ANY LOST PROFITS, LOST DATA, LOSS OF USE OR
92 * COSTS OF PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES, OR FOR ANY INDIRECT,
93 * SPECIAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THIS AGREEMENT, UNDER ANY
94 * CAUSE OF ACTION OR THEORY OF LIABILITY, AND IRRESPECTIVE OF WHETHER INTEL
95 * HAS ADVANCE NOTICE OF THE POSSIBILITY OF SUCH DAMAGES. THESE LIMITATIONS
96 * SHALL APPLY NOTWITHSTANDING THE FAILURE OF THE ESSENTIAL PURPOSE OF ANY
99 * 4.3. Licensee shall not export, either directly or indirectly, any of this
100 * software or system incorporating such software without first obtaining any
101 * required license or other approval from the U. S. Department of Commerce or
102 * any other agency or department of the United States Government. In the
103 * event Licensee exports any such software from the United States or
104 * re-exports any such software from a foreign destination, Licensee shall
105 * ensure that the distribution and export/re-export of the software is in
106 * compliance with all laws, regulations, orders, or other restrictions of the
107 * U.S. Export Administration Regulations. Licensee agrees that neither it nor
108 * any of its subsidiaries will export/re-export any technical data, process,
109 * software, or service, directly or indirectly, to any country for which the
110 * United States government or any agency thereof requires an export license,
111 * other governmental approval, or letter of assurance, without first obtaining
112 * such license, approval or letter.
114 *****************************************************************************/
120 /*******************************************************************************
122 * Additional ACPI Tables (2)
124 * These tables are not consumed directly by the ACPICA subsystem, but are
125 * included here to support device drivers and the AML disassembler.
127 * The tables in this file are defined by third-party specifications, and are
128 * not defined directly by the ACPI specification itself.
130 ******************************************************************************/
134 * Values for description table header signatures for tables defined in this
135 * file. Useful because they make it more difficult to inadvertently type in
136 * the wrong signature.
138 #define ACPI_SIG_ASF "ASF!" /* Alert Standard Format table */
139 #define ACPI_SIG_BOOT "BOOT" /* Simple Boot Flag Table */
140 #define ACPI_SIG_DBGP "DBGP" /* Debug Port table */
141 #define ACPI_SIG_DMAR "DMAR" /* DMA Remapping table */
142 #define ACPI_SIG_HPET "HPET" /* High Precision Event Timer table */
143 #define ACPI_SIG_IBFT "IBFT" /* iSCSI Boot Firmware Table */
144 #define ACPI_SIG_IVRS "IVRS" /* I/O Virtualization Reporting Structure */
145 #define ACPI_SIG_MCFG "MCFG" /* PCI Memory Mapped Configuration table */
146 #define ACPI_SIG_MCHI "MCHI" /* Management Controller Host Interface table */
147 #define ACPI_SIG_SLIC "SLIC" /* Software Licensing Description Table */
148 #define ACPI_SIG_SPCR "SPCR" /* Serial Port Console Redirection table */
149 #define ACPI_SIG_SPMI "SPMI" /* Server Platform Management Interface table */
150 #define ACPI_SIG_TCPA "TCPA" /* Trusted Computing Platform Alliance table */
151 #define ACPI_SIG_UEFI "UEFI" /* Uefi Boot Optimization Table */
152 #define ACPI_SIG_WAET "WAET" /* Windows ACPI Emulated devices Table */
153 #define ACPI_SIG_WDAT "WDAT" /* Watchdog Action Table */
154 #define ACPI_SIG_WDDT "WDDT" /* Watchdog Timer Description Table */
155 #define ACPI_SIG_WDRT "WDRT" /* Watchdog Resource Table */
157 #ifdef ACPI_UNDEFINED_TABLES
159 * These tables have been seen in the field, but no definition has been found
161 #define ACPI_SIG_ATKG "ATKG"
162 #define ACPI_SIG_GSCI "GSCI" /* GMCH SCI table */
163 #define ACPI_SIG_IEIT "IEIT"
167 * All tables must be byte-packed to match the ACPI specification, since
168 * the tables are provided by the system BIOS.
173 * Note about bitfields: The UINT8 type is used for bitfields in ACPI tables.
174 * This is the only type that is even remotely portable. Anything else is not
175 * portable, so do not use any other bitfield types.
179 /*******************************************************************************
181 * ASF - Alert Standard Format table (Signature "ASF!")
184 * Conforms to the Alert Standard Format Specification V2.0, 23 April 2003
186 ******************************************************************************/
188 typedef struct acpi_table_asf
190 ACPI_TABLE_HEADER Header
; /* Common ACPI table header */
195 /* ASF subtable header */
197 typedef struct acpi_asf_header
206 /* Values for Type field above */
210 ACPI_ASF_TYPE_INFO
= 0,
211 ACPI_ASF_TYPE_ALERT
= 1,
212 ACPI_ASF_TYPE_CONTROL
= 2,
213 ACPI_ASF_TYPE_BOOT
= 3,
214 ACPI_ASF_TYPE_ADDRESS
= 4,
215 ACPI_ASF_TYPE_RESERVED
= 5
222 /* 0: ASF Information */
224 typedef struct acpi_asf_info
226 ACPI_ASF_HEADER Header
;
228 UINT8 MinPollInterval
;
236 /* Masks for Flags field above */
238 #define ACPI_ASF_SMBUS_PROTOCOLS (1)
243 typedef struct acpi_asf_alert
245 ACPI_ASF_HEADER Header
;
253 typedef struct acpi_asf_alert_data
268 } ACPI_ASF_ALERT_DATA
;
271 /* 2: ASF Remote Control */
273 typedef struct acpi_asf_remote
275 ACPI_ASF_HEADER Header
;
282 typedef struct acpi_asf_control_data
289 } ACPI_ASF_CONTROL_DATA
;
292 /* 3: ASF RMCP Boot Options */
294 typedef struct acpi_asf_rmcp
296 ACPI_ASF_HEADER Header
;
297 UINT8 Capabilities
[7];
298 UINT8 CompletionCode
;
303 UINT16 OemParameters
;
310 typedef struct acpi_asf_address
312 ACPI_ASF_HEADER Header
;
319 /*******************************************************************************
321 * BOOT - Simple Boot Flag Table
324 * Conforms to the "Simple Boot Flag Specification", Version 2.1
326 ******************************************************************************/
328 typedef struct acpi_table_boot
330 ACPI_TABLE_HEADER Header
; /* Common ACPI table header */
331 UINT8 CmosIndex
; /* Index in CMOS RAM for the boot register */
337 /*******************************************************************************
339 * DBGP - Debug Port table
342 * Conforms to the "Debug Port Specification", Version 1.00, 2/9/2000
344 ******************************************************************************/
346 typedef struct acpi_table_dbgp
348 ACPI_TABLE_HEADER Header
; /* Common ACPI table header */
349 UINT8 Type
; /* 0=full 16550, 1=subset of 16550 */
351 ACPI_GENERIC_ADDRESS DebugPort
;
356 /*******************************************************************************
358 * DMAR - DMA Remapping table
361 * Conforms to "Intel Virtualization Technology for Directed I/O",
362 * Version 1.2, Sept. 2008
364 ******************************************************************************/
366 typedef struct acpi_table_dmar
368 ACPI_TABLE_HEADER Header
; /* Common ACPI table header */
369 UINT8 Width
; /* Host Address Width */
375 /* Masks for Flags field above */
377 #define ACPI_DMAR_INTR_REMAP (1)
380 /* DMAR subtable header */
382 typedef struct acpi_dmar_header
389 /* Values for subtable type in ACPI_DMAR_HEADER */
393 ACPI_DMAR_TYPE_HARDWARE_UNIT
= 0,
394 ACPI_DMAR_TYPE_RESERVED_MEMORY
= 1,
395 ACPI_DMAR_TYPE_ATSR
= 2,
396 ACPI_DMAR_HARDWARE_AFFINITY
= 3,
397 ACPI_DMAR_TYPE_RESERVED
= 4 /* 4 and greater are reserved */
401 /* DMAR Device Scope structure */
403 typedef struct acpi_dmar_device_scope
411 } ACPI_DMAR_DEVICE_SCOPE
;
413 /* Values for EntryType in ACPI_DMAR_DEVICE_SCOPE */
415 enum AcpiDmarScopeType
417 ACPI_DMAR_SCOPE_TYPE_NOT_USED
= 0,
418 ACPI_DMAR_SCOPE_TYPE_ENDPOINT
= 1,
419 ACPI_DMAR_SCOPE_TYPE_BRIDGE
= 2,
420 ACPI_DMAR_SCOPE_TYPE_IOAPIC
= 3,
421 ACPI_DMAR_SCOPE_TYPE_HPET
= 4,
422 ACPI_DMAR_SCOPE_TYPE_RESERVED
= 5 /* 5 and greater are reserved */
425 typedef struct acpi_dmar_pci_path
430 } ACPI_DMAR_PCI_PATH
;
434 * DMAR Sub-tables, correspond to Type in ACPI_DMAR_HEADER
437 /* 0: Hardware Unit Definition */
439 typedef struct acpi_dmar_hardware_unit
441 ACPI_DMAR_HEADER Header
;
445 UINT64 Address
; /* Register Base Address */
447 } ACPI_DMAR_HARDWARE_UNIT
;
449 /* Masks for Flags field above */
451 #define ACPI_DMAR_INCLUDE_ALL (1)
454 /* 1: Reserved Memory Defininition */
456 typedef struct acpi_dmar_reserved_memory
458 ACPI_DMAR_HEADER Header
;
461 UINT64 BaseAddress
; /* 4K aligned base address */
462 UINT64 EndAddress
; /* 4K aligned limit address */
464 } ACPI_DMAR_RESERVED_MEMORY
;
466 /* Masks for Flags field above */
468 #define ACPI_DMAR_ALLOW_ALL (1)
471 /* 2: Root Port ATS Capability Reporting Structure */
473 typedef struct acpi_dmar_atsr
475 ACPI_DMAR_HEADER Header
;
482 /* Masks for Flags field above */
484 #define ACPI_DMAR_ALL_PORTS (1)
487 /* 3: Remapping Hardware Static Affinity Structure */
489 typedef struct acpi_dmar_rhsa
491 ACPI_DMAR_HEADER Header
;
494 UINT32 ProximityDomain
;
499 /*******************************************************************************
501 * HPET - High Precision Event Timer table
504 * Conforms to "IA-PC HPET (High Precision Event Timers) Specification",
505 * Version 1.0a, October 2004
507 ******************************************************************************/
509 typedef struct acpi_table_hpet
511 ACPI_TABLE_HEADER Header
; /* Common ACPI table header */
512 UINT32 Id
; /* Hardware ID of event timer block */
513 ACPI_GENERIC_ADDRESS Address
; /* Address of event timer block */
514 UINT8 Sequence
; /* HPET sequence number */
515 UINT16 MinimumTick
; /* Main counter min tick, periodic mode */
520 /* Masks for Flags field above */
522 #define ACPI_HPET_PAGE_PROTECT_MASK (3)
524 /* Values for Page Protect flags */
526 enum AcpiHpetPageProtect
528 ACPI_HPET_NO_PAGE_PROTECT
= 0,
529 ACPI_HPET_PAGE_PROTECT4
= 1,
530 ACPI_HPET_PAGE_PROTECT64
= 2
534 /*******************************************************************************
536 * IBFT - Boot Firmware Table
539 * Conforms to "iSCSI Boot Firmware Table (iBFT) as Defined in ACPI 3.0b
540 * Specification", Version 1.01, March 1, 2007
542 * Note: It appears that this table is not intended to appear in the RSDT/XSDT.
543 * Therefore, it is not currently supported by the disassembler.
545 ******************************************************************************/
547 typedef struct acpi_table_ibft
549 ACPI_TABLE_HEADER Header
; /* Common ACPI table header */
555 /* IBFT common subtable header */
557 typedef struct acpi_ibft_header
567 /* Values for Type field above */
571 ACPI_IBFT_TYPE_NOT_USED
= 0,
572 ACPI_IBFT_TYPE_CONTROL
= 1,
573 ACPI_IBFT_TYPE_INITIATOR
= 2,
574 ACPI_IBFT_TYPE_NIC
= 3,
575 ACPI_IBFT_TYPE_TARGET
= 4,
576 ACPI_IBFT_TYPE_EXTENSIONS
= 5,
577 ACPI_IBFT_TYPE_RESERVED
= 6 /* 6 and greater are reserved */
583 typedef struct acpi_ibft_control
585 ACPI_IBFT_HEADER Header
;
587 UINT16 InitiatorOffset
;
589 UINT16 Target0Offset
;
591 UINT16 Target1Offset
;
595 typedef struct acpi_ibft_initiator
597 ACPI_IBFT_HEADER Header
;
600 UINT8 PrimaryServer
[16];
601 UINT8 SecondaryServer
[16];
605 } ACPI_IBFT_INITIATOR
;
607 typedef struct acpi_ibft_nic
609 ACPI_IBFT_HEADER Header
;
611 UINT8 SubnetMaskPrefix
;
614 UINT8 PrimaryDns
[16];
615 UINT8 SecondaryDns
[16];
625 typedef struct acpi_ibft_target
627 ACPI_IBFT_HEADER Header
;
628 UINT8 TargetIpAddress
[16];
629 UINT16 TargetIpSocket
;
630 UINT8 TargetBootLun
[8];
632 UINT8 NicAssociation
;
633 UINT16 TargetNameLength
;
634 UINT16 TargetNameOffset
;
635 UINT16 ChapNameLength
;
636 UINT16 ChapNameOffset
;
637 UINT16 ChapSecretLength
;
638 UINT16 ChapSecretOffset
;
639 UINT16 ReverseChapNameLength
;
640 UINT16 ReverseChapNameOffset
;
641 UINT16 ReverseChapSecretLength
;
642 UINT16 ReverseChapSecretOffset
;
647 /*******************************************************************************
649 * IVRS - I/O Virtualization Reporting Structure
652 * Conforms to "AMD I/O Virtualization Technology (IOMMU) Specification",
653 * Revision 1.26, February 2009.
655 ******************************************************************************/
657 typedef struct acpi_table_ivrs
659 ACPI_TABLE_HEADER Header
; /* Common ACPI table header */
660 UINT32 Info
; /* Common virtualization info */
665 /* Values for Info field above */
667 #define ACPI_IVRS_PHYSICAL_SIZE 0x00007F00 /* 7 bits, physical address size */
668 #define ACPI_IVRS_VIRTUAL_SIZE 0x003F8000 /* 7 bits, virtual address size */
669 #define ACPI_IVRS_ATS_RESERVED 0x00400000 /* ATS address translation range reserved */
672 /* IVRS subtable header */
674 typedef struct acpi_ivrs_header
676 UINT8 Type
; /* Subtable type */
678 UINT16 Length
; /* Subtable length */
679 UINT16 DeviceId
; /* ID of IOMMU */
683 /* Values for subtable Type above */
687 ACPI_IVRS_TYPE_HARDWARE
= 0x10,
688 ACPI_IVRS_TYPE_MEMORY1
= 0x20,
689 ACPI_IVRS_TYPE_MEMORY2
= 0x21,
690 ACPI_IVRS_TYPE_MEMORY3
= 0x22
693 /* Masks for Flags field above for IVHD subtable */
695 #define ACPI_IVHD_TT_ENABLE (1)
696 #define ACPI_IVHD_PASS_PW (1<<1)
697 #define ACPI_IVHD_RES_PASS_PW (1<<2)
698 #define ACPI_IVHD_ISOC (1<<3)
699 #define ACPI_IVHD_IOTLB (1<<4)
701 /* Masks for Flags field above for IVMD subtable */
703 #define ACPI_IVMD_UNITY (1)
704 #define ACPI_IVMD_READ (1<<1)
705 #define ACPI_IVMD_WRITE (1<<2)
706 #define ACPI_IVMD_EXCLUSION_RANGE (1<<3)
710 * IVRS subtables, correspond to Type in ACPI_IVRS_HEADER
713 /* 0x10: I/O Virtualization Hardware Definition Block (IVHD) */
715 typedef struct acpi_ivrs_hardware
717 ACPI_IVRS_HEADER Header
;
718 UINT16 CapabilityOffset
; /* Offset for IOMMU control fields */
719 UINT64 BaseAddress
; /* IOMMU control registers */
720 UINT16 PciSegmentGroup
;
721 UINT16 Info
; /* MSI number and unit ID */
724 } ACPI_IVRS_HARDWARE
;
726 /* Masks for Info field above */
728 #define ACPI_IVHD_MSI_NUMBER_MASK 0x001F /* 5 bits, MSI message number */
729 #define ACPI_IVHD_UNIT_ID_MASK 0x1F00 /* 5 bits, UnitID */
733 * Device Entries for IVHD subtable, appear after ACPI_IVRS_HARDWARE structure.
734 * Upper two bits of the Type field are the (encoded) length of the structure.
735 * Currently, only 4 and 8 byte entries are defined. 16 and 32 byte entries
736 * are reserved for future use but not defined.
738 typedef struct acpi_ivrs_de_header
744 } ACPI_IVRS_DE_HEADER
;
746 /* Length of device entry is in the top two bits of Type field above */
748 #define ACPI_IVHD_ENTRY_LENGTH 0xC0
750 /* Values for device entry Type field above */
752 enum AcpiIvrsDeviceEntryType
754 /* 4-byte device entries, all use ACPI_IVRS_DEVICE4 */
756 ACPI_IVRS_TYPE_PAD4
= 0,
757 ACPI_IVRS_TYPE_ALL
= 1,
758 ACPI_IVRS_TYPE_SELECT
= 2,
759 ACPI_IVRS_TYPE_START
= 3,
760 ACPI_IVRS_TYPE_END
= 4,
762 /* 8-byte device entries */
764 ACPI_IVRS_TYPE_PAD8
= 64,
765 ACPI_IVRS_TYPE_NOT_USED
= 65,
766 ACPI_IVRS_TYPE_ALIAS_SELECT
= 66, /* Uses ACPI_IVRS_DEVICE8A */
767 ACPI_IVRS_TYPE_ALIAS_START
= 67, /* Uses ACPI_IVRS_DEVICE8A */
768 ACPI_IVRS_TYPE_EXT_SELECT
= 70, /* Uses ACPI_IVRS_DEVICE8B */
769 ACPI_IVRS_TYPE_EXT_START
= 71, /* Uses ACPI_IVRS_DEVICE8B */
770 ACPI_IVRS_TYPE_SPECIAL
= 72 /* Uses ACPI_IVRS_DEVICE8C */
773 /* Values for Data field above */
775 #define ACPI_IVHD_INIT_PASS (1)
776 #define ACPI_IVHD_EINT_PASS (1<<1)
777 #define ACPI_IVHD_NMI_PASS (1<<2)
778 #define ACPI_IVHD_SYSTEM_MGMT (3<<4)
779 #define ACPI_IVHD_LINT0_PASS (1<<6)
780 #define ACPI_IVHD_LINT1_PASS (1<<7)
783 /* Types 0-4: 4-byte device entry */
785 typedef struct acpi_ivrs_device4
787 ACPI_IVRS_DE_HEADER Header
;
791 /* Types 66-67: 8-byte device entry */
793 typedef struct acpi_ivrs_device8a
795 ACPI_IVRS_DE_HEADER Header
;
800 } ACPI_IVRS_DEVICE8A
;
802 /* Types 70-71: 8-byte device entry */
804 typedef struct acpi_ivrs_device8b
806 ACPI_IVRS_DE_HEADER Header
;
809 } ACPI_IVRS_DEVICE8B
;
811 /* Values for ExtendedData above */
813 #define ACPI_IVHD_ATS_DISABLED (1<<31)
815 /* Type 72: 8-byte device entry */
817 typedef struct acpi_ivrs_device8c
819 ACPI_IVRS_DE_HEADER Header
;
824 } ACPI_IVRS_DEVICE8C
;
826 /* Values for Variety field above */
828 #define ACPI_IVHD_IOAPIC 1
829 #define ACPI_IVHD_HPET 2
832 /* 0x20, 0x21, 0x22: I/O Virtualization Memory Definition Block (IVMD) */
834 typedef struct acpi_ivrs_memory
836 ACPI_IVRS_HEADER Header
;
845 /*******************************************************************************
847 * MCFG - PCI Memory Mapped Configuration table and sub-table
850 * Conforms to "PCI Firmware Specification", Revision 3.0, June 20, 2005
852 ******************************************************************************/
854 typedef struct acpi_table_mcfg
856 ACPI_TABLE_HEADER Header
; /* Common ACPI table header */
864 typedef struct acpi_mcfg_allocation
866 UINT64 Address
; /* Base address, processor-relative */
867 UINT16 PciSegment
; /* PCI segment group number */
868 UINT8 StartBusNumber
; /* Starting PCI Bus number */
869 UINT8 EndBusNumber
; /* Final PCI Bus number */
872 } ACPI_MCFG_ALLOCATION
;
875 /*******************************************************************************
877 * MCHI - Management Controller Host Interface Table
880 * Conforms to "Management Component Transport Protocol (MCTP) Host
881 * Interface Specification", Revision 1.0.0a, October 13, 2009
883 ******************************************************************************/
885 typedef struct acpi_table_mchi
887 ACPI_TABLE_HEADER Header
; /* Common ACPI table header */
894 UINT32 GlobalInterrupt
;
895 ACPI_GENERIC_ADDRESS ControlRegister
;
904 /*******************************************************************************
906 * SPCR - Serial Port Console Redirection table
909 * Conforms to "Serial Port Console Redirection Table",
910 * Version 1.00, January 11, 2002
912 ******************************************************************************/
914 typedef struct acpi_table_spcr
916 ACPI_TABLE_HEADER Header
; /* Common ACPI table header */
917 UINT8 InterfaceType
; /* 0=full 16550, 1=subset of 16550 */
919 ACPI_GENERIC_ADDRESS SerialPort
;
940 /* Masks for PciFlags field above */
942 #define ACPI_SPCR_DO_NOT_DISABLE (1)
945 /*******************************************************************************
947 * SPMI - Server Platform Management Interface table
950 * Conforms to "Intelligent Platform Management Interface Specification
951 * Second Generation v2.0", Document Revision 1.0, February 12, 2004 with
952 * June 12, 2009 markup.
954 ******************************************************************************/
956 typedef struct acpi_table_spmi
958 ACPI_TABLE_HEADER Header
; /* Common ACPI table header */
960 UINT8 Reserved
; /* Must be 1 */
961 UINT16 SpecRevision
; /* Version of IPMI */
963 UINT8 GpeNumber
; /* GPE assigned */
967 ACPI_GENERIC_ADDRESS IpmiRegister
;
976 /* Values for InterfaceType above */
978 enum AcpiSpmiInterfaceTypes
980 ACPI_SPMI_NOT_USED
= 0,
981 ACPI_SPMI_KEYBOARD
= 1,
983 ACPI_SPMI_BLOCK_TRANSFER
= 3,
985 ACPI_SPMI_RESERVED
= 5 /* 5 and above are reserved */
989 /*******************************************************************************
991 * TCPA - Trusted Computing Platform Alliance table
994 * Conforms to "TCG PC Specific Implementation Specification",
995 * Version 1.1, August 18, 2003
997 ******************************************************************************/
999 typedef struct acpi_table_tcpa
1001 ACPI_TABLE_HEADER Header
; /* Common ACPI table header */
1003 UINT32 MaxLogLength
; /* Maximum length for the event log area */
1004 UINT64 LogAddress
; /* Address of the event log area */
1009 /*******************************************************************************
1011 * UEFI - UEFI Boot optimization Table
1014 * Conforms to "Unified Extensible Firmware Interface Specification",
1015 * Version 2.3, May 8, 2009
1017 ******************************************************************************/
1019 typedef struct acpi_table_uefi
1021 ACPI_TABLE_HEADER Header
; /* Common ACPI table header */
1022 UINT8 Identifier
[16]; /* UUID identifier */
1023 UINT16 DataOffset
; /* Offset of remaining data in table */
1028 /*******************************************************************************
1030 * WAET - Windows ACPI Emulated devices Table
1033 * Conforms to "Windows ACPI Emulated Devices Table", version 1.0, April 6, 2009
1035 ******************************************************************************/
1037 typedef struct acpi_table_waet
1039 ACPI_TABLE_HEADER Header
; /* Common ACPI table header */
1044 /* Masks for Flags field above */
1046 #define ACPI_WAET_RTC_NO_ACK (1) /* RTC requires no int acknowledge */
1047 #define ACPI_WAET_TIMER_ONE_READ (1<<1) /* PM timer requires only one read */
1050 /*******************************************************************************
1052 * WDAT - Watchdog Action Table
1055 * Conforms to "Hardware Watchdog Timers Design Specification",
1056 * Copyright 2006 Microsoft Corporation.
1058 ******************************************************************************/
1060 typedef struct acpi_table_wdat
1062 ACPI_TABLE_HEADER Header
; /* Common ACPI table header */
1063 UINT32 HeaderLength
; /* Watchdog Header Length */
1064 UINT16 PciSegment
; /* PCI Segment number */
1065 UINT8 PciBus
; /* PCI Bus number */
1066 UINT8 PciDevice
; /* PCI Device number */
1067 UINT8 PciFunction
; /* PCI Function number */
1069 UINT32 TimerPeriod
; /* Period of one timer count (msec) */
1070 UINT32 MaxCount
; /* Maximum counter value supported */
1071 UINT32 MinCount
; /* Minimum counter value */
1074 UINT32 Entries
; /* Number of watchdog entries that follow */
1078 /* Masks for Flags field above */
1080 #define ACPI_WDAT_ENABLED (1)
1081 #define ACPI_WDAT_STOPPED 0x80
1084 /* WDAT Instruction Entries (actions) */
1086 typedef struct acpi_wdat_entry
1091 ACPI_GENERIC_ADDRESS RegisterRegion
;
1092 UINT32 Value
; /* Value used with Read/Write register */
1093 UINT32 Mask
; /* Bitmask required for this register instruction */
1097 /* Values for Action field above */
1099 enum AcpiWdatActions
1101 ACPI_WDAT_RESET
= 1,
1102 ACPI_WDAT_GET_CURRENT_COUNTDOWN
= 4,
1103 ACPI_WDAT_GET_COUNTDOWN
= 5,
1104 ACPI_WDAT_SET_COUNTDOWN
= 6,
1105 ACPI_WDAT_GET_RUNNING_STATE
= 8,
1106 ACPI_WDAT_SET_RUNNING_STATE
= 9,
1107 ACPI_WDAT_GET_STOPPED_STATE
= 10,
1108 ACPI_WDAT_SET_STOPPED_STATE
= 11,
1109 ACPI_WDAT_GET_REBOOT
= 16,
1110 ACPI_WDAT_SET_REBOOT
= 17,
1111 ACPI_WDAT_GET_SHUTDOWN
= 18,
1112 ACPI_WDAT_SET_SHUTDOWN
= 19,
1113 ACPI_WDAT_GET_STATUS
= 32,
1114 ACPI_WDAT_SET_STATUS
= 33,
1115 ACPI_WDAT_ACTION_RESERVED
= 34 /* 34 and greater are reserved */
1118 /* Values for Instruction field above */
1120 enum AcpiWdatInstructions
1122 ACPI_WDAT_READ_VALUE
= 0,
1123 ACPI_WDAT_READ_COUNTDOWN
= 1,
1124 ACPI_WDAT_WRITE_VALUE
= 2,
1125 ACPI_WDAT_WRITE_COUNTDOWN
= 3,
1126 ACPI_WDAT_INSTRUCTION_RESERVED
= 4, /* 4 and greater are reserved */
1127 ACPI_WDAT_PRESERVE_REGISTER
= 0x80 /* Except for this value */
1131 /*******************************************************************************
1133 * WDDT - Watchdog Descriptor Table
1136 * Conforms to "Using the Intel ICH Family Watchdog Timer (WDT)",
1137 * Version 001, September 2002
1139 ******************************************************************************/
1141 typedef struct acpi_table_wddt
1143 ACPI_TABLE_HEADER Header
; /* Common ACPI table header */
1145 UINT16 TableVersion
;
1147 ACPI_GENERIC_ADDRESS Address
;
1148 UINT16 MaxCount
; /* Maximum counter value supported */
1149 UINT16 MinCount
; /* Minimum counter value supported */
1156 /* Flags for Status field above */
1158 #define ACPI_WDDT_AVAILABLE (1)
1159 #define ACPI_WDDT_ACTIVE (1<<1)
1160 #define ACPI_WDDT_TCO_OS_OWNED (1<<2)
1161 #define ACPI_WDDT_USER_RESET (1<<11)
1162 #define ACPI_WDDT_WDT_RESET (1<<12)
1163 #define ACPI_WDDT_POWER_FAIL (1<<13)
1164 #define ACPI_WDDT_UNKNOWN_RESET (1<<14)
1166 /* Flags for Capability field above */
1168 #define ACPI_WDDT_AUTO_RESET (1)
1169 #define ACPI_WDDT_ALERT_SUPPORT (1<<1)
1172 /*******************************************************************************
1174 * WDRT - Watchdog Resource Table
1177 * Conforms to "Watchdog Timer Hardware Requirements for Windows Server 2003",
1178 * Version 1.01, August 28, 2006
1180 ******************************************************************************/
1182 typedef struct acpi_table_wdrt
1184 ACPI_TABLE_HEADER Header
; /* Common ACPI table header */
1185 ACPI_GENERIC_ADDRESS ControlRegister
;
1186 ACPI_GENERIC_ADDRESS CountRegister
;
1189 UINT8 PciBus
; /* PCI Bus number */
1190 UINT8 PciDevice
; /* PCI Device number */
1191 UINT8 PciFunction
; /* PCI Function number */
1192 UINT8 PciSegment
; /* PCI Segment number */
1193 UINT16 MaxCount
; /* Maximum counter value supported */
1199 /* Reset to default packing */
1203 #endif /* __ACTBL2_H__ */