10Sstevel@tonic-gate /****************************************************************************** 20Sstevel@tonic-gate * 32623Smyers * Name: actbl.h - Basic ACPI Table Definitions 4*7851SDana.Myers@Sun.COM * $Revision: 1.85 $ 50Sstevel@tonic-gate * 60Sstevel@tonic-gate *****************************************************************************/ 70Sstevel@tonic-gate 80Sstevel@tonic-gate /****************************************************************************** 90Sstevel@tonic-gate * 100Sstevel@tonic-gate * 1. Copyright Notice 110Sstevel@tonic-gate * 12*7851SDana.Myers@Sun.COM * Some or all of this work - Copyright (c) 1999 - 2008, Intel Corp. 130Sstevel@tonic-gate * All rights reserved. 140Sstevel@tonic-gate * 150Sstevel@tonic-gate * 2. License 160Sstevel@tonic-gate * 170Sstevel@tonic-gate * 2.1. This is your license from Intel Corp. under its intellectual property 180Sstevel@tonic-gate * rights. You may have additional license terms from the party that provided 190Sstevel@tonic-gate * you this software, covering your right to use that party's intellectual 200Sstevel@tonic-gate * property rights. 210Sstevel@tonic-gate * 220Sstevel@tonic-gate * 2.2. Intel grants, free of charge, to any person ("Licensee") obtaining a 230Sstevel@tonic-gate * copy of the source code appearing in this file ("Covered Code") an 240Sstevel@tonic-gate * irrevocable, perpetual, worldwide license under Intel's copyrights in the 250Sstevel@tonic-gate * base code distributed originally by Intel ("Original Intel Code") to copy, 260Sstevel@tonic-gate * make derivatives, distribute, use and display any portion of the Covered 270Sstevel@tonic-gate * Code in any form, with the right to sublicense such rights; and 280Sstevel@tonic-gate * 290Sstevel@tonic-gate * 2.3. Intel grants Licensee a non-exclusive and non-transferable patent 300Sstevel@tonic-gate * license (with the right to sublicense), under only those claims of Intel 310Sstevel@tonic-gate * patents that are infringed by the Original Intel Code, to make, use, sell, 320Sstevel@tonic-gate * offer to sell, and import the Covered Code and derivative works thereof 330Sstevel@tonic-gate * solely to the minimum extent necessary to exercise the above copyright 340Sstevel@tonic-gate * license, and in no event shall the patent license extend to any additions 350Sstevel@tonic-gate * to or modifications of the Original Intel Code. No other license or right 360Sstevel@tonic-gate * is granted directly or by implication, estoppel or otherwise; 370Sstevel@tonic-gate * 380Sstevel@tonic-gate * The above copyright and patent license is granted only if the following 390Sstevel@tonic-gate * conditions are met: 400Sstevel@tonic-gate * 410Sstevel@tonic-gate * 3. Conditions 420Sstevel@tonic-gate * 430Sstevel@tonic-gate * 3.1. Redistribution of Source with Rights to Further Distribute Source. 440Sstevel@tonic-gate * Redistribution of source code of any substantial portion of the Covered 450Sstevel@tonic-gate * Code or modification with rights to further distribute source must include 460Sstevel@tonic-gate * the above Copyright Notice, the above License, this list of Conditions, 470Sstevel@tonic-gate * and the following Disclaimer and Export Compliance provision. In addition, 480Sstevel@tonic-gate * Licensee must cause all Covered Code to which Licensee contributes to 490Sstevel@tonic-gate * contain a file documenting the changes Licensee made to create that Covered 500Sstevel@tonic-gate * Code and the date of any change. Licensee must include in that file the 510Sstevel@tonic-gate * documentation of any changes made by any predecessor Licensee. Licensee 520Sstevel@tonic-gate * must include a prominent statement that the modification is derived, 530Sstevel@tonic-gate * directly or indirectly, from Original Intel Code. 540Sstevel@tonic-gate * 550Sstevel@tonic-gate * 3.2. Redistribution of Source with no Rights to Further Distribute Source. 560Sstevel@tonic-gate * Redistribution of source code of any substantial portion of the Covered 570Sstevel@tonic-gate * Code or modification without rights to further distribute source must 580Sstevel@tonic-gate * include the following Disclaimer and Export Compliance provision in the 590Sstevel@tonic-gate * documentation and/or other materials provided with distribution. In 600Sstevel@tonic-gate * addition, Licensee may not authorize further sublicense of source of any 610Sstevel@tonic-gate * portion of the Covered Code, and must include terms to the effect that the 620Sstevel@tonic-gate * license from Licensee to its licensee is limited to the intellectual 630Sstevel@tonic-gate * property embodied in the software Licensee provides to its licensee, and 640Sstevel@tonic-gate * not to intellectual property embodied in modifications its licensee may 650Sstevel@tonic-gate * make. 660Sstevel@tonic-gate * 670Sstevel@tonic-gate * 3.3. Redistribution of Executable. Redistribution in executable form of any 680Sstevel@tonic-gate * substantial portion of the Covered Code or modification must reproduce the 690Sstevel@tonic-gate * above Copyright Notice, and the following Disclaimer and Export Compliance 700Sstevel@tonic-gate * provision in the documentation and/or other materials provided with the 710Sstevel@tonic-gate * distribution. 720Sstevel@tonic-gate * 730Sstevel@tonic-gate * 3.4. Intel retains all right, title, and interest in and to the Original 740Sstevel@tonic-gate * Intel Code. 750Sstevel@tonic-gate * 760Sstevel@tonic-gate * 3.5. Neither the name Intel nor any other trademark owned or controlled by 770Sstevel@tonic-gate * Intel shall be used in advertising or otherwise to promote the sale, use or 780Sstevel@tonic-gate * other dealings in products derived from or relating to the Covered Code 790Sstevel@tonic-gate * without prior written authorization from Intel. 800Sstevel@tonic-gate * 810Sstevel@tonic-gate * 4. Disclaimer and Export Compliance 820Sstevel@tonic-gate * 830Sstevel@tonic-gate * 4.1. INTEL MAKES NO WARRANTY OF ANY KIND REGARDING ANY SOFTWARE PROVIDED 840Sstevel@tonic-gate * HERE. ANY SOFTWARE ORIGINATING FROM INTEL OR DERIVED FROM INTEL SOFTWARE 850Sstevel@tonic-gate * IS PROVIDED "AS IS," AND INTEL WILL NOT PROVIDE ANY SUPPORT, ASSISTANCE, 860Sstevel@tonic-gate * INSTALLATION, TRAINING OR OTHER SERVICES. INTEL WILL NOT PROVIDE ANY 870Sstevel@tonic-gate * UPDATES, ENHANCEMENTS OR EXTENSIONS. INTEL SPECIFICALLY DISCLAIMS ANY 880Sstevel@tonic-gate * IMPLIED WARRANTIES OF MERCHANTABILITY, NONINFRINGEMENT AND FITNESS FOR A 890Sstevel@tonic-gate * PARTICULAR PURPOSE. 900Sstevel@tonic-gate * 910Sstevel@tonic-gate * 4.2. IN NO EVENT SHALL INTEL HAVE ANY LIABILITY TO LICENSEE, ITS LICENSEES 920Sstevel@tonic-gate * OR ANY OTHER THIRD PARTY, FOR ANY LOST PROFITS, LOST DATA, LOSS OF USE OR 930Sstevel@tonic-gate * COSTS OF PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES, OR FOR ANY INDIRECT, 940Sstevel@tonic-gate * SPECIAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THIS AGREEMENT, UNDER ANY 950Sstevel@tonic-gate * CAUSE OF ACTION OR THEORY OF LIABILITY, AND IRRESPECTIVE OF WHETHER INTEL 960Sstevel@tonic-gate * HAS ADVANCE NOTICE OF THE POSSIBILITY OF SUCH DAMAGES. THESE LIMITATIONS 970Sstevel@tonic-gate * SHALL APPLY NOTWITHSTANDING THE FAILURE OF THE ESSENTIAL PURPOSE OF ANY 980Sstevel@tonic-gate * LIMITED REMEDY. 990Sstevel@tonic-gate * 1000Sstevel@tonic-gate * 4.3. Licensee shall not export, either directly or indirectly, any of this 1010Sstevel@tonic-gate * software or system incorporating such software without first obtaining any 1020Sstevel@tonic-gate * required license or other approval from the U. S. Department of Commerce or 1030Sstevel@tonic-gate * any other agency or department of the United States Government. In the 1040Sstevel@tonic-gate * event Licensee exports any such software from the United States or 1050Sstevel@tonic-gate * re-exports any such software from a foreign destination, Licensee shall 1060Sstevel@tonic-gate * ensure that the distribution and export/re-export of the software is in 1070Sstevel@tonic-gate * compliance with all laws, regulations, orders, or other restrictions of the 1080Sstevel@tonic-gate * U.S. Export Administration Regulations. Licensee agrees that neither it nor 1090Sstevel@tonic-gate * any of its subsidiaries will export/re-export any technical data, process, 1100Sstevel@tonic-gate * software, or service, directly or indirectly, to any country for which the 1110Sstevel@tonic-gate * United States government or any agency thereof requires an export license, 1120Sstevel@tonic-gate * other governmental approval, or letter of assurance, without first obtaining 1130Sstevel@tonic-gate * such license, approval or letter. 1140Sstevel@tonic-gate * 1150Sstevel@tonic-gate *****************************************************************************/ 1160Sstevel@tonic-gate 1170Sstevel@tonic-gate #ifndef __ACTBL_H__ 1180Sstevel@tonic-gate #define __ACTBL_H__ 1190Sstevel@tonic-gate 1202623Smyers /* 1212623Smyers * Values for description table header signatures. Useful because they make 1222623Smyers * it more difficult to inadvertently type in the wrong signature. 1232623Smyers */ 124*7851SDana.Myers@Sun.COM #define ACPI_SIG_DSDT "DSDT" /* Differentiated System Description Table */ 125*7851SDana.Myers@Sun.COM #define ACPI_SIG_FADT "FACP" /* Fixed ACPI Description Table */ 126*7851SDana.Myers@Sun.COM #define ACPI_SIG_FACS "FACS" /* Firmware ACPI Control Structure */ 127*7851SDana.Myers@Sun.COM #define ACPI_SIG_PSDT "PSDT" /* Persistent System Description Table */ 128*7851SDana.Myers@Sun.COM #define ACPI_SIG_RSDP "RSD PTR " /* Root System Description Pointer */ 129*7851SDana.Myers@Sun.COM #define ACPI_SIG_RSDT "RSDT" /* Root System Description Table */ 130*7851SDana.Myers@Sun.COM #define ACPI_SIG_XSDT "XSDT" /* Extended System Description Table */ 131*7851SDana.Myers@Sun.COM #define ACPI_SIG_SSDT "SSDT" /* Secondary System Description Table */ 132*7851SDana.Myers@Sun.COM #define ACPI_RSDP_NAME "RSDP" /* Short name for RSDP, not signature */ 1332623Smyers 1340Sstevel@tonic-gate 1350Sstevel@tonic-gate /* 1362623Smyers * All tables and structures must be byte-packed to match the ACPI 1372623Smyers * specification, since the tables are provided by the system BIOS 1382623Smyers */ 1392623Smyers #pragma pack(1) 1402623Smyers 1412623Smyers 1422623Smyers /* 1432623Smyers * These are the ACPI tables that are directly consumed by the subsystem. 1442623Smyers * 1452623Smyers * The RSDP and FACS do not use the common ACPI table header. All other ACPI 1462623Smyers * tables use the header. 1472623Smyers * 1481560Smyers * Note about bitfields: The UINT8 type is used for bitfields in ACPI tables. 1491560Smyers * This is the only type that is even remotely portable. Anything else is not 1501560Smyers * portable, so do not use any other bitfield types. 1511560Smyers */ 1521560Smyers 1532623Smyers /******************************************************************************* 1542623Smyers * 1552623Smyers * ACPI Table Header. This common header is used by all tables except the 1562623Smyers * RSDP and FACS. The define is used for direct inclusion of header into 1572623Smyers * other ACPI tables 1582623Smyers * 1592623Smyers ******************************************************************************/ 1601560Smyers 1612623Smyers typedef struct acpi_table_header 1622623Smyers { 163*7851SDana.Myers@Sun.COM char Signature[ACPI_NAME_SIZE]; /* ASCII table signature */ 164*7851SDana.Myers@Sun.COM UINT32 Length; /* Length of table in bytes, including this header */ 165*7851SDana.Myers@Sun.COM UINT8 Revision; /* ACPI Specification minor version # */ 166*7851SDana.Myers@Sun.COM UINT8 Checksum; /* To make sum of entire table == 0 */ 167*7851SDana.Myers@Sun.COM char OemId[ACPI_OEM_ID_SIZE]; /* ASCII OEM identification */ 168*7851SDana.Myers@Sun.COM char OemTableId[ACPI_OEM_TABLE_ID_SIZE]; /* ASCII OEM table identification */ 169*7851SDana.Myers@Sun.COM UINT32 OemRevision; /* OEM revision number */ 170*7851SDana.Myers@Sun.COM char AslCompilerId[ACPI_NAME_SIZE]; /* ASCII ASL compiler vendor ID */ 171*7851SDana.Myers@Sun.COM UINT32 AslCompilerRevision; /* ASL compiler version */ 1720Sstevel@tonic-gate 1732623Smyers } ACPI_TABLE_HEADER; 1740Sstevel@tonic-gate 1750Sstevel@tonic-gate 1760Sstevel@tonic-gate /* 1772623Smyers * GAS - Generic Address Structure (ACPI 2.0+) 178*7851SDana.Myers@Sun.COM * 179*7851SDana.Myers@Sun.COM * Note: Since this structure is used in the ACPI tables, it is byte aligned. 180*7851SDana.Myers@Sun.COM * If misalignment is not supported, access to the Address field must be 181*7851SDana.Myers@Sun.COM * performed with care. 1820Sstevel@tonic-gate */ 1832623Smyers typedef struct acpi_generic_address 1842623Smyers { 185*7851SDana.Myers@Sun.COM UINT8 SpaceId; /* Address space where struct or register exists */ 186*7851SDana.Myers@Sun.COM UINT8 BitWidth; /* Size in bits of given register */ 187*7851SDana.Myers@Sun.COM UINT8 BitOffset; /* Bit offset within the register */ 1882623Smyers UINT8 AccessWidth; /* Minimum Access size (ACPI 3.0) */ 1892623Smyers UINT64 Address; /* 64-bit address of struct or register */ 1902623Smyers 1912623Smyers } ACPI_GENERIC_ADDRESS; 1920Sstevel@tonic-gate 1930Sstevel@tonic-gate 1942623Smyers /******************************************************************************* 1952623Smyers * 1962623Smyers * RSDP - Root System Description Pointer (Signature is "RSD PTR ") 1970Sstevel@tonic-gate * 1982623Smyers ******************************************************************************/ 1992623Smyers 200*7851SDana.Myers@Sun.COM typedef struct acpi_table_rsdp 2010Sstevel@tonic-gate { 202*7851SDana.Myers@Sun.COM char Signature[8]; /* ACPI signature, contains "RSD PTR " */ 203*7851SDana.Myers@Sun.COM UINT8 Checksum; /* ACPI 1.0 checksum */ 204*7851SDana.Myers@Sun.COM char OemId[ACPI_OEM_ID_SIZE]; /* OEM identification */ 205*7851SDana.Myers@Sun.COM UINT8 Revision; /* Must be (0) for ACPI 1.0 or (2) for ACPI 2.0+ */ 206*7851SDana.Myers@Sun.COM UINT32 RsdtPhysicalAddress; /* 32-bit physical address of the RSDT */ 207*7851SDana.Myers@Sun.COM UINT32 Length; /* Table length in bytes, including header (ACPI 2.0+) */ 208*7851SDana.Myers@Sun.COM UINT64 XsdtPhysicalAddress; /* 64-bit physical address of the XSDT (ACPI 2.0+) */ 209*7851SDana.Myers@Sun.COM UINT8 ExtendedChecksum; /* Checksum of entire table (ACPI 2.0+) */ 210*7851SDana.Myers@Sun.COM UINT8 Reserved[3]; /* Reserved, must be zero */ 2110Sstevel@tonic-gate 212*7851SDana.Myers@Sun.COM } ACPI_TABLE_RSDP; 2130Sstevel@tonic-gate 2142623Smyers #define ACPI_RSDP_REV0_SIZE 20 /* Size of original ACPI 1.0 RSDP */ 2150Sstevel@tonic-gate 2162623Smyers 2172623Smyers /******************************************************************************* 2182623Smyers * 2192623Smyers * RSDT/XSDT - Root System Description Tables 2202623Smyers * 2212623Smyers ******************************************************************************/ 2222623Smyers 223*7851SDana.Myers@Sun.COM typedef struct acpi_table_rsdt 2242623Smyers { 225*7851SDana.Myers@Sun.COM ACPI_TABLE_HEADER Header; /* Common ACPI table header */ 226*7851SDana.Myers@Sun.COM UINT32 TableOffsetEntry[1]; /* Array of pointers to ACPI tables */ 2272623Smyers 228*7851SDana.Myers@Sun.COM } ACPI_TABLE_RSDT; 2292623Smyers 230*7851SDana.Myers@Sun.COM typedef struct acpi_table_xsdt 2312623Smyers { 232*7851SDana.Myers@Sun.COM ACPI_TABLE_HEADER Header; /* Common ACPI table header */ 233*7851SDana.Myers@Sun.COM UINT64 TableOffsetEntry[1]; /* Array of pointers to ACPI tables */ 2342623Smyers 235*7851SDana.Myers@Sun.COM } ACPI_TABLE_XSDT; 2362623Smyers 2372623Smyers 2382623Smyers /******************************************************************************* 2392623Smyers * 2402623Smyers * FACS - Firmware ACPI Control Structure (FACS) 2412623Smyers * 2422623Smyers ******************************************************************************/ 2432623Smyers 244*7851SDana.Myers@Sun.COM typedef struct acpi_table_facs 2452623Smyers { 2462623Smyers char Signature[4]; /* ASCII table signature */ 2472623Smyers UINT32 Length; /* Length of structure, in bytes */ 2482623Smyers UINT32 HardwareSignature; /* Hardware configuration signature */ 2492623Smyers UINT32 FirmwareWakingVector; /* 32-bit physical address of the Firmware Waking Vector */ 2502623Smyers UINT32 GlobalLock; /* Global Lock for shared hardware resources */ 251*7851SDana.Myers@Sun.COM UINT32 Flags; 2522623Smyers UINT64 XFirmwareWakingVector; /* 64-bit version of the Firmware Waking Vector (ACPI 2.0+) */ 2532623Smyers UINT8 Version; /* Version of this table (ACPI 2.0+) */ 2542623Smyers UINT8 Reserved[31]; /* Reserved, must be zero */ 2552623Smyers 256*7851SDana.Myers@Sun.COM } ACPI_TABLE_FACS; 257*7851SDana.Myers@Sun.COM 258*7851SDana.Myers@Sun.COM /* Flag macros */ 259*7851SDana.Myers@Sun.COM 260*7851SDana.Myers@Sun.COM #define ACPI_FACS_S4_BIOS_PRESENT (1) /* 00: S4BIOS support is present */ 261*7851SDana.Myers@Sun.COM 262*7851SDana.Myers@Sun.COM /* Global lock flags */ 2632623Smyers 2642623Smyers #define ACPI_GLOCK_PENDING 0x01 /* 00: Pending global lock ownership */ 2652623Smyers #define ACPI_GLOCK_OWNED 0x02 /* 01: Global lock is owned */ 2662623Smyers 2672623Smyers 2682623Smyers /******************************************************************************* 2692623Smyers * 2702623Smyers * FADT - Fixed ACPI Description Table (Signature "FACP") 2712623Smyers * 2722623Smyers ******************************************************************************/ 2732623Smyers 2742623Smyers /* Fields common to all versions of the FADT */ 2750Sstevel@tonic-gate 276*7851SDana.Myers@Sun.COM typedef struct acpi_table_fadt 277*7851SDana.Myers@Sun.COM { 278*7851SDana.Myers@Sun.COM ACPI_TABLE_HEADER Header; /* Common ACPI table header */ 279*7851SDana.Myers@Sun.COM UINT32 Facs; /* 32-bit physical address of FACS */ 280*7851SDana.Myers@Sun.COM UINT32 Dsdt; /* 32-bit physical address of DSDT */ 281*7851SDana.Myers@Sun.COM UINT8 Model; /* System Interrupt Model (ACPI 1.0) - not used in ACPI 2.0+ */ 282*7851SDana.Myers@Sun.COM UINT8 PreferredProfile; /* Conveys preferred power management profile to OSPM. */ 283*7851SDana.Myers@Sun.COM UINT16 SciInterrupt; /* System vector of SCI interrupt */ 284*7851SDana.Myers@Sun.COM UINT32 SmiCommand; /* 32-bit Port address of SMI command port */ 285*7851SDana.Myers@Sun.COM UINT8 AcpiEnable; /* Value to write to smi_cmd to enable ACPI */ 286*7851SDana.Myers@Sun.COM UINT8 AcpiDisable; /* Value to write to smi_cmd to disable ACPI */ 287*7851SDana.Myers@Sun.COM UINT8 S4BiosRequest; /* Value to write to SMI CMD to enter S4BIOS state */ 288*7851SDana.Myers@Sun.COM UINT8 PstateControl; /* Processor performance state control*/ 289*7851SDana.Myers@Sun.COM UINT32 Pm1aEventBlock; /* 32-bit Port address of Power Mgt 1a Event Reg Blk */ 290*7851SDana.Myers@Sun.COM UINT32 Pm1bEventBlock; /* 32-bit Port address of Power Mgt 1b Event Reg Blk */ 291*7851SDana.Myers@Sun.COM UINT32 Pm1aControlBlock; /* 32-bit Port address of Power Mgt 1a Control Reg Blk */ 292*7851SDana.Myers@Sun.COM UINT32 Pm1bControlBlock; /* 32-bit Port address of Power Mgt 1b Control Reg Blk */ 293*7851SDana.Myers@Sun.COM UINT32 Pm2ControlBlock; /* 32-bit Port address of Power Mgt 2 Control Reg Blk */ 294*7851SDana.Myers@Sun.COM UINT32 PmTimerBlock; /* 32-bit Port address of Power Mgt Timer Ctrl Reg Blk */ 295*7851SDana.Myers@Sun.COM UINT32 Gpe0Block; /* 32-bit Port address of General Purpose Event 0 Reg Blk */ 296*7851SDana.Myers@Sun.COM UINT32 Gpe1Block; /* 32-bit Port address of General Purpose Event 1 Reg Blk */ 297*7851SDana.Myers@Sun.COM UINT8 Pm1EventLength; /* Byte Length of ports at Pm1xEventBlock */ 298*7851SDana.Myers@Sun.COM UINT8 Pm1ControlLength; /* Byte Length of ports at Pm1xControlBlock */ 299*7851SDana.Myers@Sun.COM UINT8 Pm2ControlLength; /* Byte Length of ports at Pm2ControlBlock */ 300*7851SDana.Myers@Sun.COM UINT8 PmTimerLength; /* Byte Length of ports at PmTimerBlock */ 301*7851SDana.Myers@Sun.COM UINT8 Gpe0BlockLength; /* Byte Length of ports at Gpe0Block */ 302*7851SDana.Myers@Sun.COM UINT8 Gpe1BlockLength; /* Byte Length of ports at Gpe1Block */ 303*7851SDana.Myers@Sun.COM UINT8 Gpe1Base; /* Offset in GPE number space where GPE1 events start */ 304*7851SDana.Myers@Sun.COM UINT8 CstControl; /* Support for the _CST object and C States change notification */ 305*7851SDana.Myers@Sun.COM UINT16 C2Latency; /* Worst case HW latency to enter/exit C2 state */ 306*7851SDana.Myers@Sun.COM UINT16 C3Latency; /* Worst case HW latency to enter/exit C3 state */ 307*7851SDana.Myers@Sun.COM UINT16 FlushSize; /* Processor's memory cache line width, in bytes */ 308*7851SDana.Myers@Sun.COM UINT16 FlushStride; /* Number of flush strides that need to be read */ 309*7851SDana.Myers@Sun.COM UINT8 DutyOffset; /* Processor duty cycle index in processor's P_CNT reg*/ 310*7851SDana.Myers@Sun.COM UINT8 DutyWidth; /* Processor duty cycle value bit width in P_CNT register.*/ 311*7851SDana.Myers@Sun.COM UINT8 DayAlarm; /* Index to day-of-month alarm in RTC CMOS RAM */ 312*7851SDana.Myers@Sun.COM UINT8 MonthAlarm; /* Index to month-of-year alarm in RTC CMOS RAM */ 313*7851SDana.Myers@Sun.COM UINT8 Century; /* Index to century in RTC CMOS RAM */ 314*7851SDana.Myers@Sun.COM UINT16 BootFlags; /* IA-PC Boot Architecture Flags. See Table 5-10 for description */ 315*7851SDana.Myers@Sun.COM UINT8 Reserved; /* Reserved, must be zero */ 316*7851SDana.Myers@Sun.COM UINT32 Flags; /* Miscellaneous flag bits (see below for individual flags) */ 317*7851SDana.Myers@Sun.COM ACPI_GENERIC_ADDRESS ResetRegister; /* 64-bit address of the Reset register */ 318*7851SDana.Myers@Sun.COM UINT8 ResetValue; /* Value to write to the ResetRegister port to reset the system */ 319*7851SDana.Myers@Sun.COM UINT8 Reserved4[3]; /* Reserved, must be zero */ 320*7851SDana.Myers@Sun.COM UINT64 XFacs; /* 64-bit physical address of FACS */ 321*7851SDana.Myers@Sun.COM UINT64 XDsdt; /* 64-bit physical address of DSDT */ 322*7851SDana.Myers@Sun.COM ACPI_GENERIC_ADDRESS XPm1aEventBlock; /* 64-bit Extended Power Mgt 1a Event Reg Blk address */ 323*7851SDana.Myers@Sun.COM ACPI_GENERIC_ADDRESS XPm1bEventBlock; /* 64-bit Extended Power Mgt 1b Event Reg Blk address */ 324*7851SDana.Myers@Sun.COM ACPI_GENERIC_ADDRESS XPm1aControlBlock; /* 64-bit Extended Power Mgt 1a Control Reg Blk address */ 325*7851SDana.Myers@Sun.COM ACPI_GENERIC_ADDRESS XPm1bControlBlock; /* 64-bit Extended Power Mgt 1b Control Reg Blk address */ 326*7851SDana.Myers@Sun.COM ACPI_GENERIC_ADDRESS XPm2ControlBlock; /* 64-bit Extended Power Mgt 2 Control Reg Blk address */ 327*7851SDana.Myers@Sun.COM ACPI_GENERIC_ADDRESS XPmTimerBlock; /* 64-bit Extended Power Mgt Timer Ctrl Reg Blk address */ 328*7851SDana.Myers@Sun.COM ACPI_GENERIC_ADDRESS XGpe0Block; /* 64-bit Extended General Purpose Event 0 Reg Blk address */ 329*7851SDana.Myers@Sun.COM ACPI_GENERIC_ADDRESS XGpe1Block; /* 64-bit Extended General Purpose Event 1 Reg Blk address */ 330*7851SDana.Myers@Sun.COM 331*7851SDana.Myers@Sun.COM } ACPI_TABLE_FADT; 332*7851SDana.Myers@Sun.COM 333*7851SDana.Myers@Sun.COM 334*7851SDana.Myers@Sun.COM /* FADT flags */ 335*7851SDana.Myers@Sun.COM 336*7851SDana.Myers@Sun.COM #define ACPI_FADT_WBINVD (1) /* 00: The wbinvd instruction works properly */ 337*7851SDana.Myers@Sun.COM #define ACPI_FADT_WBINVD_FLUSH (1<<1) /* 01: The wbinvd flushes but does not invalidate */ 338*7851SDana.Myers@Sun.COM #define ACPI_FADT_C1_SUPPORTED (1<<2) /* 02: All processors support C1 state */ 339*7851SDana.Myers@Sun.COM #define ACPI_FADT_C2_MP_SUPPORTED (1<<3) /* 03: C2 state works on MP system */ 340*7851SDana.Myers@Sun.COM #define ACPI_FADT_POWER_BUTTON (1<<4) /* 04: Power button is handled as a generic feature */ 341*7851SDana.Myers@Sun.COM #define ACPI_FADT_SLEEP_BUTTON (1<<5) /* 05: Sleep button is handled as a generic feature, or not present */ 342*7851SDana.Myers@Sun.COM #define ACPI_FADT_FIXED_RTC (1<<6) /* 06: RTC wakeup stat not in fixed register space */ 343*7851SDana.Myers@Sun.COM #define ACPI_FADT_S4_RTC_WAKE (1<<7) /* 07: RTC wakeup stat not possible from S4 */ 344*7851SDana.Myers@Sun.COM #define ACPI_FADT_32BIT_TIMER (1<<8) /* 08: tmr_val is 32 bits 0=24-bits */ 345*7851SDana.Myers@Sun.COM #define ACPI_FADT_DOCKING_SUPPORTED (1<<9) /* 09: Docking supported */ 346*7851SDana.Myers@Sun.COM #define ACPI_FADT_RESET_REGISTER (1<<10) /* 10: System reset via the FADT RESET_REG supported */ 347*7851SDana.Myers@Sun.COM #define ACPI_FADT_SEALED_CASE (1<<11) /* 11: No internal expansion capabilities and case is sealed */ 348*7851SDana.Myers@Sun.COM #define ACPI_FADT_HEADLESS (1<<12) /* 12: No local video capabilities or local input devices */ 349*7851SDana.Myers@Sun.COM #define ACPI_FADT_SLEEP_TYPE (1<<13) /* 13: Must execute native instruction after writing SLP_TYPx register */ 350*7851SDana.Myers@Sun.COM #define ACPI_FADT_PCI_EXPRESS_WAKE (1<<14) /* 14: System supports PCIEXP_WAKE (STS/EN) bits (ACPI 3.0) */ 351*7851SDana.Myers@Sun.COM #define ACPI_FADT_PLATFORM_CLOCK (1<<15) /* 15: OSPM should use platform-provided timer (ACPI 3.0) */ 352*7851SDana.Myers@Sun.COM #define ACPI_FADT_S4_RTC_VALID (1<<16) /* 16: Contents of RTC_STS valid after S4 wake (ACPI 3.0) */ 353*7851SDana.Myers@Sun.COM #define ACPI_FADT_REMOTE_POWER_ON (1<<17) /* 17: System is compatible with remote power on (ACPI 3.0) */ 354*7851SDana.Myers@Sun.COM #define ACPI_FADT_APIC_CLUSTER (1<<18) /* 18: All local APICs must use cluster model (ACPI 3.0) */ 355*7851SDana.Myers@Sun.COM #define ACPI_FADT_APIC_PHYSICAL (1<<19) /* 19: All local xAPICs must use physical dest mode (ACPI 3.0) */ 3560Sstevel@tonic-gate 3570Sstevel@tonic-gate 3580Sstevel@tonic-gate /* 359*7851SDana.Myers@Sun.COM * FADT Prefered Power Management Profiles 3600Sstevel@tonic-gate */ 361*7851SDana.Myers@Sun.COM enum AcpiPreferedPmProfiles 3620Sstevel@tonic-gate { 363*7851SDana.Myers@Sun.COM PM_UNSPECIFIED = 0, 364*7851SDana.Myers@Sun.COM PM_DESKTOP = 1, 365*7851SDana.Myers@Sun.COM PM_MOBILE = 2, 366*7851SDana.Myers@Sun.COM PM_WORKSTATION = 3, 367*7851SDana.Myers@Sun.COM PM_ENTERPRISE_SERVER = 4, 368*7851SDana.Myers@Sun.COM PM_SOHO_SERVER = 5, 369*7851SDana.Myers@Sun.COM PM_APPLIANCE_PC = 6 370*7851SDana.Myers@Sun.COM }; 3710Sstevel@tonic-gate 3720Sstevel@tonic-gate 373*7851SDana.Myers@Sun.COM /* FADT Boot Arch Flags */ 3742623Smyers 3752623Smyers #define BAF_LEGACY_DEVICES 0x0001 3762623Smyers #define BAF_8042_KEYBOARD_CONTROLLER 0x0002 3772623Smyers 3782623Smyers #define FADT2_REVISION_ID 3 3792623Smyers #define FADT2_MINUS_REVISION_ID 2 3802623Smyers 3812623Smyers 3822623Smyers /* Reset to default packing */ 3830Sstevel@tonic-gate 3840Sstevel@tonic-gate #pragma pack() 3850Sstevel@tonic-gate 3862623Smyers /* 3872623Smyers * Get the remaining ACPI tables 3882623Smyers */ 3892623Smyers #include "actbl1.h" 3900Sstevel@tonic-gate 3912623Smyers /* Macros used to generate offsets to specific table fields */ 3920Sstevel@tonic-gate 393*7851SDana.Myers@Sun.COM #define ACPI_FADT_OFFSET(f) (UINT8) ACPI_OFFSET (ACPI_TABLE_FADT, f) 3940Sstevel@tonic-gate 3950Sstevel@tonic-gate #endif /* __ACTBL_H__ */ 396