1 /******************************************************************************
3 * Name: actbl2.h - ACPI Table Definitions (tables not in ACPI spec)
5 *****************************************************************************/
8 * Copyright (C) 2000 - 2011, 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_DBGP "DBGP" /* Debug Port table */
69 #define ACPI_SIG_DMAR "DMAR" /* DMA Remapping table */
70 #define ACPI_SIG_HPET "HPET" /* High Precision Event Timer table */
71 #define ACPI_SIG_IBFT "IBFT" /* iSCSI Boot Firmware Table */
72 #define ACPI_SIG_IVRS "IVRS" /* I/O Virtualization Reporting Structure */
73 #define ACPI_SIG_MCFG "MCFG" /* PCI Memory Mapped Configuration table */
74 #define ACPI_SIG_MCHI "MCHI" /* Management Controller Host Interface table */
75 #define ACPI_SIG_SLIC "SLIC" /* Software Licensing Description Table */
76 #define ACPI_SIG_SPCR "SPCR" /* Serial Port Console Redirection table */
77 #define ACPI_SIG_SPMI "SPMI" /* Server Platform Management Interface table */
78 #define ACPI_SIG_TCPA "TCPA" /* Trusted Computing Platform Alliance table */
79 #define ACPI_SIG_UEFI "UEFI" /* Uefi Boot Optimization Table */
80 #define ACPI_SIG_WAET "WAET" /* Windows ACPI Emulated devices Table */
81 #define ACPI_SIG_WDAT "WDAT" /* Watchdog Action Table */
82 #define ACPI_SIG_WDDT "WDDT" /* Watchdog Timer Description Table */
83 #define ACPI_SIG_WDRT "WDRT" /* Watchdog Resource Table */
85 #ifdef ACPI_UNDEFINED_TABLES
87 * These tables have been seen in the field, but no definition has been found
89 #define ACPI_SIG_ATKG "ATKG"
90 #define ACPI_SIG_GSCI "GSCI" /* GMCH SCI table */
91 #define ACPI_SIG_IEIT "IEIT"
95 * All tables must be byte-packed to match the ACPI specification, since
96 * the tables are provided by the system BIOS.
101 * Note about bitfields: The UINT8 type is used for bitfields in ACPI tables.
102 * This is the only type that is even remotely portable. Anything else is not
103 * portable, so do not use any other bitfield types.
107 /*******************************************************************************
109 * ASF - Alert Standard Format table (Signature "ASF!")
112 * Conforms to the Alert Standard Format Specification V2.0, 23 April 2003
114 ******************************************************************************/
116 typedef struct acpi_table_asf
118 ACPI_TABLE_HEADER Header; /* Common ACPI table header */
123 /* ASF subtable header */
125 typedef struct acpi_asf_header
134 /* Values for Type field above */
138 ACPI_ASF_TYPE_INFO = 0,
139 ACPI_ASF_TYPE_ALERT = 1,
140 ACPI_ASF_TYPE_CONTROL = 2,
141 ACPI_ASF_TYPE_BOOT = 3,
142 ACPI_ASF_TYPE_ADDRESS = 4,
143 ACPI_ASF_TYPE_RESERVED = 5
150 /* 0: ASF Information */
152 typedef struct acpi_asf_info
154 ACPI_ASF_HEADER Header;
156 UINT8 MinPollInterval;
164 /* Masks for Flags field above */
166 #define ACPI_ASF_SMBUS_PROTOCOLS (1)
171 typedef struct acpi_asf_alert
173 ACPI_ASF_HEADER Header;
181 typedef struct acpi_asf_alert_data
196 } ACPI_ASF_ALERT_DATA;
199 /* 2: ASF Remote Control */
201 typedef struct acpi_asf_remote
203 ACPI_ASF_HEADER Header;
210 typedef struct acpi_asf_control_data
217 } ACPI_ASF_CONTROL_DATA;
220 /* 3: ASF RMCP Boot Options */
222 typedef struct acpi_asf_rmcp
224 ACPI_ASF_HEADER Header;
225 UINT8 Capabilities[7];
226 UINT8 CompletionCode;
231 UINT16 OemParameters;
238 typedef struct acpi_asf_address
240 ACPI_ASF_HEADER Header;
247 /*******************************************************************************
249 * BOOT - Simple Boot Flag Table
252 * Conforms to the "Simple Boot Flag Specification", Version 2.1
254 ******************************************************************************/
256 typedef struct acpi_table_boot
258 ACPI_TABLE_HEADER Header; /* Common ACPI table header */
259 UINT8 CmosIndex; /* Index in CMOS RAM for the boot register */
265 /*******************************************************************************
267 * DBGP - Debug Port table
270 * Conforms to the "Debug Port Specification", Version 1.00, 2/9/2000
272 ******************************************************************************/
274 typedef struct acpi_table_dbgp
276 ACPI_TABLE_HEADER Header; /* Common ACPI table header */
277 UINT8 Type; /* 0=full 16550, 1=subset of 16550 */
279 ACPI_GENERIC_ADDRESS DebugPort;
284 /*******************************************************************************
286 * DMAR - DMA Remapping table
289 * Conforms to "Intel Virtualization Technology for Directed I/O",
290 * Version 1.2, Sept. 2008
292 ******************************************************************************/
294 typedef struct acpi_table_dmar
296 ACPI_TABLE_HEADER Header; /* Common ACPI table header */
297 UINT8 Width; /* Host Address Width */
303 /* Masks for Flags field above */
305 #define ACPI_DMAR_INTR_REMAP (1)
308 /* DMAR subtable header */
310 typedef struct acpi_dmar_header
317 /* Values for subtable type in ACPI_DMAR_HEADER */
321 ACPI_DMAR_TYPE_HARDWARE_UNIT = 0,
322 ACPI_DMAR_TYPE_RESERVED_MEMORY = 1,
323 ACPI_DMAR_TYPE_ATSR = 2,
324 ACPI_DMAR_HARDWARE_AFFINITY = 3,
325 ACPI_DMAR_TYPE_RESERVED = 4 /* 4 and greater are reserved */
329 /* DMAR Device Scope structure */
331 typedef struct acpi_dmar_device_scope
339 } ACPI_DMAR_DEVICE_SCOPE;
341 /* Values for EntryType in ACPI_DMAR_DEVICE_SCOPE */
343 enum AcpiDmarScopeType
345 ACPI_DMAR_SCOPE_TYPE_NOT_USED = 0,
346 ACPI_DMAR_SCOPE_TYPE_ENDPOINT = 1,
347 ACPI_DMAR_SCOPE_TYPE_BRIDGE = 2,
348 ACPI_DMAR_SCOPE_TYPE_IOAPIC = 3,
349 ACPI_DMAR_SCOPE_TYPE_HPET = 4,
350 ACPI_DMAR_SCOPE_TYPE_RESERVED = 5 /* 5 and greater are reserved */
353 typedef struct acpi_dmar_pci_path
358 } ACPI_DMAR_PCI_PATH;
362 * DMAR Sub-tables, correspond to Type in ACPI_DMAR_HEADER
365 /* 0: Hardware Unit Definition */
367 typedef struct acpi_dmar_hardware_unit
369 ACPI_DMAR_HEADER Header;
373 UINT64 Address; /* Register Base Address */
375 } ACPI_DMAR_HARDWARE_UNIT;
377 /* Masks for Flags field above */
379 #define ACPI_DMAR_INCLUDE_ALL (1)
382 /* 1: Reserved Memory Defininition */
384 typedef struct acpi_dmar_reserved_memory
386 ACPI_DMAR_HEADER Header;
389 UINT64 BaseAddress; /* 4K aligned base address */
390 UINT64 EndAddress; /* 4K aligned limit address */
392 } ACPI_DMAR_RESERVED_MEMORY;
394 /* Masks for Flags field above */
396 #define ACPI_DMAR_ALLOW_ALL (1)
399 /* 2: Root Port ATS Capability Reporting Structure */
401 typedef struct acpi_dmar_atsr
403 ACPI_DMAR_HEADER Header;
410 /* Masks for Flags field above */
412 #define ACPI_DMAR_ALL_PORTS (1)
415 /* 3: Remapping Hardware Static Affinity Structure */
417 typedef struct acpi_dmar_rhsa
419 ACPI_DMAR_HEADER Header;
422 UINT32 ProximityDomain;
427 /*******************************************************************************
429 * HPET - High Precision Event Timer table
432 * Conforms to "IA-PC HPET (High Precision Event Timers) Specification",
433 * Version 1.0a, October 2004
435 ******************************************************************************/
437 typedef struct acpi_table_hpet
439 ACPI_TABLE_HEADER Header; /* Common ACPI table header */
440 UINT32 Id; /* Hardware ID of event timer block */
441 ACPI_GENERIC_ADDRESS Address; /* Address of event timer block */
442 UINT8 Sequence; /* HPET sequence number */
443 UINT16 MinimumTick; /* Main counter min tick, periodic mode */
448 /* Masks for Flags field above */
450 #define ACPI_HPET_PAGE_PROTECT_MASK (3)
452 /* Values for Page Protect flags */
454 enum AcpiHpetPageProtect
456 ACPI_HPET_NO_PAGE_PROTECT = 0,
457 ACPI_HPET_PAGE_PROTECT4 = 1,
458 ACPI_HPET_PAGE_PROTECT64 = 2
462 /*******************************************************************************
464 * IBFT - Boot Firmware Table
467 * Conforms to "iSCSI Boot Firmware Table (iBFT) as Defined in ACPI 3.0b
468 * Specification", Version 1.01, March 1, 2007
470 * Note: It appears that this table is not intended to appear in the RSDT/XSDT.
471 * Therefore, it is not currently supported by the disassembler.
473 ******************************************************************************/
475 typedef struct acpi_table_ibft
477 ACPI_TABLE_HEADER Header; /* Common ACPI table header */
483 /* IBFT common subtable header */
485 typedef struct acpi_ibft_header
495 /* Values for Type field above */
499 ACPI_IBFT_TYPE_NOT_USED = 0,
500 ACPI_IBFT_TYPE_CONTROL = 1,
501 ACPI_IBFT_TYPE_INITIATOR = 2,
502 ACPI_IBFT_TYPE_NIC = 3,
503 ACPI_IBFT_TYPE_TARGET = 4,
504 ACPI_IBFT_TYPE_EXTENSIONS = 5,
505 ACPI_IBFT_TYPE_RESERVED = 6 /* 6 and greater are reserved */
511 typedef struct acpi_ibft_control
513 ACPI_IBFT_HEADER Header;
515 UINT16 InitiatorOffset;
517 UINT16 Target0Offset;
519 UINT16 Target1Offset;
523 typedef struct acpi_ibft_initiator
525 ACPI_IBFT_HEADER Header;
528 UINT8 PrimaryServer[16];
529 UINT8 SecondaryServer[16];
533 } ACPI_IBFT_INITIATOR;
535 typedef struct acpi_ibft_nic
537 ACPI_IBFT_HEADER Header;
539 UINT8 SubnetMaskPrefix;
542 UINT8 PrimaryDns[16];
543 UINT8 SecondaryDns[16];
553 typedef struct acpi_ibft_target
555 ACPI_IBFT_HEADER Header;
556 UINT8 TargetIpAddress[16];
557 UINT16 TargetIpSocket;
558 UINT8 TargetBootLun[8];
560 UINT8 NicAssociation;
561 UINT16 TargetNameLength;
562 UINT16 TargetNameOffset;
563 UINT16 ChapNameLength;
564 UINT16 ChapNameOffset;
565 UINT16 ChapSecretLength;
566 UINT16 ChapSecretOffset;
567 UINT16 ReverseChapNameLength;
568 UINT16 ReverseChapNameOffset;
569 UINT16 ReverseChapSecretLength;
570 UINT16 ReverseChapSecretOffset;
575 /*******************************************************************************
577 * IVRS - I/O Virtualization Reporting Structure
580 * Conforms to "AMD I/O Virtualization Technology (IOMMU) Specification",
581 * Revision 1.26, February 2009.
583 ******************************************************************************/
585 typedef struct acpi_table_ivrs
587 ACPI_TABLE_HEADER Header; /* Common ACPI table header */
588 UINT32 Info; /* Common virtualization info */
593 /* Values for Info field above */
595 #define ACPI_IVRS_PHYSICAL_SIZE 0x00007F00 /* 7 bits, physical address size */
596 #define ACPI_IVRS_VIRTUAL_SIZE 0x003F8000 /* 7 bits, virtual address size */
597 #define ACPI_IVRS_ATS_RESERVED 0x00400000 /* ATS address translation range reserved */
600 /* IVRS subtable header */
602 typedef struct acpi_ivrs_header
604 UINT8 Type; /* Subtable type */
606 UINT16 Length; /* Subtable length */
607 UINT16 DeviceId; /* ID of IOMMU */
611 /* Values for subtable Type above */
615 ACPI_IVRS_TYPE_HARDWARE = 0x10,
616 ACPI_IVRS_TYPE_MEMORY1 = 0x20,
617 ACPI_IVRS_TYPE_MEMORY2 = 0x21,
618 ACPI_IVRS_TYPE_MEMORY3 = 0x22
621 /* Masks for Flags field above for IVHD subtable */
623 #define ACPI_IVHD_TT_ENABLE (1)
624 #define ACPI_IVHD_PASS_PW (1<<1)
625 #define ACPI_IVHD_RES_PASS_PW (1<<2)
626 #define ACPI_IVHD_ISOC (1<<3)
627 #define ACPI_IVHD_IOTLB (1<<4)
629 /* Masks for Flags field above for IVMD subtable */
631 #define ACPI_IVMD_UNITY (1)
632 #define ACPI_IVMD_READ (1<<1)
633 #define ACPI_IVMD_WRITE (1<<2)
634 #define ACPI_IVMD_EXCLUSION_RANGE (1<<3)
638 * IVRS subtables, correspond to Type in ACPI_IVRS_HEADER
641 /* 0x10: I/O Virtualization Hardware Definition Block (IVHD) */
643 typedef struct acpi_ivrs_hardware
645 ACPI_IVRS_HEADER Header;
646 UINT16 CapabilityOffset; /* Offset for IOMMU control fields */
647 UINT64 BaseAddress; /* IOMMU control registers */
648 UINT16 PciSegmentGroup;
649 UINT16 Info; /* MSI number and unit ID */
652 } ACPI_IVRS_HARDWARE;
654 /* Masks for Info field above */
656 #define ACPI_IVHD_MSI_NUMBER_MASK 0x001F /* 5 bits, MSI message number */
657 #define ACPI_IVHD_UNIT_ID_MASK 0x1F00 /* 5 bits, UnitID */
661 * Device Entries for IVHD subtable, appear after ACPI_IVRS_HARDWARE structure.
662 * Upper two bits of the Type field are the (encoded) length of the structure.
663 * Currently, only 4 and 8 byte entries are defined. 16 and 32 byte entries
664 * are reserved for future use but not defined.
666 typedef struct acpi_ivrs_de_header
672 } ACPI_IVRS_DE_HEADER;
674 /* Length of device entry is in the top two bits of Type field above */
676 #define ACPI_IVHD_ENTRY_LENGTH 0xC0
678 /* Values for device entry Type field above */
680 enum AcpiIvrsDeviceEntryType
682 /* 4-byte device entries, all use ACPI_IVRS_DEVICE4 */
684 ACPI_IVRS_TYPE_PAD4 = 0,
685 ACPI_IVRS_TYPE_ALL = 1,
686 ACPI_IVRS_TYPE_SELECT = 2,
687 ACPI_IVRS_TYPE_START = 3,
688 ACPI_IVRS_TYPE_END = 4,
690 /* 8-byte device entries */
692 ACPI_IVRS_TYPE_PAD8 = 64,
693 ACPI_IVRS_TYPE_NOT_USED = 65,
694 ACPI_IVRS_TYPE_ALIAS_SELECT = 66, /* Uses ACPI_IVRS_DEVICE8A */
695 ACPI_IVRS_TYPE_ALIAS_START = 67, /* Uses ACPI_IVRS_DEVICE8A */
696 ACPI_IVRS_TYPE_EXT_SELECT = 70, /* Uses ACPI_IVRS_DEVICE8B */
697 ACPI_IVRS_TYPE_EXT_START = 71, /* Uses ACPI_IVRS_DEVICE8B */
698 ACPI_IVRS_TYPE_SPECIAL = 72 /* Uses ACPI_IVRS_DEVICE8C */
701 /* Values for Data field above */
703 #define ACPI_IVHD_INIT_PASS (1)
704 #define ACPI_IVHD_EINT_PASS (1<<1)
705 #define ACPI_IVHD_NMI_PASS (1<<2)
706 #define ACPI_IVHD_SYSTEM_MGMT (3<<4)
707 #define ACPI_IVHD_LINT0_PASS (1<<6)
708 #define ACPI_IVHD_LINT1_PASS (1<<7)
711 /* Types 0-4: 4-byte device entry */
713 typedef struct acpi_ivrs_device4
715 ACPI_IVRS_DE_HEADER Header;
719 /* Types 66-67: 8-byte device entry */
721 typedef struct acpi_ivrs_device8a
723 ACPI_IVRS_DE_HEADER Header;
728 } ACPI_IVRS_DEVICE8A;
730 /* Types 70-71: 8-byte device entry */
732 typedef struct acpi_ivrs_device8b
734 ACPI_IVRS_DE_HEADER Header;
737 } ACPI_IVRS_DEVICE8B;
739 /* Values for ExtendedData above */
741 #define ACPI_IVHD_ATS_DISABLED (1<<31)
743 /* Type 72: 8-byte device entry */
745 typedef struct acpi_ivrs_device8c
747 ACPI_IVRS_DE_HEADER Header;
752 } ACPI_IVRS_DEVICE8C;
754 /* Values for Variety field above */
756 #define ACPI_IVHD_IOAPIC 1
757 #define ACPI_IVHD_HPET 2
760 /* 0x20, 0x21, 0x22: I/O Virtualization Memory Definition Block (IVMD) */
762 typedef struct acpi_ivrs_memory
764 ACPI_IVRS_HEADER Header;
773 /*******************************************************************************
775 * MCFG - PCI Memory Mapped Configuration table and sub-table
778 * Conforms to "PCI Firmware Specification", Revision 3.0, June 20, 2005
780 ******************************************************************************/
782 typedef struct acpi_table_mcfg
784 ACPI_TABLE_HEADER Header; /* Common ACPI table header */
792 typedef struct acpi_mcfg_allocation
794 UINT64 Address; /* Base address, processor-relative */
795 UINT16 PciSegment; /* PCI segment group number */
796 UINT8 StartBusNumber; /* Starting PCI Bus number */
797 UINT8 EndBusNumber; /* Final PCI Bus number */
800 } ACPI_MCFG_ALLOCATION;
803 /*******************************************************************************
805 * MCHI - Management Controller Host Interface Table
808 * Conforms to "Management Component Transport Protocol (MCTP) Host
809 * Interface Specification", Revision 1.0.0a, October 13, 2009
811 ******************************************************************************/
813 typedef struct acpi_table_mchi
815 ACPI_TABLE_HEADER Header; /* Common ACPI table header */
822 UINT32 GlobalInterrupt;
823 ACPI_GENERIC_ADDRESS ControlRegister;
832 /*******************************************************************************
834 * SLIC - Software Licensing Description Table
837 * Conforms to "OEM Activation 2.0 for Windows Vista Operating Systems",
840 ******************************************************************************/
842 /* Basic SLIC table is only the common ACPI header */
844 typedef struct acpi_table_slic
846 ACPI_TABLE_HEADER Header; /* Common ACPI table header */
851 /* Common SLIC subtable header */
853 typedef struct acpi_slic_header
860 /* Values for Type field above */
864 ACPI_SLIC_TYPE_PUBLIC_KEY = 0,
865 ACPI_SLIC_TYPE_WINDOWS_MARKER = 1,
866 ACPI_SLIC_TYPE_RESERVED = 2 /* 2 and greater are reserved */
871 * SLIC Sub-tables, correspond to Type in ACPI_SLIC_HEADER
874 /* 0: Public Key Structure */
876 typedef struct acpi_slic_key
878 ACPI_SLIC_HEADER Header;
891 /* 1: Windows Marker Structure */
893 typedef struct acpi_slic_marker
895 ACPI_SLIC_HEADER Header;
897 char OemId[ACPI_OEM_ID_SIZE]; /* ASCII OEM identification */
898 char OemTableId[ACPI_OEM_TABLE_ID_SIZE]; /* ASCII OEM table identification */
902 UINT8 Signature[128];
907 /*******************************************************************************
909 * SPCR - Serial Port Console Redirection table
912 * Conforms to "Serial Port Console Redirection Table",
913 * Version 1.00, January 11, 2002
915 ******************************************************************************/
917 typedef struct acpi_table_spcr
919 ACPI_TABLE_HEADER Header; /* Common ACPI table header */
920 UINT8 InterfaceType; /* 0=full 16550, 1=subset of 16550 */
922 ACPI_GENERIC_ADDRESS SerialPort;
943 /* Masks for PciFlags field above */
945 #define ACPI_SPCR_DO_NOT_DISABLE (1)
948 /*******************************************************************************
950 * SPMI - Server Platform Management Interface table
953 * Conforms to "Intelligent Platform Management Interface Specification
954 * Second Generation v2.0", Document Revision 1.0, February 12, 2004 with
955 * June 12, 2009 markup.
957 ******************************************************************************/
959 typedef struct acpi_table_spmi
961 ACPI_TABLE_HEADER Header; /* Common ACPI table header */
963 UINT8 Reserved; /* Must be 1 */
964 UINT16 SpecRevision; /* Version of IPMI */
966 UINT8 GpeNumber; /* GPE assigned */
970 ACPI_GENERIC_ADDRESS IpmiRegister;
979 /* Values for InterfaceType above */
981 enum AcpiSpmiInterfaceTypes
983 ACPI_SPMI_NOT_USED = 0,
984 ACPI_SPMI_KEYBOARD = 1,
986 ACPI_SPMI_BLOCK_TRANSFER = 3,
988 ACPI_SPMI_RESERVED = 5 /* 5 and above are reserved */
992 /*******************************************************************************
994 * TCPA - Trusted Computing Platform Alliance table
997 * Conforms to "TCG PC Specific Implementation Specification",
998 * Version 1.1, August 18, 2003
1000 ******************************************************************************/
1002 typedef struct acpi_table_tcpa
1004 ACPI_TABLE_HEADER Header; /* Common ACPI table header */
1006 UINT32 MaxLogLength; /* Maximum length for the event log area */
1007 UINT64 LogAddress; /* Address of the event log area */
1012 /*******************************************************************************
1014 * UEFI - UEFI Boot optimization Table
1017 * Conforms to "Unified Extensible Firmware Interface Specification",
1018 * Version 2.3, May 8, 2009
1020 ******************************************************************************/
1022 typedef struct acpi_table_uefi
1024 ACPI_TABLE_HEADER Header; /* Common ACPI table header */
1025 UINT8 Identifier[16]; /* UUID identifier */
1026 UINT16 DataOffset; /* Offset of remaining data in table */
1031 /*******************************************************************************
1033 * WAET - Windows ACPI Emulated devices Table
1036 * Conforms to "Windows ACPI Emulated Devices Table", version 1.0, April 6, 2009
1038 ******************************************************************************/
1040 typedef struct acpi_table_waet
1042 ACPI_TABLE_HEADER Header; /* Common ACPI table header */
1047 /* Masks for Flags field above */
1049 #define ACPI_WAET_RTC_NO_ACK (1) /* RTC requires no int acknowledge */
1050 #define ACPI_WAET_TIMER_ONE_READ (1<<1) /* PM timer requires only one read */
1053 /*******************************************************************************
1055 * WDAT - Watchdog Action Table
1058 * Conforms to "Hardware Watchdog Timers Design Specification",
1059 * Copyright 2006 Microsoft Corporation.
1061 ******************************************************************************/
1063 typedef struct acpi_table_wdat
1065 ACPI_TABLE_HEADER Header; /* Common ACPI table header */
1066 UINT32 HeaderLength; /* Watchdog Header Length */
1067 UINT16 PciSegment; /* PCI Segment number */
1068 UINT8 PciBus; /* PCI Bus number */
1069 UINT8 PciDevice; /* PCI Device number */
1070 UINT8 PciFunction; /* PCI Function number */
1072 UINT32 TimerPeriod; /* Period of one timer count (msec) */
1073 UINT32 MaxCount; /* Maximum counter value supported */
1074 UINT32 MinCount; /* Minimum counter value */
1077 UINT32 Entries; /* Number of watchdog entries that follow */
1081 /* Masks for Flags field above */
1083 #define ACPI_WDAT_ENABLED (1)
1084 #define ACPI_WDAT_STOPPED 0x80
1087 /* WDAT Instruction Entries (actions) */
1089 typedef struct acpi_wdat_entry
1094 ACPI_GENERIC_ADDRESS RegisterRegion;
1095 UINT32 Value; /* Value used with Read/Write register */
1096 UINT32 Mask; /* Bitmask required for this register instruction */
1100 /* Values for Action field above */
1102 enum AcpiWdatActions
1104 ACPI_WDAT_RESET = 1,
1105 ACPI_WDAT_GET_CURRENT_COUNTDOWN = 4,
1106 ACPI_WDAT_GET_COUNTDOWN = 5,
1107 ACPI_WDAT_SET_COUNTDOWN = 6,
1108 ACPI_WDAT_GET_RUNNING_STATE = 8,
1109 ACPI_WDAT_SET_RUNNING_STATE = 9,
1110 ACPI_WDAT_GET_STOPPED_STATE = 10,
1111 ACPI_WDAT_SET_STOPPED_STATE = 11,
1112 ACPI_WDAT_GET_REBOOT = 16,
1113 ACPI_WDAT_SET_REBOOT = 17,
1114 ACPI_WDAT_GET_SHUTDOWN = 18,
1115 ACPI_WDAT_SET_SHUTDOWN = 19,
1116 ACPI_WDAT_GET_STATUS = 32,
1117 ACPI_WDAT_SET_STATUS = 33,
1118 ACPI_WDAT_ACTION_RESERVED = 34 /* 34 and greater are reserved */
1121 /* Values for Instruction field above */
1123 enum AcpiWdatInstructions
1125 ACPI_WDAT_READ_VALUE = 0,
1126 ACPI_WDAT_READ_COUNTDOWN = 1,
1127 ACPI_WDAT_WRITE_VALUE = 2,
1128 ACPI_WDAT_WRITE_COUNTDOWN = 3,
1129 ACPI_WDAT_INSTRUCTION_RESERVED = 4, /* 4 and greater are reserved */
1130 ACPI_WDAT_PRESERVE_REGISTER = 0x80 /* Except for this value */
1134 /*******************************************************************************
1136 * WDDT - Watchdog Descriptor Table
1139 * Conforms to "Using the Intel ICH Family Watchdog Timer (WDT)",
1140 * Version 001, September 2002
1142 ******************************************************************************/
1144 typedef struct acpi_table_wddt
1146 ACPI_TABLE_HEADER Header; /* Common ACPI table header */
1148 UINT16 TableVersion;
1150 ACPI_GENERIC_ADDRESS Address;
1151 UINT16 MaxCount; /* Maximum counter value supported */
1152 UINT16 MinCount; /* Minimum counter value supported */
1159 /* Flags for Status field above */
1161 #define ACPI_WDDT_AVAILABLE (1)
1162 #define ACPI_WDDT_ACTIVE (1<<1)
1163 #define ACPI_WDDT_TCO_OS_OWNED (1<<2)
1164 #define ACPI_WDDT_USER_RESET (1<<11)
1165 #define ACPI_WDDT_WDT_RESET (1<<12)
1166 #define ACPI_WDDT_POWER_FAIL (1<<13)
1167 #define ACPI_WDDT_UNKNOWN_RESET (1<<14)
1169 /* Flags for Capability field above */
1171 #define ACPI_WDDT_AUTO_RESET (1)
1172 #define ACPI_WDDT_ALERT_SUPPORT (1<<1)
1175 /*******************************************************************************
1177 * WDRT - Watchdog Resource Table
1180 * Conforms to "Watchdog Timer Hardware Requirements for Windows Server 2003",
1181 * Version 1.01, August 28, 2006
1183 ******************************************************************************/
1185 typedef struct acpi_table_wdrt
1187 ACPI_TABLE_HEADER Header; /* Common ACPI table header */
1188 ACPI_GENERIC_ADDRESS ControlRegister;
1189 ACPI_GENERIC_ADDRESS CountRegister;
1192 UINT8 PciBus; /* PCI Bus number */
1193 UINT8 PciDevice; /* PCI Device number */
1194 UINT8 PciFunction; /* PCI Function number */
1195 UINT8 PciSegment; /* PCI Segment number */
1196 UINT16 MaxCount; /* Maximum counter value supported */
1202 /* Reset to default packing */
1206 #endif /* __ACTBL2_H__ */