xref: /onnv-gate/usr/src/uts/intel/sys/acpi/actbl.h (revision 11225:eb6056029d84)
10Sstevel@tonic-gate /******************************************************************************
20Sstevel@tonic-gate  *
32623Smyers  * Name: actbl.h - Basic ACPI Table Definitions
40Sstevel@tonic-gate  *
50Sstevel@tonic-gate  *****************************************************************************/
60Sstevel@tonic-gate 
70Sstevel@tonic-gate /******************************************************************************
80Sstevel@tonic-gate  *
90Sstevel@tonic-gate  * 1. Copyright Notice
100Sstevel@tonic-gate  *
119980SDana.Myers@Sun.COM  * Some or all of this work - Copyright (c) 1999 - 2009, Intel Corp.
120Sstevel@tonic-gate  * All rights reserved.
130Sstevel@tonic-gate  *
140Sstevel@tonic-gate  * 2. License
150Sstevel@tonic-gate  *
160Sstevel@tonic-gate  * 2.1. This is your license from Intel Corp. under its intellectual property
170Sstevel@tonic-gate  * rights.  You may have additional license terms from the party that provided
180Sstevel@tonic-gate  * you this software, covering your right to use that party's intellectual
190Sstevel@tonic-gate  * property rights.
200Sstevel@tonic-gate  *
210Sstevel@tonic-gate  * 2.2. Intel grants, free of charge, to any person ("Licensee") obtaining a
220Sstevel@tonic-gate  * copy of the source code appearing in this file ("Covered Code") an
230Sstevel@tonic-gate  * irrevocable, perpetual, worldwide license under Intel's copyrights in the
240Sstevel@tonic-gate  * base code distributed originally by Intel ("Original Intel Code") to copy,
250Sstevel@tonic-gate  * make derivatives, distribute, use and display any portion of the Covered
260Sstevel@tonic-gate  * Code in any form, with the right to sublicense such rights; and
270Sstevel@tonic-gate  *
280Sstevel@tonic-gate  * 2.3. Intel grants Licensee a non-exclusive and non-transferable patent
290Sstevel@tonic-gate  * license (with the right to sublicense), under only those claims of Intel
300Sstevel@tonic-gate  * patents that are infringed by the Original Intel Code, to make, use, sell,
310Sstevel@tonic-gate  * offer to sell, and import the Covered Code and derivative works thereof
320Sstevel@tonic-gate  * solely to the minimum extent necessary to exercise the above copyright
330Sstevel@tonic-gate  * license, and in no event shall the patent license extend to any additions
340Sstevel@tonic-gate  * to or modifications of the Original Intel Code.  No other license or right
350Sstevel@tonic-gate  * is granted directly or by implication, estoppel or otherwise;
360Sstevel@tonic-gate  *
370Sstevel@tonic-gate  * The above copyright and patent license is granted only if the following
380Sstevel@tonic-gate  * conditions are met:
390Sstevel@tonic-gate  *
400Sstevel@tonic-gate  * 3. Conditions
410Sstevel@tonic-gate  *
420Sstevel@tonic-gate  * 3.1. Redistribution of Source with Rights to Further Distribute Source.
430Sstevel@tonic-gate  * Redistribution of source code of any substantial portion of the Covered
440Sstevel@tonic-gate  * Code or modification with rights to further distribute source must include
450Sstevel@tonic-gate  * the above Copyright Notice, the above License, this list of Conditions,
460Sstevel@tonic-gate  * and the following Disclaimer and Export Compliance provision.  In addition,
470Sstevel@tonic-gate  * Licensee must cause all Covered Code to which Licensee contributes to
480Sstevel@tonic-gate  * contain a file documenting the changes Licensee made to create that Covered
490Sstevel@tonic-gate  * Code and the date of any change.  Licensee must include in that file the
500Sstevel@tonic-gate  * documentation of any changes made by any predecessor Licensee.  Licensee
510Sstevel@tonic-gate  * must include a prominent statement that the modification is derived,
520Sstevel@tonic-gate  * directly or indirectly, from Original Intel Code.
530Sstevel@tonic-gate  *
540Sstevel@tonic-gate  * 3.2. Redistribution of Source with no Rights to Further Distribute Source.
550Sstevel@tonic-gate  * Redistribution of source code of any substantial portion of the Covered
560Sstevel@tonic-gate  * Code or modification without rights to further distribute source must
570Sstevel@tonic-gate  * include the following Disclaimer and Export Compliance provision in the
580Sstevel@tonic-gate  * documentation and/or other materials provided with distribution.  In
590Sstevel@tonic-gate  * addition, Licensee may not authorize further sublicense of source of any
600Sstevel@tonic-gate  * portion of the Covered Code, and must include terms to the effect that the
610Sstevel@tonic-gate  * license from Licensee to its licensee is limited to the intellectual
620Sstevel@tonic-gate  * property embodied in the software Licensee provides to its licensee, and
630Sstevel@tonic-gate  * not to intellectual property embodied in modifications its licensee may
640Sstevel@tonic-gate  * make.
650Sstevel@tonic-gate  *
660Sstevel@tonic-gate  * 3.3. Redistribution of Executable. Redistribution in executable form of any
670Sstevel@tonic-gate  * substantial portion of the Covered Code or modification must reproduce the
680Sstevel@tonic-gate  * above Copyright Notice, and the following Disclaimer and Export Compliance
690Sstevel@tonic-gate  * provision in the documentation and/or other materials provided with the
700Sstevel@tonic-gate  * distribution.
710Sstevel@tonic-gate  *
720Sstevel@tonic-gate  * 3.4. Intel retains all right, title, and interest in and to the Original
730Sstevel@tonic-gate  * Intel Code.
740Sstevel@tonic-gate  *
750Sstevel@tonic-gate  * 3.5. Neither the name Intel nor any other trademark owned or controlled by
760Sstevel@tonic-gate  * Intel shall be used in advertising or otherwise to promote the sale, use or
770Sstevel@tonic-gate  * other dealings in products derived from or relating to the Covered Code
780Sstevel@tonic-gate  * without prior written authorization from Intel.
790Sstevel@tonic-gate  *
800Sstevel@tonic-gate  * 4. Disclaimer and Export Compliance
810Sstevel@tonic-gate  *
820Sstevel@tonic-gate  * 4.1. INTEL MAKES NO WARRANTY OF ANY KIND REGARDING ANY SOFTWARE PROVIDED
830Sstevel@tonic-gate  * HERE.  ANY SOFTWARE ORIGINATING FROM INTEL OR DERIVED FROM INTEL SOFTWARE
840Sstevel@tonic-gate  * IS PROVIDED "AS IS," AND INTEL WILL NOT PROVIDE ANY SUPPORT,  ASSISTANCE,
850Sstevel@tonic-gate  * INSTALLATION, TRAINING OR OTHER SERVICES.  INTEL WILL NOT PROVIDE ANY
860Sstevel@tonic-gate  * UPDATES, ENHANCEMENTS OR EXTENSIONS.  INTEL SPECIFICALLY DISCLAIMS ANY
870Sstevel@tonic-gate  * IMPLIED WARRANTIES OF MERCHANTABILITY, NONINFRINGEMENT AND FITNESS FOR A
880Sstevel@tonic-gate  * PARTICULAR PURPOSE.
890Sstevel@tonic-gate  *
900Sstevel@tonic-gate  * 4.2. IN NO EVENT SHALL INTEL HAVE ANY LIABILITY TO LICENSEE, ITS LICENSEES
910Sstevel@tonic-gate  * OR ANY OTHER THIRD PARTY, FOR ANY LOST PROFITS, LOST DATA, LOSS OF USE OR
920Sstevel@tonic-gate  * COSTS OF PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES, OR FOR ANY INDIRECT,
930Sstevel@tonic-gate  * SPECIAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THIS AGREEMENT, UNDER ANY
940Sstevel@tonic-gate  * CAUSE OF ACTION OR THEORY OF LIABILITY, AND IRRESPECTIVE OF WHETHER INTEL
950Sstevel@tonic-gate  * HAS ADVANCE NOTICE OF THE POSSIBILITY OF SUCH DAMAGES.  THESE LIMITATIONS
960Sstevel@tonic-gate  * SHALL APPLY NOTWITHSTANDING THE FAILURE OF THE ESSENTIAL PURPOSE OF ANY
970Sstevel@tonic-gate  * LIMITED REMEDY.
980Sstevel@tonic-gate  *
990Sstevel@tonic-gate  * 4.3. Licensee shall not export, either directly or indirectly, any of this
1000Sstevel@tonic-gate  * software or system incorporating such software without first obtaining any
1010Sstevel@tonic-gate  * required license or other approval from the U. S. Department of Commerce or
1020Sstevel@tonic-gate  * any other agency or department of the United States Government.  In the
1030Sstevel@tonic-gate  * event Licensee exports any such software from the United States or
1040Sstevel@tonic-gate  * re-exports any such software from a foreign destination, Licensee shall
1050Sstevel@tonic-gate  * ensure that the distribution and export/re-export of the software is in
1060Sstevel@tonic-gate  * compliance with all laws, regulations, orders, or other restrictions of the
1070Sstevel@tonic-gate  * U.S. Export Administration Regulations. Licensee agrees that neither it nor
1080Sstevel@tonic-gate  * any of its subsidiaries will export/re-export any technical data, process,
1090Sstevel@tonic-gate  * software, or service, directly or indirectly, to any country for which the
1100Sstevel@tonic-gate  * United States government or any agency thereof requires an export license,
1110Sstevel@tonic-gate  * other governmental approval, or letter of assurance, without first obtaining
1120Sstevel@tonic-gate  * such license, approval or letter.
1130Sstevel@tonic-gate  *
1140Sstevel@tonic-gate  *****************************************************************************/
1150Sstevel@tonic-gate 
1160Sstevel@tonic-gate #ifndef __ACTBL_H__
1170Sstevel@tonic-gate #define __ACTBL_H__
1180Sstevel@tonic-gate 
119*11225SDana.Myers@Sun.COM 
120*11225SDana.Myers@Sun.COM /*******************************************************************************
121*11225SDana.Myers@Sun.COM  *
122*11225SDana.Myers@Sun.COM  * Fundamental ACPI tables
123*11225SDana.Myers@Sun.COM  *
124*11225SDana.Myers@Sun.COM  * This file contains definitions for the ACPI tables that are directly consumed
125*11225SDana.Myers@Sun.COM  * by ACPICA. All other tables are consumed by the OS-dependent ACPI-related
126*11225SDana.Myers@Sun.COM  * device drivers and other OS support code.
127*11225SDana.Myers@Sun.COM  *
128*11225SDana.Myers@Sun.COM  * The RSDP and FACS do not use the common ACPI table header. All other ACPI
129*11225SDana.Myers@Sun.COM  * tables use the header.
130*11225SDana.Myers@Sun.COM  *
131*11225SDana.Myers@Sun.COM  ******************************************************************************/
132*11225SDana.Myers@Sun.COM 
133*11225SDana.Myers@Sun.COM 
1342623Smyers /*
135*11225SDana.Myers@Sun.COM  * Values for description table header signatures for tables defined in this
136*11225SDana.Myers@Sun.COM  * file. Useful because they make it more difficult to inadvertently type in
137*11225SDana.Myers@Sun.COM  * the wrong signature.
1382623Smyers  */
1397851SDana.Myers@Sun.COM #define ACPI_SIG_DSDT           "DSDT"      /* Differentiated System Description Table */
1407851SDana.Myers@Sun.COM #define ACPI_SIG_FADT           "FACP"      /* Fixed ACPI Description Table */
1417851SDana.Myers@Sun.COM #define ACPI_SIG_FACS           "FACS"      /* Firmware ACPI Control Structure */
1427851SDana.Myers@Sun.COM #define ACPI_SIG_PSDT           "PSDT"      /* Persistent System Description Table */
1437851SDana.Myers@Sun.COM #define ACPI_SIG_RSDP           "RSD PTR "  /* Root System Description Pointer */
1447851SDana.Myers@Sun.COM #define ACPI_SIG_RSDT           "RSDT"      /* Root System Description Table */
1457851SDana.Myers@Sun.COM #define ACPI_SIG_XSDT           "XSDT"      /* Extended  System Description Table */
1467851SDana.Myers@Sun.COM #define ACPI_SIG_SSDT           "SSDT"      /* Secondary System Description Table */
1477851SDana.Myers@Sun.COM #define ACPI_RSDP_NAME          "RSDP"      /* Short name for RSDP, not signature */
1482623Smyers 
1490Sstevel@tonic-gate 
1500Sstevel@tonic-gate /*
1512623Smyers  * All tables and structures must be byte-packed to match the ACPI
1522623Smyers  * specification, since the tables are provided by the system BIOS
1532623Smyers  */
1542623Smyers #pragma pack(1)
1552623Smyers 
1562623Smyers /*
1571560Smyers  * Note about bitfields: The UINT8 type is used for bitfields in ACPI tables.
1581560Smyers  * This is the only type that is even remotely portable. Anything else is not
1591560Smyers  * portable, so do not use any other bitfield types.
1601560Smyers  */
1611560Smyers 
162*11225SDana.Myers@Sun.COM 
1632623Smyers /*******************************************************************************
1642623Smyers  *
165*11225SDana.Myers@Sun.COM  * Master ACPI Table Header. This common header is used by all ACPI tables
166*11225SDana.Myers@Sun.COM  * except the RSDP and FACS.
1672623Smyers  *
1682623Smyers  ******************************************************************************/
1691560Smyers 
1702623Smyers typedef struct acpi_table_header
1712623Smyers {
1727851SDana.Myers@Sun.COM     char                    Signature[ACPI_NAME_SIZE];          /* ASCII table signature */
1737851SDana.Myers@Sun.COM     UINT32                  Length;                             /* Length of table in bytes, including this header */
1747851SDana.Myers@Sun.COM     UINT8                   Revision;                           /* ACPI Specification minor version # */
1757851SDana.Myers@Sun.COM     UINT8                   Checksum;                           /* To make sum of entire table == 0 */
1767851SDana.Myers@Sun.COM     char                    OemId[ACPI_OEM_ID_SIZE];            /* ASCII OEM identification */
1777851SDana.Myers@Sun.COM     char                    OemTableId[ACPI_OEM_TABLE_ID_SIZE]; /* ASCII OEM table identification */
1787851SDana.Myers@Sun.COM     UINT32                  OemRevision;                        /* OEM revision number */
1797851SDana.Myers@Sun.COM     char                    AslCompilerId[ACPI_NAME_SIZE];      /* ASCII ASL compiler vendor ID */
1807851SDana.Myers@Sun.COM     UINT32                  AslCompilerRevision;                /* ASL compiler version */
1810Sstevel@tonic-gate 
1822623Smyers } ACPI_TABLE_HEADER;
1830Sstevel@tonic-gate 
1840Sstevel@tonic-gate 
185*11225SDana.Myers@Sun.COM /*******************************************************************************
186*11225SDana.Myers@Sun.COM  *
1872623Smyers  * GAS - Generic Address Structure (ACPI 2.0+)
1887851SDana.Myers@Sun.COM  *
1897851SDana.Myers@Sun.COM  * Note: Since this structure is used in the ACPI tables, it is byte aligned.
190*11225SDana.Myers@Sun.COM  * If misaliged access is not supported by the hardware, accesses to the
191*11225SDana.Myers@Sun.COM  * 64-bit Address field must be performed with care.
192*11225SDana.Myers@Sun.COM  *
193*11225SDana.Myers@Sun.COM  ******************************************************************************/
194*11225SDana.Myers@Sun.COM 
1952623Smyers typedef struct acpi_generic_address
1962623Smyers {
1977851SDana.Myers@Sun.COM     UINT8                   SpaceId;                /* Address space where struct or register exists */
1987851SDana.Myers@Sun.COM     UINT8                   BitWidth;               /* Size in bits of given register */
1997851SDana.Myers@Sun.COM     UINT8                   BitOffset;              /* Bit offset within the register */
2002623Smyers     UINT8                   AccessWidth;            /* Minimum Access size (ACPI 3.0) */
2012623Smyers     UINT64                  Address;                /* 64-bit address of struct or register */
2022623Smyers 
2032623Smyers } ACPI_GENERIC_ADDRESS;
2040Sstevel@tonic-gate 
2050Sstevel@tonic-gate 
2062623Smyers /*******************************************************************************
2072623Smyers  *
2082623Smyers  * RSDP - Root System Description Pointer (Signature is "RSD PTR ")
209*11225SDana.Myers@Sun.COM  *        Version 2
2100Sstevel@tonic-gate  *
2112623Smyers  ******************************************************************************/
2122623Smyers 
2137851SDana.Myers@Sun.COM typedef struct acpi_table_rsdp
2140Sstevel@tonic-gate {
2157851SDana.Myers@Sun.COM     char                    Signature[8];               /* ACPI signature, contains "RSD PTR " */
2167851SDana.Myers@Sun.COM     UINT8                   Checksum;                   /* ACPI 1.0 checksum */
2177851SDana.Myers@Sun.COM     char                    OemId[ACPI_OEM_ID_SIZE];    /* OEM identification */
2187851SDana.Myers@Sun.COM     UINT8                   Revision;                   /* Must be (0) for ACPI 1.0 or (2) for ACPI 2.0+ */
2197851SDana.Myers@Sun.COM     UINT32                  RsdtPhysicalAddress;        /* 32-bit physical address of the RSDT */
2207851SDana.Myers@Sun.COM     UINT32                  Length;                     /* Table length in bytes, including header (ACPI 2.0+) */
2217851SDana.Myers@Sun.COM     UINT64                  XsdtPhysicalAddress;        /* 64-bit physical address of the XSDT (ACPI 2.0+) */
2227851SDana.Myers@Sun.COM     UINT8                   ExtendedChecksum;           /* Checksum of entire table (ACPI 2.0+) */
2237851SDana.Myers@Sun.COM     UINT8                   Reserved[3];                /* Reserved, must be zero */
2240Sstevel@tonic-gate 
2257851SDana.Myers@Sun.COM } ACPI_TABLE_RSDP;
2260Sstevel@tonic-gate 
2272623Smyers #define ACPI_RSDP_REV0_SIZE     20                  /* Size of original ACPI 1.0 RSDP */
2280Sstevel@tonic-gate 
2292623Smyers 
2302623Smyers /*******************************************************************************
2312623Smyers  *
2322623Smyers  * RSDT/XSDT - Root System Description Tables
233*11225SDana.Myers@Sun.COM  *             Version 1 (both)
2342623Smyers  *
2352623Smyers  ******************************************************************************/
2362623Smyers 
2377851SDana.Myers@Sun.COM typedef struct acpi_table_rsdt
2382623Smyers {
2397851SDana.Myers@Sun.COM     ACPI_TABLE_HEADER       Header;                 /* Common ACPI table header */
2407851SDana.Myers@Sun.COM     UINT32                  TableOffsetEntry[1];    /* Array of pointers to ACPI tables */
2412623Smyers 
2427851SDana.Myers@Sun.COM } ACPI_TABLE_RSDT;
2432623Smyers 
2447851SDana.Myers@Sun.COM typedef struct acpi_table_xsdt
2452623Smyers {
2467851SDana.Myers@Sun.COM     ACPI_TABLE_HEADER       Header;                 /* Common ACPI table header */
2477851SDana.Myers@Sun.COM     UINT64                  TableOffsetEntry[1];    /* Array of pointers to ACPI tables */
2482623Smyers 
2497851SDana.Myers@Sun.COM } ACPI_TABLE_XSDT;
2502623Smyers 
2512623Smyers 
2522623Smyers /*******************************************************************************
2532623Smyers  *
2542623Smyers  * FACS - Firmware ACPI Control Structure (FACS)
2552623Smyers  *
2562623Smyers  ******************************************************************************/
2572623Smyers 
2587851SDana.Myers@Sun.COM typedef struct acpi_table_facs
2592623Smyers {
2602623Smyers     char                    Signature[4];           /* ASCII table signature */
2612623Smyers     UINT32                  Length;                 /* Length of structure, in bytes */
2622623Smyers     UINT32                  HardwareSignature;      /* Hardware configuration signature */
2632623Smyers     UINT32                  FirmwareWakingVector;   /* 32-bit physical address of the Firmware Waking Vector */
2642623Smyers     UINT32                  GlobalLock;             /* Global Lock for shared hardware resources */
2657851SDana.Myers@Sun.COM     UINT32                  Flags;
2662623Smyers     UINT64                  XFirmwareWakingVector;  /* 64-bit version of the Firmware Waking Vector (ACPI 2.0+) */
2672623Smyers     UINT8                   Version;                /* Version of this table (ACPI 2.0+) */
268*11225SDana.Myers@Sun.COM     UINT8                   Reserved[3];            /* Reserved, must be zero */
269*11225SDana.Myers@Sun.COM     UINT32                  OspmFlags;              /* Flags to be set by OSPM (ACPI 4.0) */
270*11225SDana.Myers@Sun.COM     UINT8                   Reserved1[24];          /* Reserved, must be zero */
2712623Smyers 
2727851SDana.Myers@Sun.COM } ACPI_TABLE_FACS;
2737851SDana.Myers@Sun.COM 
274*11225SDana.Myers@Sun.COM /* Masks for GlobalLock flag field above */
2757851SDana.Myers@Sun.COM 
276*11225SDana.Myers@Sun.COM #define ACPI_GLOCK_PENDING          (1)             /* 00: Pending global lock ownership */
277*11225SDana.Myers@Sun.COM #define ACPI_GLOCK_OWNED            (1<<1)          /* 01: Global lock is owned */
278*11225SDana.Myers@Sun.COM 
279*11225SDana.Myers@Sun.COM /* Masks for Flags field above  */
2807851SDana.Myers@Sun.COM 
281*11225SDana.Myers@Sun.COM #define ACPI_FACS_S4_BIOS_PRESENT   (1)             /* 00: S4BIOS support is present */
282*11225SDana.Myers@Sun.COM #define ACPI_FACS_64BIT_WAKE        (1<<1)          /* 01: 64-bit wake vector supported (ACPI 4.0) */
2832623Smyers 
284*11225SDana.Myers@Sun.COM /* Masks for OspmFlags field above */
285*11225SDana.Myers@Sun.COM 
286*11225SDana.Myers@Sun.COM #define ACPI_FACS_64BIT_ENVIRONMENT (1)             /* 00: 64-bit wake environment is required (ACPI 4.0) */
2872623Smyers 
2882623Smyers 
2892623Smyers /*******************************************************************************
2902623Smyers  *
2912623Smyers  * FADT - Fixed ACPI Description Table (Signature "FACP")
292*11225SDana.Myers@Sun.COM  *        Version 4
2932623Smyers  *
2942623Smyers  ******************************************************************************/
2952623Smyers 
2962623Smyers /* Fields common to all versions of the FADT */
2970Sstevel@tonic-gate 
2987851SDana.Myers@Sun.COM typedef struct acpi_table_fadt
2997851SDana.Myers@Sun.COM {
3007851SDana.Myers@Sun.COM     ACPI_TABLE_HEADER       Header;             /* Common ACPI table header */
3017851SDana.Myers@Sun.COM     UINT32                  Facs;               /* 32-bit physical address of FACS */
3027851SDana.Myers@Sun.COM     UINT32                  Dsdt;               /* 32-bit physical address of DSDT */
3037851SDana.Myers@Sun.COM     UINT8                   Model;              /* System Interrupt Model (ACPI 1.0) - not used in ACPI 2.0+ */
3047851SDana.Myers@Sun.COM     UINT8                   PreferredProfile;   /* Conveys preferred power management profile to OSPM. */
3057851SDana.Myers@Sun.COM     UINT16                  SciInterrupt;       /* System vector of SCI interrupt */
3067851SDana.Myers@Sun.COM     UINT32                  SmiCommand;         /* 32-bit Port address of SMI command port */
3077851SDana.Myers@Sun.COM     UINT8                   AcpiEnable;         /* Value to write to smi_cmd to enable ACPI */
3087851SDana.Myers@Sun.COM     UINT8                   AcpiDisable;        /* Value to write to smi_cmd to disable ACPI */
3097851SDana.Myers@Sun.COM     UINT8                   S4BiosRequest;      /* Value to write to SMI CMD to enter S4BIOS state */
3107851SDana.Myers@Sun.COM     UINT8                   PstateControl;      /* Processor performance state control*/
3117851SDana.Myers@Sun.COM     UINT32                  Pm1aEventBlock;     /* 32-bit Port address of Power Mgt 1a Event Reg Blk */
3127851SDana.Myers@Sun.COM     UINT32                  Pm1bEventBlock;     /* 32-bit Port address of Power Mgt 1b Event Reg Blk */
3137851SDana.Myers@Sun.COM     UINT32                  Pm1aControlBlock;   /* 32-bit Port address of Power Mgt 1a Control Reg Blk */
3147851SDana.Myers@Sun.COM     UINT32                  Pm1bControlBlock;   /* 32-bit Port address of Power Mgt 1b Control Reg Blk */
3157851SDana.Myers@Sun.COM     UINT32                  Pm2ControlBlock;    /* 32-bit Port address of Power Mgt 2 Control Reg Blk */
3167851SDana.Myers@Sun.COM     UINT32                  PmTimerBlock;       /* 32-bit Port address of Power Mgt Timer Ctrl Reg Blk */
3177851SDana.Myers@Sun.COM     UINT32                  Gpe0Block;          /* 32-bit Port address of General Purpose Event 0 Reg Blk */
3187851SDana.Myers@Sun.COM     UINT32                  Gpe1Block;          /* 32-bit Port address of General Purpose Event 1 Reg Blk */
3197851SDana.Myers@Sun.COM     UINT8                   Pm1EventLength;     /* Byte Length of ports at Pm1xEventBlock */
3207851SDana.Myers@Sun.COM     UINT8                   Pm1ControlLength;   /* Byte Length of ports at Pm1xControlBlock */
3217851SDana.Myers@Sun.COM     UINT8                   Pm2ControlLength;   /* Byte Length of ports at Pm2ControlBlock */
3227851SDana.Myers@Sun.COM     UINT8                   PmTimerLength;      /* Byte Length of ports at PmTimerBlock */
3237851SDana.Myers@Sun.COM     UINT8                   Gpe0BlockLength;    /* Byte Length of ports at Gpe0Block */
3247851SDana.Myers@Sun.COM     UINT8                   Gpe1BlockLength;    /* Byte Length of ports at Gpe1Block */
3257851SDana.Myers@Sun.COM     UINT8                   Gpe1Base;           /* Offset in GPE number space where GPE1 events start */
3267851SDana.Myers@Sun.COM     UINT8                   CstControl;         /* Support for the _CST object and C States change notification */
3277851SDana.Myers@Sun.COM     UINT16                  C2Latency;          /* Worst case HW latency to enter/exit C2 state */
3287851SDana.Myers@Sun.COM     UINT16                  C3Latency;          /* Worst case HW latency to enter/exit C3 state */
3297851SDana.Myers@Sun.COM     UINT16                  FlushSize;          /* Processor's memory cache line width, in bytes */
3307851SDana.Myers@Sun.COM     UINT16                  FlushStride;        /* Number of flush strides that need to be read */
3319980SDana.Myers@Sun.COM     UINT8                   DutyOffset;         /* Processor duty cycle index in processor's P_CNT reg */
3329980SDana.Myers@Sun.COM     UINT8                   DutyWidth;          /* Processor duty cycle value bit width in P_CNT register */
3337851SDana.Myers@Sun.COM     UINT8                   DayAlarm;           /* Index to day-of-month alarm in RTC CMOS RAM */
3347851SDana.Myers@Sun.COM     UINT8                   MonthAlarm;         /* Index to month-of-year alarm in RTC CMOS RAM */
3357851SDana.Myers@Sun.COM     UINT8                   Century;            /* Index to century in RTC CMOS RAM */
3369980SDana.Myers@Sun.COM     UINT16                  BootFlags;          /* IA-PC Boot Architecture Flags (see below for individual flags) */
3377851SDana.Myers@Sun.COM     UINT8                   Reserved;           /* Reserved, must be zero */
3387851SDana.Myers@Sun.COM     UINT32                  Flags;              /* Miscellaneous flag bits (see below for individual flags) */
3397851SDana.Myers@Sun.COM     ACPI_GENERIC_ADDRESS    ResetRegister;      /* 64-bit address of the Reset register */
3407851SDana.Myers@Sun.COM     UINT8                   ResetValue;         /* Value to write to the ResetRegister port to reset the system */
3417851SDana.Myers@Sun.COM     UINT8                   Reserved4[3];       /* Reserved, must be zero */
3427851SDana.Myers@Sun.COM     UINT64                  XFacs;              /* 64-bit physical address of FACS */
3437851SDana.Myers@Sun.COM     UINT64                  XDsdt;              /* 64-bit physical address of DSDT */
3447851SDana.Myers@Sun.COM     ACPI_GENERIC_ADDRESS    XPm1aEventBlock;    /* 64-bit Extended Power Mgt 1a Event Reg Blk address */
3457851SDana.Myers@Sun.COM     ACPI_GENERIC_ADDRESS    XPm1bEventBlock;    /* 64-bit Extended Power Mgt 1b Event Reg Blk address */
3467851SDana.Myers@Sun.COM     ACPI_GENERIC_ADDRESS    XPm1aControlBlock;  /* 64-bit Extended Power Mgt 1a Control Reg Blk address */
3477851SDana.Myers@Sun.COM     ACPI_GENERIC_ADDRESS    XPm1bControlBlock;  /* 64-bit Extended Power Mgt 1b Control Reg Blk address */
3487851SDana.Myers@Sun.COM     ACPI_GENERIC_ADDRESS    XPm2ControlBlock;   /* 64-bit Extended Power Mgt 2 Control Reg Blk address */
3497851SDana.Myers@Sun.COM     ACPI_GENERIC_ADDRESS    XPmTimerBlock;      /* 64-bit Extended Power Mgt Timer Ctrl Reg Blk address */
3507851SDana.Myers@Sun.COM     ACPI_GENERIC_ADDRESS    XGpe0Block;         /* 64-bit Extended General Purpose Event 0 Reg Blk address */
3517851SDana.Myers@Sun.COM     ACPI_GENERIC_ADDRESS    XGpe1Block;         /* 64-bit Extended General Purpose Event 1 Reg Blk address */
3527851SDana.Myers@Sun.COM 
3537851SDana.Myers@Sun.COM } ACPI_TABLE_FADT;
3547851SDana.Myers@Sun.COM 
3557851SDana.Myers@Sun.COM 
356*11225SDana.Myers@Sun.COM /* Masks for FADT Boot Architecture Flags (BootFlags) */
3579980SDana.Myers@Sun.COM 
3589980SDana.Myers@Sun.COM #define ACPI_FADT_LEGACY_DEVICES    (1)         /* 00: [V2] System has LPC or ISA bus devices */
3599980SDana.Myers@Sun.COM #define ACPI_FADT_8042              (1<<1)      /* 01: [V3] System has an 8042 controller on port 60/64 */
3609980SDana.Myers@Sun.COM #define ACPI_FADT_NO_VGA            (1<<2)      /* 02: [V4] It is not safe to probe for VGA hardware */
3619980SDana.Myers@Sun.COM #define ACPI_FADT_NO_MSI            (1<<3)      /* 03: [V4] Message Signaled Interrupts (MSI) must not be enabled */
3629980SDana.Myers@Sun.COM #define ACPI_FADT_NO_ASPM           (1<<4)      /* 04: [V4] PCIe ASPM control must not be enabled */
3639980SDana.Myers@Sun.COM 
364*11225SDana.Myers@Sun.COM /* Masks for FADT flags */
3657851SDana.Myers@Sun.COM 
3669980SDana.Myers@Sun.COM #define ACPI_FADT_WBINVD            (1)         /* 00: [V1] The wbinvd instruction works properly */
3679980SDana.Myers@Sun.COM #define ACPI_FADT_WBINVD_FLUSH      (1<<1)      /* 01: [V1] wbinvd flushes but does not invalidate caches */
3689980SDana.Myers@Sun.COM #define ACPI_FADT_C1_SUPPORTED      (1<<2)      /* 02: [V1] All processors support C1 state */
3699980SDana.Myers@Sun.COM #define ACPI_FADT_C2_MP_SUPPORTED   (1<<3)      /* 03: [V1] C2 state works on MP system */
3709980SDana.Myers@Sun.COM #define ACPI_FADT_POWER_BUTTON      (1<<4)      /* 04: [V1] Power button is handled as a control method device */
3719980SDana.Myers@Sun.COM #define ACPI_FADT_SLEEP_BUTTON      (1<<5)      /* 05: [V1] Sleep button is handled as a control method device */
3729980SDana.Myers@Sun.COM #define ACPI_FADT_FIXED_RTC         (1<<6)      /* 06: [V1] RTC wakeup status not in fixed register space */
3739980SDana.Myers@Sun.COM #define ACPI_FADT_S4_RTC_WAKE       (1<<7)      /* 07: [V1] RTC alarm can wake system from S4 */
3749980SDana.Myers@Sun.COM #define ACPI_FADT_32BIT_TIMER       (1<<8)      /* 08: [V1] ACPI timer width is 32-bit (0=24-bit) */
3759980SDana.Myers@Sun.COM #define ACPI_FADT_DOCKING_SUPPORTED (1<<9)      /* 09: [V1] Docking supported */
3769980SDana.Myers@Sun.COM #define ACPI_FADT_RESET_REGISTER    (1<<10)     /* 10: [V2] System reset via the FADT RESET_REG supported */
3779980SDana.Myers@Sun.COM #define ACPI_FADT_SEALED_CASE       (1<<11)     /* 11: [V3] No internal expansion capabilities and case is sealed */
3789980SDana.Myers@Sun.COM #define ACPI_FADT_HEADLESS          (1<<12)     /* 12: [V3] No local video capabilities or local input devices */
3799980SDana.Myers@Sun.COM #define ACPI_FADT_SLEEP_TYPE        (1<<13)     /* 13: [V3] Must execute native instruction after writing  SLP_TYPx register */
3809980SDana.Myers@Sun.COM #define ACPI_FADT_PCI_EXPRESS_WAKE  (1<<14)     /* 14: [V4] System supports PCIEXP_WAKE (STS/EN) bits (ACPI 3.0) */
3819980SDana.Myers@Sun.COM #define ACPI_FADT_PLATFORM_CLOCK    (1<<15)     /* 15: [V4] OSPM should use platform-provided timer (ACPI 3.0) */
3829980SDana.Myers@Sun.COM #define ACPI_FADT_S4_RTC_VALID      (1<<16)     /* 16: [V4] Contents of RTC_STS valid after S4 wake (ACPI 3.0) */
3839980SDana.Myers@Sun.COM #define ACPI_FADT_REMOTE_POWER_ON   (1<<17)     /* 17: [V4] System is compatible with remote power on (ACPI 3.0) */
3849980SDana.Myers@Sun.COM #define ACPI_FADT_APIC_CLUSTER      (1<<18)     /* 18: [V4] All local APICs must use cluster model (ACPI 3.0) */
3859980SDana.Myers@Sun.COM #define ACPI_FADT_APIC_PHYSICAL     (1<<19)     /* 19: [V4] All local xAPICs must use physical dest mode (ACPI 3.0) */
3860Sstevel@tonic-gate 
3870Sstevel@tonic-gate 
388*11225SDana.Myers@Sun.COM /* Values for PreferredProfile (Prefered Power Management Profiles) */
3899980SDana.Myers@Sun.COM 
3907851SDana.Myers@Sun.COM enum AcpiPreferedPmProfiles
3910Sstevel@tonic-gate {
3927851SDana.Myers@Sun.COM     PM_UNSPECIFIED          = 0,
3937851SDana.Myers@Sun.COM     PM_DESKTOP              = 1,
3947851SDana.Myers@Sun.COM     PM_MOBILE               = 2,
3957851SDana.Myers@Sun.COM     PM_WORKSTATION          = 3,
3967851SDana.Myers@Sun.COM     PM_ENTERPRISE_SERVER    = 4,
3977851SDana.Myers@Sun.COM     PM_SOHO_SERVER          = 5,
3987851SDana.Myers@Sun.COM     PM_APPLIANCE_PC         = 6
3997851SDana.Myers@Sun.COM };
4000Sstevel@tonic-gate 
4010Sstevel@tonic-gate 
4022623Smyers /* Reset to default packing */
4030Sstevel@tonic-gate 
4040Sstevel@tonic-gate #pragma pack()
4050Sstevel@tonic-gate 
4069980SDana.Myers@Sun.COM 
407*11225SDana.Myers@Sun.COM /*
408*11225SDana.Myers@Sun.COM  * Internal table-related structures
409*11225SDana.Myers@Sun.COM  */
4109980SDana.Myers@Sun.COM typedef union acpi_name_union
4119980SDana.Myers@Sun.COM {
4129980SDana.Myers@Sun.COM     UINT32                          Integer;
4139980SDana.Myers@Sun.COM     char                            Ascii[4];
4149980SDana.Myers@Sun.COM 
4159980SDana.Myers@Sun.COM } ACPI_NAME_UNION;
4169980SDana.Myers@Sun.COM 
417*11225SDana.Myers@Sun.COM 
418*11225SDana.Myers@Sun.COM /* Internal ACPI Table Descriptor. One per ACPI table. */
419*11225SDana.Myers@Sun.COM 
4209980SDana.Myers@Sun.COM typedef struct acpi_table_desc
4219980SDana.Myers@Sun.COM {
4229980SDana.Myers@Sun.COM     ACPI_PHYSICAL_ADDRESS           Address;
4239980SDana.Myers@Sun.COM     ACPI_TABLE_HEADER               *Pointer;
4249980SDana.Myers@Sun.COM     UINT32                          Length;     /* Length fixed at 32 bits */
4259980SDana.Myers@Sun.COM     ACPI_NAME_UNION                 Signature;
4269980SDana.Myers@Sun.COM     ACPI_OWNER_ID                   OwnerId;
4279980SDana.Myers@Sun.COM     UINT8                           Flags;
4289980SDana.Myers@Sun.COM 
4299980SDana.Myers@Sun.COM } ACPI_TABLE_DESC;
4309980SDana.Myers@Sun.COM 
431*11225SDana.Myers@Sun.COM /* Masks for Flags field above */
4329980SDana.Myers@Sun.COM 
4339980SDana.Myers@Sun.COM #define ACPI_TABLE_ORIGIN_UNKNOWN       (0)
4349980SDana.Myers@Sun.COM #define ACPI_TABLE_ORIGIN_MAPPED        (1)
4359980SDana.Myers@Sun.COM #define ACPI_TABLE_ORIGIN_ALLOCATED     (2)
4369980SDana.Myers@Sun.COM #define ACPI_TABLE_ORIGIN_OVERRIDE      (4)
4379980SDana.Myers@Sun.COM #define ACPI_TABLE_ORIGIN_MASK          (7)
4389980SDana.Myers@Sun.COM #define ACPI_TABLE_IS_LOADED            (8)
4399980SDana.Myers@Sun.COM 
4409980SDana.Myers@Sun.COM 
4412623Smyers /*
4422623Smyers  * Get the remaining ACPI tables
4432623Smyers  */
4442623Smyers #include "actbl1.h"
445*11225SDana.Myers@Sun.COM #include "actbl2.h"
4460Sstevel@tonic-gate 
4472623Smyers /* Macros used to generate offsets to specific table fields */
4480Sstevel@tonic-gate 
4497851SDana.Myers@Sun.COM #define ACPI_FADT_OFFSET(f)             (UINT8) ACPI_OFFSET (ACPI_TABLE_FADT, f)
4500Sstevel@tonic-gate 
4510Sstevel@tonic-gate #endif /* __ACTBL_H__ */
452