1 /******************************************************************************
3 * Name: actbl2.h - ACPI Table Definitions (tables not in ACPI spec)
5 *****************************************************************************/
8 * Copyright (C) 2000 - 2012, 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_SLIC "SLIC" /* Software Licensing Description Table */
78 #define ACPI_SIG_SPCR "SPCR" /* Serial Port Console Redirection table */
79 #define ACPI_SIG_SPMI "SPMI" /* Server Platform Management Interface table */
80 #define ACPI_SIG_TCPA "TCPA" /* Trusted Computing Platform Alliance table */
81 #define ACPI_SIG_UEFI "UEFI" /* Uefi Boot Optimization Table */
82 #define ACPI_SIG_WAET "WAET" /* Windows ACPI Emulated devices Table */
83 #define ACPI_SIG_WDAT "WDAT" /* Watchdog Action Table */
84 #define ACPI_SIG_WDDT "WDDT" /* Watchdog Timer Description Table */
85 #define ACPI_SIG_WDRT "WDRT" /* Watchdog Resource Table */
87 #ifdef ACPI_UNDEFINED_TABLES
89 * These tables have been seen in the field, but no definition has been found
91 #define ACPI_SIG_ATKG "ATKG"
92 #define ACPI_SIG_GSCI "GSCI" /* GMCH SCI table */
93 #define ACPI_SIG_IEIT "IEIT"
97 * All tables must be byte-packed to match the ACPI specification, since
98 * the tables are provided by the system BIOS.
103 * Note: C bitfields are not used for this reason:
105 * "Bitfields are great and easy to read, but unfortunately the C language
106 * does not specify the layout of bitfields in memory, which means they are
107 * essentially useless for dealing with packed data in on-disk formats or
108 * binary wire protocols." (Or ACPI tables and buffers.) "If you ask me,
109 * this decision was a design error in C. Ritchie could have picked an order
110 * and stuck with it." Norman Ramsey.
111 * See http://stackoverflow.com/a/1053662/41661
115 /*******************************************************************************
117 * ASF - Alert Standard Format table (Signature "ASF!")
120 * Conforms to the Alert Standard Format Specification V2.0, 23 April 2003
122 ******************************************************************************/
124 typedef struct acpi_table_asf
126 ACPI_TABLE_HEADER Header; /* Common ACPI table header */
131 /* ASF subtable header */
133 typedef struct acpi_asf_header
142 /* Values for Type field above */
146 ACPI_ASF_TYPE_INFO = 0,
147 ACPI_ASF_TYPE_ALERT = 1,
148 ACPI_ASF_TYPE_CONTROL = 2,
149 ACPI_ASF_TYPE_BOOT = 3,
150 ACPI_ASF_TYPE_ADDRESS = 4,
151 ACPI_ASF_TYPE_RESERVED = 5
158 /* 0: ASF Information */
160 typedef struct acpi_asf_info
162 ACPI_ASF_HEADER Header;
164 UINT8 MinPollInterval;
172 /* Masks for Flags field above */
174 #define ACPI_ASF_SMBUS_PROTOCOLS (1)
179 typedef struct acpi_asf_alert
181 ACPI_ASF_HEADER Header;
189 typedef struct acpi_asf_alert_data
204 } ACPI_ASF_ALERT_DATA;
207 /* 2: ASF Remote Control */
209 typedef struct acpi_asf_remote
211 ACPI_ASF_HEADER Header;
218 typedef struct acpi_asf_control_data
225 } ACPI_ASF_CONTROL_DATA;
228 /* 3: ASF RMCP Boot Options */
230 typedef struct acpi_asf_rmcp
232 ACPI_ASF_HEADER Header;
233 UINT8 Capabilities[7];
234 UINT8 CompletionCode;
239 UINT16 OemParameters;
246 typedef struct acpi_asf_address
248 ACPI_ASF_HEADER Header;
255 /*******************************************************************************
257 * BOOT - Simple Boot Flag Table
260 * Conforms to the "Simple Boot Flag Specification", Version 2.1
262 ******************************************************************************/
264 typedef struct acpi_table_boot
266 ACPI_TABLE_HEADER Header; /* Common ACPI table header */
267 UINT8 CmosIndex; /* Index in CMOS RAM for the boot register */
273 /*******************************************************************************
275 * CSRT - Core System Resource Table
278 * Conforms to the "Core System Resource Table (CSRT)", November 14, 2011
280 ******************************************************************************/
282 typedef struct acpi_table_csrt
284 ACPI_TABLE_HEADER Header; /* Common ACPI table header */
289 /* Resource Group subtable */
291 typedef struct acpi_csrt_group
300 UINT32 SharedInfoLength;
302 /* Shared data immediately follows (Length = SharedInfoLength) */
306 /* Shared Info subtable */
308 typedef struct acpi_csrt_shared_info
315 UINT8 InterruptPolarity;
318 UINT8 DmaAddressWidth;
319 UINT16 BaseRequestLine;
320 UINT16 NumHandshakeSignals;
323 /* Resource descriptors immediately follow (Length = Group Length - SharedInfoLength) */
325 } ACPI_CSRT_SHARED_INFO;
327 /* Resource Descriptor subtable */
329 typedef struct acpi_csrt_descriptor
336 /* Resource-specific information immediately follows */
338 } ACPI_CSRT_DESCRIPTOR;
343 #define ACPI_CSRT_TYPE_INTERRUPT 0x0001
344 #define ACPI_CSRT_TYPE_TIMER 0x0002
345 #define ACPI_CSRT_TYPE_DMA 0x0003
347 /* Resource Subtypes */
349 #define ACPI_CSRT_XRUPT_LINE 0x0000
350 #define ACPI_CSRT_XRUPT_CONTROLLER 0x0001
351 #define ACPI_CSRT_TIMER 0x0000
352 #define ACPI_CSRT_DMA_CHANNEL 0x0000
353 #define ACPI_CSRT_DMA_CONTROLLER 0x0001
356 /*******************************************************************************
358 * DBG2 - Debug Port Table 2
359 * Version 0 (Both main table and subtables)
361 * Conforms to "Microsoft Debug Port Table 2 (DBG2)", May 22 2012.
363 ******************************************************************************/
365 typedef struct acpi_table_dbg2
367 ACPI_TABLE_HEADER Header; /* Common ACPI table header */
374 /* Debug Device Information Subtable */
376 typedef struct acpi_dbg2_device
380 UINT8 RegisterCount; /* Number of BaseAddress registers */
381 UINT16 NamepathLength;
382 UINT16 NamepathOffset;
383 UINT16 OemDataLength;
384 UINT16 OemDataOffset;
388 UINT16 BaseAddressOffset;
389 UINT16 AddressSizeOffset;
392 * BaseAddress (required) - Each in 12-byte Generic Address Structure format.
393 * AddressSize (required) - Array of UINT32 sizes corresponding to each BaseAddress register.
394 * Namepath (required) - Null terminated string. Single dot if not supported.
395 * OemData (optional) - Length is OemDataLength.
399 /* Types for PortType field above */
401 #define ACPI_DBG2_SERIAL_PORT 0x8000
402 #define ACPI_DBG2_1394_PORT 0x8001
403 #define ACPI_DBG2_USB_PORT 0x8002
404 #define ACPI_DBG2_NET_PORT 0x8003
406 /* Subtypes for PortSubtype field above */
408 #define ACPI_DBG2_16550_COMPATIBLE 0x0000
409 #define ACPI_DBG2_16550_SUBSET 0x0001
411 #define ACPI_DBG2_1394_STANDARD 0x0000
413 #define ACPI_DBG2_USB_XHCI 0x0000
414 #define ACPI_DBG2_USB_EHCI 0x0001
417 /*******************************************************************************
419 * DBGP - Debug Port table
422 * Conforms to the "Debug Port Specification", Version 1.00, 2/9/2000
424 ******************************************************************************/
426 typedef struct acpi_table_dbgp
428 ACPI_TABLE_HEADER Header; /* Common ACPI table header */
429 UINT8 Type; /* 0=full 16550, 1=subset of 16550 */
431 ACPI_GENERIC_ADDRESS DebugPort;
436 /*******************************************************************************
438 * DMAR - DMA Remapping table
441 * Conforms to "Intel Virtualization Technology for Directed I/O",
442 * Version 1.2, Sept. 2008
444 ******************************************************************************/
446 typedef struct acpi_table_dmar
448 ACPI_TABLE_HEADER Header; /* Common ACPI table header */
449 UINT8 Width; /* Host Address Width */
455 /* Masks for Flags field above */
457 #define ACPI_DMAR_INTR_REMAP (1)
460 /* DMAR subtable header */
462 typedef struct acpi_dmar_header
469 /* Values for subtable type in ACPI_DMAR_HEADER */
473 ACPI_DMAR_TYPE_HARDWARE_UNIT = 0,
474 ACPI_DMAR_TYPE_RESERVED_MEMORY = 1,
475 ACPI_DMAR_TYPE_ATSR = 2,
476 ACPI_DMAR_HARDWARE_AFFINITY = 3,
477 ACPI_DMAR_TYPE_RESERVED = 4 /* 4 and greater are reserved */
481 /* DMAR Device Scope structure */
483 typedef struct acpi_dmar_device_scope
491 } ACPI_DMAR_DEVICE_SCOPE;
493 /* Values for EntryType in ACPI_DMAR_DEVICE_SCOPE */
495 enum AcpiDmarScopeType
497 ACPI_DMAR_SCOPE_TYPE_NOT_USED = 0,
498 ACPI_DMAR_SCOPE_TYPE_ENDPOINT = 1,
499 ACPI_DMAR_SCOPE_TYPE_BRIDGE = 2,
500 ACPI_DMAR_SCOPE_TYPE_IOAPIC = 3,
501 ACPI_DMAR_SCOPE_TYPE_HPET = 4,
502 ACPI_DMAR_SCOPE_TYPE_RESERVED = 5 /* 5 and greater are reserved */
505 typedef struct acpi_dmar_pci_path
510 } ACPI_DMAR_PCI_PATH;
514 * DMAR Sub-tables, correspond to Type in ACPI_DMAR_HEADER
517 /* 0: Hardware Unit Definition */
519 typedef struct acpi_dmar_hardware_unit
521 ACPI_DMAR_HEADER Header;
525 UINT64 Address; /* Register Base Address */
527 } ACPI_DMAR_HARDWARE_UNIT;
529 /* Masks for Flags field above */
531 #define ACPI_DMAR_INCLUDE_ALL (1)
534 /* 1: Reserved Memory Defininition */
536 typedef struct acpi_dmar_reserved_memory
538 ACPI_DMAR_HEADER Header;
541 UINT64 BaseAddress; /* 4K aligned base address */
542 UINT64 EndAddress; /* 4K aligned limit address */
544 } ACPI_DMAR_RESERVED_MEMORY;
546 /* Masks for Flags field above */
548 #define ACPI_DMAR_ALLOW_ALL (1)
551 /* 2: Root Port ATS Capability Reporting Structure */
553 typedef struct acpi_dmar_atsr
555 ACPI_DMAR_HEADER Header;
562 /* Masks for Flags field above */
564 #define ACPI_DMAR_ALL_PORTS (1)
567 /* 3: Remapping Hardware Static Affinity Structure */
569 typedef struct acpi_dmar_rhsa
571 ACPI_DMAR_HEADER Header;
574 UINT32 ProximityDomain;
579 /*******************************************************************************
581 * HPET - High Precision Event Timer table
584 * Conforms to "IA-PC HPET (High Precision Event Timers) Specification",
585 * Version 1.0a, October 2004
587 ******************************************************************************/
589 typedef struct acpi_table_hpet
591 ACPI_TABLE_HEADER Header; /* Common ACPI table header */
592 UINT32 Id; /* Hardware ID of event timer block */
593 ACPI_GENERIC_ADDRESS Address; /* Address of event timer block */
594 UINT8 Sequence; /* HPET sequence number */
595 UINT16 MinimumTick; /* Main counter min tick, periodic mode */
600 /* Masks for Flags field above */
602 #define ACPI_HPET_PAGE_PROTECT_MASK (3)
604 /* Values for Page Protect flags */
606 enum AcpiHpetPageProtect
608 ACPI_HPET_NO_PAGE_PROTECT = 0,
609 ACPI_HPET_PAGE_PROTECT4 = 1,
610 ACPI_HPET_PAGE_PROTECT64 = 2
614 /*******************************************************************************
616 * IBFT - Boot Firmware Table
619 * Conforms to "iSCSI Boot Firmware Table (iBFT) as Defined in ACPI 3.0b
620 * Specification", Version 1.01, March 1, 2007
622 * Note: It appears that this table is not intended to appear in the RSDT/XSDT.
623 * Therefore, it is not currently supported by the disassembler.
625 ******************************************************************************/
627 typedef struct acpi_table_ibft
629 ACPI_TABLE_HEADER Header; /* Common ACPI table header */
635 /* IBFT common subtable header */
637 typedef struct acpi_ibft_header
647 /* Values for Type field above */
651 ACPI_IBFT_TYPE_NOT_USED = 0,
652 ACPI_IBFT_TYPE_CONTROL = 1,
653 ACPI_IBFT_TYPE_INITIATOR = 2,
654 ACPI_IBFT_TYPE_NIC = 3,
655 ACPI_IBFT_TYPE_TARGET = 4,
656 ACPI_IBFT_TYPE_EXTENSIONS = 5,
657 ACPI_IBFT_TYPE_RESERVED = 6 /* 6 and greater are reserved */
663 typedef struct acpi_ibft_control
665 ACPI_IBFT_HEADER Header;
667 UINT16 InitiatorOffset;
669 UINT16 Target0Offset;
671 UINT16 Target1Offset;
675 typedef struct acpi_ibft_initiator
677 ACPI_IBFT_HEADER Header;
680 UINT8 PrimaryServer[16];
681 UINT8 SecondaryServer[16];
685 } ACPI_IBFT_INITIATOR;
687 typedef struct acpi_ibft_nic
689 ACPI_IBFT_HEADER Header;
691 UINT8 SubnetMaskPrefix;
694 UINT8 PrimaryDns[16];
695 UINT8 SecondaryDns[16];
705 typedef struct acpi_ibft_target
707 ACPI_IBFT_HEADER Header;
708 UINT8 TargetIpAddress[16];
709 UINT16 TargetIpSocket;
710 UINT8 TargetBootLun[8];
712 UINT8 NicAssociation;
713 UINT16 TargetNameLength;
714 UINT16 TargetNameOffset;
715 UINT16 ChapNameLength;
716 UINT16 ChapNameOffset;
717 UINT16 ChapSecretLength;
718 UINT16 ChapSecretOffset;
719 UINT16 ReverseChapNameLength;
720 UINT16 ReverseChapNameOffset;
721 UINT16 ReverseChapSecretLength;
722 UINT16 ReverseChapSecretOffset;
727 /*******************************************************************************
729 * IVRS - I/O Virtualization Reporting Structure
732 * Conforms to "AMD I/O Virtualization Technology (IOMMU) Specification",
733 * Revision 1.26, February 2009.
735 ******************************************************************************/
737 typedef struct acpi_table_ivrs
739 ACPI_TABLE_HEADER Header; /* Common ACPI table header */
740 UINT32 Info; /* Common virtualization info */
745 /* Values for Info field above */
747 #define ACPI_IVRS_PHYSICAL_SIZE 0x00007F00 /* 7 bits, physical address size */
748 #define ACPI_IVRS_VIRTUAL_SIZE 0x003F8000 /* 7 bits, virtual address size */
749 #define ACPI_IVRS_ATS_RESERVED 0x00400000 /* ATS address translation range reserved */
752 /* IVRS subtable header */
754 typedef struct acpi_ivrs_header
756 UINT8 Type; /* Subtable type */
758 UINT16 Length; /* Subtable length */
759 UINT16 DeviceId; /* ID of IOMMU */
763 /* Values for subtable Type above */
767 ACPI_IVRS_TYPE_HARDWARE = 0x10,
768 ACPI_IVRS_TYPE_MEMORY1 = 0x20,
769 ACPI_IVRS_TYPE_MEMORY2 = 0x21,
770 ACPI_IVRS_TYPE_MEMORY3 = 0x22
773 /* Masks for Flags field above for IVHD subtable */
775 #define ACPI_IVHD_TT_ENABLE (1)
776 #define ACPI_IVHD_PASS_PW (1<<1)
777 #define ACPI_IVHD_RES_PASS_PW (1<<2)
778 #define ACPI_IVHD_ISOC (1<<3)
779 #define ACPI_IVHD_IOTLB (1<<4)
781 /* Masks for Flags field above for IVMD subtable */
783 #define ACPI_IVMD_UNITY (1)
784 #define ACPI_IVMD_READ (1<<1)
785 #define ACPI_IVMD_WRITE (1<<2)
786 #define ACPI_IVMD_EXCLUSION_RANGE (1<<3)
790 * IVRS subtables, correspond to Type in ACPI_IVRS_HEADER
793 /* 0x10: I/O Virtualization Hardware Definition Block (IVHD) */
795 typedef struct acpi_ivrs_hardware
797 ACPI_IVRS_HEADER Header;
798 UINT16 CapabilityOffset; /* Offset for IOMMU control fields */
799 UINT64 BaseAddress; /* IOMMU control registers */
800 UINT16 PciSegmentGroup;
801 UINT16 Info; /* MSI number and unit ID */
804 } ACPI_IVRS_HARDWARE;
806 /* Masks for Info field above */
808 #define ACPI_IVHD_MSI_NUMBER_MASK 0x001F /* 5 bits, MSI message number */
809 #define ACPI_IVHD_UNIT_ID_MASK 0x1F00 /* 5 bits, UnitID */
813 * Device Entries for IVHD subtable, appear after ACPI_IVRS_HARDWARE structure.
814 * Upper two bits of the Type field are the (encoded) length of the structure.
815 * Currently, only 4 and 8 byte entries are defined. 16 and 32 byte entries
816 * are reserved for future use but not defined.
818 typedef struct acpi_ivrs_de_header
824 } ACPI_IVRS_DE_HEADER;
826 /* Length of device entry is in the top two bits of Type field above */
828 #define ACPI_IVHD_ENTRY_LENGTH 0xC0
830 /* Values for device entry Type field above */
832 enum AcpiIvrsDeviceEntryType
834 /* 4-byte device entries, all use ACPI_IVRS_DEVICE4 */
836 ACPI_IVRS_TYPE_PAD4 = 0,
837 ACPI_IVRS_TYPE_ALL = 1,
838 ACPI_IVRS_TYPE_SELECT = 2,
839 ACPI_IVRS_TYPE_START = 3,
840 ACPI_IVRS_TYPE_END = 4,
842 /* 8-byte device entries */
844 ACPI_IVRS_TYPE_PAD8 = 64,
845 ACPI_IVRS_TYPE_NOT_USED = 65,
846 ACPI_IVRS_TYPE_ALIAS_SELECT = 66, /* Uses ACPI_IVRS_DEVICE8A */
847 ACPI_IVRS_TYPE_ALIAS_START = 67, /* Uses ACPI_IVRS_DEVICE8A */
848 ACPI_IVRS_TYPE_EXT_SELECT = 70, /* Uses ACPI_IVRS_DEVICE8B */
849 ACPI_IVRS_TYPE_EXT_START = 71, /* Uses ACPI_IVRS_DEVICE8B */
850 ACPI_IVRS_TYPE_SPECIAL = 72 /* Uses ACPI_IVRS_DEVICE8C */
853 /* Values for Data field above */
855 #define ACPI_IVHD_INIT_PASS (1)
856 #define ACPI_IVHD_EINT_PASS (1<<1)
857 #define ACPI_IVHD_NMI_PASS (1<<2)
858 #define ACPI_IVHD_SYSTEM_MGMT (3<<4)
859 #define ACPI_IVHD_LINT0_PASS (1<<6)
860 #define ACPI_IVHD_LINT1_PASS (1<<7)
863 /* Types 0-4: 4-byte device entry */
865 typedef struct acpi_ivrs_device4
867 ACPI_IVRS_DE_HEADER Header;
871 /* Types 66-67: 8-byte device entry */
873 typedef struct acpi_ivrs_device8a
875 ACPI_IVRS_DE_HEADER Header;
880 } ACPI_IVRS_DEVICE8A;
882 /* Types 70-71: 8-byte device entry */
884 typedef struct acpi_ivrs_device8b
886 ACPI_IVRS_DE_HEADER Header;
889 } ACPI_IVRS_DEVICE8B;
891 /* Values for ExtendedData above */
893 #define ACPI_IVHD_ATS_DISABLED (1<<31)
895 /* Type 72: 8-byte device entry */
897 typedef struct acpi_ivrs_device8c
899 ACPI_IVRS_DE_HEADER Header;
904 } ACPI_IVRS_DEVICE8C;
906 /* Values for Variety field above */
908 #define ACPI_IVHD_IOAPIC 1
909 #define ACPI_IVHD_HPET 2
912 /* 0x20, 0x21, 0x22: I/O Virtualization Memory Definition Block (IVMD) */
914 typedef struct acpi_ivrs_memory
916 ACPI_IVRS_HEADER Header;
925 /*******************************************************************************
927 * MCFG - PCI Memory Mapped Configuration table and sub-table
930 * Conforms to "PCI Firmware Specification", Revision 3.0, June 20, 2005
932 ******************************************************************************/
934 typedef struct acpi_table_mcfg
936 ACPI_TABLE_HEADER Header; /* Common ACPI table header */
944 typedef struct acpi_mcfg_allocation
946 UINT64 Address; /* Base address, processor-relative */
947 UINT16 PciSegment; /* PCI segment group number */
948 UINT8 StartBusNumber; /* Starting PCI Bus number */
949 UINT8 EndBusNumber; /* Final PCI Bus number */
952 } ACPI_MCFG_ALLOCATION;
955 /*******************************************************************************
957 * MCHI - Management Controller Host Interface Table
960 * Conforms to "Management Component Transport Protocol (MCTP) Host
961 * Interface Specification", Revision 1.0.0a, October 13, 2009
963 ******************************************************************************/
965 typedef struct acpi_table_mchi
967 ACPI_TABLE_HEADER Header; /* Common ACPI table header */
974 UINT32 GlobalInterrupt;
975 ACPI_GENERIC_ADDRESS ControlRegister;
984 /*******************************************************************************
986 * SLIC - Software Licensing Description Table
989 * Conforms to "OEM Activation 2.0 for Windows Vista Operating Systems",
992 ******************************************************************************/
994 /* Basic SLIC table is only the common ACPI header */
996 typedef struct acpi_table_slic
998 ACPI_TABLE_HEADER Header; /* Common ACPI table header */
1003 /* Common SLIC subtable header */
1005 typedef struct acpi_slic_header
1012 /* Values for Type field above */
1016 ACPI_SLIC_TYPE_PUBLIC_KEY = 0,
1017 ACPI_SLIC_TYPE_WINDOWS_MARKER = 1,
1018 ACPI_SLIC_TYPE_RESERVED = 2 /* 2 and greater are reserved */
1023 * SLIC Sub-tables, correspond to Type in ACPI_SLIC_HEADER
1026 /* 0: Public Key Structure */
1028 typedef struct acpi_slic_key
1030 ACPI_SLIC_HEADER Header;
1043 /* 1: Windows Marker Structure */
1045 typedef struct acpi_slic_marker
1047 ACPI_SLIC_HEADER Header;
1049 char OemId[ACPI_OEM_ID_SIZE]; /* ASCII OEM identification */
1050 char OemTableId[ACPI_OEM_TABLE_ID_SIZE]; /* ASCII OEM table identification */
1051 char WindowsFlag[8];
1054 UINT8 Signature[128];
1059 /*******************************************************************************
1061 * SPCR - Serial Port Console Redirection table
1064 * Conforms to "Serial Port Console Redirection Table",
1065 * Version 1.00, January 11, 2002
1067 ******************************************************************************/
1069 typedef struct acpi_table_spcr
1071 ACPI_TABLE_HEADER Header; /* Common ACPI table header */
1072 UINT8 InterfaceType; /* 0=full 16550, 1=subset of 16550 */
1074 ACPI_GENERIC_ADDRESS SerialPort;
1075 UINT8 InterruptType;
1095 /* Masks for PciFlags field above */
1097 #define ACPI_SPCR_DO_NOT_DISABLE (1)
1100 /*******************************************************************************
1102 * SPMI - Server Platform Management Interface table
1105 * Conforms to "Intelligent Platform Management Interface Specification
1106 * Second Generation v2.0", Document Revision 1.0, February 12, 2004 with
1107 * June 12, 2009 markup.
1109 ******************************************************************************/
1111 typedef struct acpi_table_spmi
1113 ACPI_TABLE_HEADER Header; /* Common ACPI table header */
1114 UINT8 InterfaceType;
1115 UINT8 Reserved; /* Must be 1 */
1116 UINT16 SpecRevision; /* Version of IPMI */
1117 UINT8 InterruptType;
1118 UINT8 GpeNumber; /* GPE assigned */
1120 UINT8 PciDeviceFlag;
1122 ACPI_GENERIC_ADDRESS IpmiRegister;
1131 /* Values for InterfaceType above */
1133 enum AcpiSpmiInterfaceTypes
1135 ACPI_SPMI_NOT_USED = 0,
1136 ACPI_SPMI_KEYBOARD = 1,
1138 ACPI_SPMI_BLOCK_TRANSFER = 3,
1139 ACPI_SPMI_SMBUS = 4,
1140 ACPI_SPMI_RESERVED = 5 /* 5 and above are reserved */
1144 /*******************************************************************************
1146 * TCPA - Trusted Computing Platform Alliance table
1149 * Conforms to "TCG PC Specific Implementation Specification",
1150 * Version 1.1, August 18, 2003
1152 ******************************************************************************/
1154 typedef struct acpi_table_tcpa
1156 ACPI_TABLE_HEADER Header; /* Common ACPI table header */
1158 UINT32 MaxLogLength; /* Maximum length for the event log area */
1159 UINT64 LogAddress; /* Address of the event log area */
1164 /*******************************************************************************
1166 * UEFI - UEFI Boot optimization Table
1169 * Conforms to "Unified Extensible Firmware Interface Specification",
1170 * Version 2.3, May 8, 2009
1172 ******************************************************************************/
1174 typedef struct acpi_table_uefi
1176 ACPI_TABLE_HEADER Header; /* Common ACPI table header */
1177 UINT8 Identifier[16]; /* UUID identifier */
1178 UINT16 DataOffset; /* Offset of remaining data in table */
1183 /*******************************************************************************
1185 * WAET - Windows ACPI Emulated devices Table
1188 * Conforms to "Windows ACPI Emulated Devices Table", version 1.0, April 6, 2009
1190 ******************************************************************************/
1192 typedef struct acpi_table_waet
1194 ACPI_TABLE_HEADER Header; /* Common ACPI table header */
1199 /* Masks for Flags field above */
1201 #define ACPI_WAET_RTC_NO_ACK (1) /* RTC requires no int acknowledge */
1202 #define ACPI_WAET_TIMER_ONE_READ (1<<1) /* PM timer requires only one read */
1205 /*******************************************************************************
1207 * WDAT - Watchdog Action Table
1210 * Conforms to "Hardware Watchdog Timers Design Specification",
1211 * Copyright 2006 Microsoft Corporation.
1213 ******************************************************************************/
1215 typedef struct acpi_table_wdat
1217 ACPI_TABLE_HEADER Header; /* Common ACPI table header */
1218 UINT32 HeaderLength; /* Watchdog Header Length */
1219 UINT16 PciSegment; /* PCI Segment number */
1220 UINT8 PciBus; /* PCI Bus number */
1221 UINT8 PciDevice; /* PCI Device number */
1222 UINT8 PciFunction; /* PCI Function number */
1224 UINT32 TimerPeriod; /* Period of one timer count (msec) */
1225 UINT32 MaxCount; /* Maximum counter value supported */
1226 UINT32 MinCount; /* Minimum counter value */
1229 UINT32 Entries; /* Number of watchdog entries that follow */
1233 /* Masks for Flags field above */
1235 #define ACPI_WDAT_ENABLED (1)
1236 #define ACPI_WDAT_STOPPED 0x80
1239 /* WDAT Instruction Entries (actions) */
1241 typedef struct acpi_wdat_entry
1246 ACPI_GENERIC_ADDRESS RegisterRegion;
1247 UINT32 Value; /* Value used with Read/Write register */
1248 UINT32 Mask; /* Bitmask required for this register instruction */
1252 /* Values for Action field above */
1254 enum AcpiWdatActions
1256 ACPI_WDAT_RESET = 1,
1257 ACPI_WDAT_GET_CURRENT_COUNTDOWN = 4,
1258 ACPI_WDAT_GET_COUNTDOWN = 5,
1259 ACPI_WDAT_SET_COUNTDOWN = 6,
1260 ACPI_WDAT_GET_RUNNING_STATE = 8,
1261 ACPI_WDAT_SET_RUNNING_STATE = 9,
1262 ACPI_WDAT_GET_STOPPED_STATE = 10,
1263 ACPI_WDAT_SET_STOPPED_STATE = 11,
1264 ACPI_WDAT_GET_REBOOT = 16,
1265 ACPI_WDAT_SET_REBOOT = 17,
1266 ACPI_WDAT_GET_SHUTDOWN = 18,
1267 ACPI_WDAT_SET_SHUTDOWN = 19,
1268 ACPI_WDAT_GET_STATUS = 32,
1269 ACPI_WDAT_SET_STATUS = 33,
1270 ACPI_WDAT_ACTION_RESERVED = 34 /* 34 and greater are reserved */
1273 /* Values for Instruction field above */
1275 enum AcpiWdatInstructions
1277 ACPI_WDAT_READ_VALUE = 0,
1278 ACPI_WDAT_READ_COUNTDOWN = 1,
1279 ACPI_WDAT_WRITE_VALUE = 2,
1280 ACPI_WDAT_WRITE_COUNTDOWN = 3,
1281 ACPI_WDAT_INSTRUCTION_RESERVED = 4, /* 4 and greater are reserved */
1282 ACPI_WDAT_PRESERVE_REGISTER = 0x80 /* Except for this value */
1286 /*******************************************************************************
1288 * WDDT - Watchdog Descriptor Table
1291 * Conforms to "Using the Intel ICH Family Watchdog Timer (WDT)",
1292 * Version 001, September 2002
1294 ******************************************************************************/
1296 typedef struct acpi_table_wddt
1298 ACPI_TABLE_HEADER Header; /* Common ACPI table header */
1300 UINT16 TableVersion;
1302 ACPI_GENERIC_ADDRESS Address;
1303 UINT16 MaxCount; /* Maximum counter value supported */
1304 UINT16 MinCount; /* Minimum counter value supported */
1311 /* Flags for Status field above */
1313 #define ACPI_WDDT_AVAILABLE (1)
1314 #define ACPI_WDDT_ACTIVE (1<<1)
1315 #define ACPI_WDDT_TCO_OS_OWNED (1<<2)
1316 #define ACPI_WDDT_USER_RESET (1<<11)
1317 #define ACPI_WDDT_WDT_RESET (1<<12)
1318 #define ACPI_WDDT_POWER_FAIL (1<<13)
1319 #define ACPI_WDDT_UNKNOWN_RESET (1<<14)
1321 /* Flags for Capability field above */
1323 #define ACPI_WDDT_AUTO_RESET (1)
1324 #define ACPI_WDDT_ALERT_SUPPORT (1<<1)
1327 /*******************************************************************************
1329 * WDRT - Watchdog Resource Table
1332 * Conforms to "Watchdog Timer Hardware Requirements for Windows Server 2003",
1333 * Version 1.01, August 28, 2006
1335 ******************************************************************************/
1337 typedef struct acpi_table_wdrt
1339 ACPI_TABLE_HEADER Header; /* Common ACPI table header */
1340 ACPI_GENERIC_ADDRESS ControlRegister;
1341 ACPI_GENERIC_ADDRESS CountRegister;
1344 UINT8 PciBus; /* PCI Bus number */
1345 UINT8 PciDevice; /* PCI Device number */
1346 UINT8 PciFunction; /* PCI Function number */
1347 UINT8 PciSegment; /* PCI Segment number */
1348 UINT16 MaxCount; /* Maximum counter value supported */
1354 /* Reset to default packing */
1358 #endif /* __ACTBL2_H__ */