actbl.h revision 186507a7cf6e4b4155e9ef89631777a96633ac0e
159d09a20817016f09b3ea28d1bdada4a336bb91Mark Phalan/******************************************************************************
159d09a20817016f09b3ea28d1bdada4a336bb91Mark Phalan * Name: actbl.h - Table data structures defined in ACPI specification
159d09a20817016f09b3ea28d1bdada4a336bb91Mark Phalan * $Revision: 1.72 $
159d09a20817016f09b3ea28d1bdada4a336bb91Mark Phalan *****************************************************************************/
159d09a20817016f09b3ea28d1bdada4a336bb91Mark Phalan/******************************************************************************
159d09a20817016f09b3ea28d1bdada4a336bb91Mark Phalan * 1. Copyright Notice
159d09a20817016f09b3ea28d1bdada4a336bb91Mark Phalan * Some or all of this work - Copyright (c) 1999 - 2005, Intel Corp.
159d09a20817016f09b3ea28d1bdada4a336bb91Mark Phalan * All rights reserved.
159d09a20817016f09b3ea28d1bdada4a336bb91Mark Phalan * 2. License
159d09a20817016f09b3ea28d1bdada4a336bb91Mark Phalan * 2.1. This is your license from Intel Corp. under its intellectual property
159d09a20817016f09b3ea28d1bdada4a336bb91Mark Phalan * rights. You may have additional license terms from the party that provided
159d09a20817016f09b3ea28d1bdada4a336bb91Mark Phalan * you this software, covering your right to use that party's intellectual
159d09a20817016f09b3ea28d1bdada4a336bb91Mark Phalan * property rights.
159d09a20817016f09b3ea28d1bdada4a336bb91Mark Phalan * 2.2. Intel grants, free of charge, to any person ("Licensee") obtaining a
159d09a20817016f09b3ea28d1bdada4a336bb91Mark Phalan * copy of the source code appearing in this file ("Covered Code") an
159d09a20817016f09b3ea28d1bdada4a336bb91Mark Phalan * irrevocable, perpetual, worldwide license under Intel's copyrights in the
159d09a20817016f09b3ea28d1bdada4a336bb91Mark Phalan * base code distributed originally by Intel ("Original Intel Code") to copy,
159d09a20817016f09b3ea28d1bdada4a336bb91Mark Phalan * make derivatives, distribute, use and display any portion of the Covered
159d09a20817016f09b3ea28d1bdada4a336bb91Mark Phalan * Code in any form, with the right to sublicense such rights; and
159d09a20817016f09b3ea28d1bdada4a336bb91Mark Phalan * 2.3. Intel grants Licensee a non-exclusive and non-transferable patent
159d09a20817016f09b3ea28d1bdada4a336bb91Mark Phalan * license (with the right to sublicense), under only those claims of Intel
159d09a20817016f09b3ea28d1bdada4a336bb91Mark Phalan * patents that are infringed by the Original Intel Code, to make, use, sell,
159d09a20817016f09b3ea28d1bdada4a336bb91Mark Phalan * offer to sell, and import the Covered Code and derivative works thereof
159d09a20817016f09b3ea28d1bdada4a336bb91Mark Phalan * solely to the minimum extent necessary to exercise the above copyright
159d09a20817016f09b3ea28d1bdada4a336bb91Mark Phalan * license, and in no event shall the patent license extend to any additions
159d09a20817016f09b3ea28d1bdada4a336bb91Mark Phalan * to or modifications of the Original Intel Code. No other license or right
159d09a20817016f09b3ea28d1bdada4a336bb91Mark Phalan * is granted directly or by implication, estoppel or otherwise;
159d09a20817016f09b3ea28d1bdada4a336bb91Mark Phalan * The above copyright and patent license is granted only if the following
159d09a20817016f09b3ea28d1bdada4a336bb91Mark Phalan * conditions are met:
159d09a20817016f09b3ea28d1bdada4a336bb91Mark Phalan * 3. Conditions
159d09a20817016f09b3ea28d1bdada4a336bb91Mark Phalan * 3.1. Redistribution of Source with Rights to Further Distribute Source.
159d09a20817016f09b3ea28d1bdada4a336bb91Mark Phalan * Redistribution of source code of any substantial portion of the Covered
159d09a20817016f09b3ea28d1bdada4a336bb91Mark Phalan * Code or modification with rights to further distribute source must include
159d09a20817016f09b3ea28d1bdada4a336bb91Mark Phalan * the above Copyright Notice, the above License, this list of Conditions,
159d09a20817016f09b3ea28d1bdada4a336bb91Mark Phalan * and the following Disclaimer and Export Compliance provision. In addition,
159d09a20817016f09b3ea28d1bdada4a336bb91Mark Phalan * Licensee must cause all Covered Code to which Licensee contributes to
159d09a20817016f09b3ea28d1bdada4a336bb91Mark Phalan * contain a file documenting the changes Licensee made to create that Covered
159d09a20817016f09b3ea28d1bdada4a336bb91Mark Phalan * Code and the date of any change. Licensee must include in that file the
159d09a20817016f09b3ea28d1bdada4a336bb91Mark Phalan * documentation of any changes made by any predecessor Licensee. Licensee
159d09a20817016f09b3ea28d1bdada4a336bb91Mark Phalan * must include a prominent statement that the modification is derived,
159d09a20817016f09b3ea28d1bdada4a336bb91Mark Phalan * directly or indirectly, from Original Intel Code.
159d09a20817016f09b3ea28d1bdada4a336bb91Mark Phalan * 3.2. Redistribution of Source with no Rights to Further Distribute Source.
159d09a20817016f09b3ea28d1bdada4a336bb91Mark Phalan * Redistribution of source code of any substantial portion of the Covered
159d09a20817016f09b3ea28d1bdada4a336bb91Mark Phalan * Code or modification without rights to further distribute source must
159d09a20817016f09b3ea28d1bdada4a336bb91Mark Phalan * include the following Disclaimer and Export Compliance provision in the
159d09a20817016f09b3ea28d1bdada4a336bb91Mark Phalan * documentation and/or other materials provided with distribution. In
159d09a20817016f09b3ea28d1bdada4a336bb91Mark Phalan * addition, Licensee may not authorize further sublicense of source of any
159d09a20817016f09b3ea28d1bdada4a336bb91Mark Phalan * portion of the Covered Code, and must include terms to the effect that the
159d09a20817016f09b3ea28d1bdada4a336bb91Mark Phalan * license from Licensee to its licensee is limited to the intellectual
159d09a20817016f09b3ea28d1bdada4a336bb91Mark Phalan * property embodied in the software Licensee provides to its licensee, and
159d09a20817016f09b3ea28d1bdada4a336bb91Mark Phalan * not to intellectual property embodied in modifications its licensee may
159d09a20817016f09b3ea28d1bdada4a336bb91Mark Phalan * 3.3. Redistribution of Executable. Redistribution in executable form of any
159d09a20817016f09b3ea28d1bdada4a336bb91Mark Phalan * substantial portion of the Covered Code or modification must reproduce the
159d09a20817016f09b3ea28d1bdada4a336bb91Mark Phalan * above Copyright Notice, and the following Disclaimer and Export Compliance
159d09a20817016f09b3ea28d1bdada4a336bb91Mark Phalan * provision in the documentation and/or other materials provided with the
159d09a20817016f09b3ea28d1bdada4a336bb91Mark Phalan * distribution.
159d09a20817016f09b3ea28d1bdada4a336bb91Mark Phalan * 3.4. Intel retains all right, title, and interest in and to the Original
159d09a20817016f09b3ea28d1bdada4a336bb91Mark Phalan * Intel Code.
159d09a20817016f09b3ea28d1bdada4a336bb91Mark Phalan * 3.5. Neither the name Intel nor any other trademark owned or controlled by
159d09a20817016f09b3ea28d1bdada4a336bb91Mark Phalan * Intel shall be used in advertising or otherwise to promote the sale, use or
159d09a20817016f09b3ea28d1bdada4a336bb91Mark Phalan * other dealings in products derived from or relating to the Covered Code
159d09a20817016f09b3ea28d1bdada4a336bb91Mark Phalan * without prior written authorization from Intel.
159d09a20817016f09b3ea28d1bdada4a336bb91Mark Phalan * 4. Disclaimer and Export Compliance
159d09a20817016f09b3ea28d1bdada4a336bb91Mark Phalan * 4.1. INTEL MAKES NO WARRANTY OF ANY KIND REGARDING ANY SOFTWARE PROVIDED
159d09a20817016f09b3ea28d1bdada4a336bb91Mark Phalan * HERE. ANY SOFTWARE ORIGINATING FROM INTEL OR DERIVED FROM INTEL SOFTWARE
159d09a20817016f09b3ea28d1bdada4a336bb91Mark Phalan * IS PROVIDED "AS IS," AND INTEL WILL NOT PROVIDE ANY SUPPORT, ASSISTANCE,
159d09a20817016f09b3ea28d1bdada4a336bb91Mark Phalan * INSTALLATION, TRAINING OR OTHER SERVICES. INTEL WILL NOT PROVIDE ANY
159d09a20817016f09b3ea28d1bdada4a336bb91Mark Phalan * UPDATES, ENHANCEMENTS OR EXTENSIONS. INTEL SPECIFICALLY DISCLAIMS ANY
159d09a20817016f09b3ea28d1bdada4a336bb91Mark Phalan * IMPLIED WARRANTIES OF MERCHANTABILITY, NONINFRINGEMENT AND FITNESS FOR A
159d09a20817016f09b3ea28d1bdada4a336bb91Mark Phalan * PARTICULAR PURPOSE.
159d09a20817016f09b3ea28d1bdada4a336bb91Mark Phalan * 4.2. IN NO EVENT SHALL INTEL HAVE ANY LIABILITY TO LICENSEE, ITS LICENSEES
159d09a20817016f09b3ea28d1bdada4a336bb91Mark Phalan * OR ANY OTHER THIRD PARTY, FOR ANY LOST PROFITS, LOST DATA, LOSS OF USE OR
159d09a20817016f09b3ea28d1bdada4a336bb91Mark Phalan * COSTS OF PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES, OR FOR ANY INDIRECT,
159d09a20817016f09b3ea28d1bdada4a336bb91Mark Phalan * SPECIAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THIS AGREEMENT, UNDER ANY
159d09a20817016f09b3ea28d1bdada4a336bb91Mark Phalan * CAUSE OF ACTION OR THEORY OF LIABILITY, AND IRRESPECTIVE OF WHETHER INTEL
159d09a20817016f09b3ea28d1bdada4a336bb91Mark Phalan * HAS ADVANCE NOTICE OF THE POSSIBILITY OF SUCH DAMAGES. THESE LIMITATIONS
159d09a20817016f09b3ea28d1bdada4a336bb91Mark Phalan * SHALL APPLY NOTWITHSTANDING THE FAILURE OF THE ESSENTIAL PURPOSE OF ANY
159d09a20817016f09b3ea28d1bdada4a336bb91Mark Phalan * LIMITED REMEDY.
159d09a20817016f09b3ea28d1bdada4a336bb91Mark Phalan * 4.3. Licensee shall not export, either directly or indirectly, any of this
159d09a20817016f09b3ea28d1bdada4a336bb91Mark Phalan * software or system incorporating such software without first obtaining any
159d09a20817016f09b3ea28d1bdada4a336bb91Mark Phalan * required license or other approval from the U. S. Department of Commerce or
159d09a20817016f09b3ea28d1bdada4a336bb91Mark Phalan * any other agency or department of the United States Government. In the
159d09a20817016f09b3ea28d1bdada4a336bb91Mark Phalan * event Licensee exports any such software from the United States or
159d09a20817016f09b3ea28d1bdada4a336bb91Mark Phalan * re-exports any such software from a foreign destination, Licensee shall
159d09a20817016f09b3ea28d1bdada4a336bb91Mark Phalan * ensure that the distribution and export/re-export of the software is in
159d09a20817016f09b3ea28d1bdada4a336bb91Mark Phalan * compliance with all laws, regulations, orders, or other restrictions of the
159d09a20817016f09b3ea28d1bdada4a336bb91Mark Phalan * U.S. Export Administration Regulations. Licensee agrees that neither it nor
159d09a20817016f09b3ea28d1bdada4a336bb91Mark Phalan * any of its subsidiaries will export/re-export any technical data, process,
159d09a20817016f09b3ea28d1bdada4a336bb91Mark Phalan * software, or service, directly or indirectly, to any country for which the
159d09a20817016f09b3ea28d1bdada4a336bb91Mark Phalan * United States government or any agency thereof requires an export license,
159d09a20817016f09b3ea28d1bdada4a336bb91Mark Phalan * other governmental approval, or letter of assurance, without first obtaining
159d09a20817016f09b3ea28d1bdada4a336bb91Mark Phalan * such license, approval or letter.
159d09a20817016f09b3ea28d1bdada4a336bb91Mark Phalan *****************************************************************************/
159d09a20817016f09b3ea28d1bdada4a336bb91Mark Phalan * Values for description table header signatures
159d09a20817016f09b3ea28d1bdada4a336bb91Mark Phalan#define RSDP_SIG "RSD PTR " /* RSDT Pointer signature */
159d09a20817016f09b3ea28d1bdada4a336bb91Mark Phalan#define APIC_SIG "APIC" /* Multiple APIC Description Table */
159d09a20817016f09b3ea28d1bdada4a336bb91Mark Phalan#define DSDT_SIG "DSDT" /* Differentiated System Description Table */
159d09a20817016f09b3ea28d1bdada4a336bb91Mark Phalan#define FADT_SIG "FACP" /* Fixed ACPI Description Table */
159d09a20817016f09b3ea28d1bdada4a336bb91Mark Phalan#define FACS_SIG "FACS" /* Firmware ACPI Control Structure */
159d09a20817016f09b3ea28d1bdada4a336bb91Mark Phalan#define PSDT_SIG "PSDT" /* Persistent System Description Table */
159d09a20817016f09b3ea28d1bdada4a336bb91Mark Phalan#define RSDT_SIG "RSDT" /* Root System Description Table */
159d09a20817016f09b3ea28d1bdada4a336bb91Mark Phalan#define XSDT_SIG "XSDT" /* Extended System Description Table */
159d09a20817016f09b3ea28d1bdada4a336bb91Mark Phalan#define SSDT_SIG "SSDT" /* Secondary System Description Table */
159d09a20817016f09b3ea28d1bdada4a336bb91Mark Phalan#define SBST_SIG "SBST" /* Smart Battery Specification Table */
159d09a20817016f09b3ea28d1bdada4a336bb91Mark Phalan#define GL_OWNED 0x02 /* Ownership of global lock is bit 1 */
159d09a20817016f09b3ea28d1bdada4a336bb91Mark Phalan * Common table types. The base code can remain
159d09a20817016f09b3ea28d1bdada4a336bb91Mark Phalan * constant if the underlying tables are changed
159d09a20817016f09b3ea28d1bdada4a336bb91Mark Phalan * ACPI Version-independent tables
159d09a20817016f09b3ea28d1bdada4a336bb91Mark Phalan * NOTE: The tables that are specific to ACPI versions (1.0, 2.0, etc.)
159d09a20817016f09b3ea28d1bdada4a336bb91Mark Phalan * are in separate files.
159d09a20817016f09b3ea28d1bdada4a336bb91Mark Phalantypedef struct rsdp_descriptor /* Root System Descriptor Pointer */
159d09a20817016f09b3ea28d1bdada4a336bb91Mark Phalan char Signature[8]; /* ACPI signature, contains "RSD PTR " */
159d09a20817016f09b3ea28d1bdada4a336bb91Mark Phalan UINT8 Revision; /* Must be (0) for ACPI 1.0 or (2) for ACPI 2.0+ */
159d09a20817016f09b3ea28d1bdada4a336bb91Mark Phalan UINT32 RsdtPhysicalAddress; /* 32-bit physical address of the RSDT */
159d09a20817016f09b3ea28d1bdada4a336bb91Mark Phalan UINT32 Length; /* XSDT Length in bytes, including header */
159d09a20817016f09b3ea28d1bdada4a336bb91Mark Phalan UINT64 XsdtPhysicalAddress; /* 64-bit physical address of the XSDT */
159d09a20817016f09b3ea28d1bdada4a336bb91Mark Phalan UINT8 ExtendedChecksum; /* Checksum of entire table (ACPI 2.0) */
159d09a20817016f09b3ea28d1bdada4a336bb91Mark Phalantypedef struct acpi_common_facs /* Common FACS for internal use */
159d09a20817016f09b3ea28d1bdada4a336bb91Mark Phalan#define ACPI_TABLE_HEADER_DEF /* ACPI common table header */ \
159d09a20817016f09b3ea28d1bdada4a336bb91Mark Phalan UINT32 Length; /* Length of table in bytes, including this header */\
159d09a20817016f09b3ea28d1bdada4a336bb91Mark Phalan UINT8 Revision; /* ACPI Specification minor version # */\
159d09a20817016f09b3ea28d1bdada4a336bb91Mark Phalan UINT8 Checksum; /* To make sum of entire table == 0 */\
159d09a20817016f09b3ea28d1bdada4a336bb91Mark Phalan char OemTableId[8]; /* ASCII OEM table identification */\
159d09a20817016f09b3ea28d1bdada4a336bb91Mark Phalan char AslCompilerId [4]; /* ASCII ASL compiler vendor ID */\
159d09a20817016f09b3ea28d1bdada4a336bb91Mark Phalan UINT32 AslCompilerRevision; /* ASL compiler version */
159d09a20817016f09b3ea28d1bdada4a336bb91Mark Phalantypedef struct acpi_table_header /* ACPI common table header */
159d09a20817016f09b3ea28d1bdada4a336bb91Mark Phalan * MADT values and structures
159d09a20817016f09b3ea28d1bdada4a336bb91Mark Phalan/* Values for MADT PCATCompat */
159d09a20817016f09b3ea28d1bdada4a336bb91Mark Phalan/* Master MADT */
159d09a20817016f09b3ea28d1bdada4a336bb91Mark Phalan ACPI_TABLE_HEADER_DEF /* ACPI common table header */
159d09a20817016f09b3ea28d1bdada4a336bb91Mark Phalan UINT32 LocalApicAddress; /* Physical address of local APIC */
159d09a20817016f09b3ea28d1bdada4a336bb91Mark Phalan /* Flags (32 bits) */
159d09a20817016f09b3ea28d1bdada4a336bb91Mark Phalan UINT8_BIT PCATCompat : 1; /* 00: System also has dual 8259s */
159d09a20817016f09b3ea28d1bdada4a336bb91Mark Phalan UINT8_BIT : 7; /* 01-07: Reserved, must be zero */
159d09a20817016f09b3ea28d1bdada4a336bb91Mark Phalan UINT8 Reserved1[3]; /* 08-31: Reserved, must be zero */
159d09a20817016f09b3ea28d1bdada4a336bb91Mark Phalan/* Values for Type in APIC_HEADER_DEF */
159d09a20817016f09b3ea28d1bdada4a336bb91Mark Phalan#define APIC_RESERVED 9 /* 9 and greater are reserved */
159d09a20817016f09b3ea28d1bdada4a336bb91Mark Phalan * MADT sub-structures (Follow MULTIPLE_APIC_DESCRIPTION_TABLE)
159d09a20817016f09b3ea28d1bdada4a336bb91Mark Phalan#define APIC_HEADER_DEF /* Common APIC sub-structure header */\
159d09a20817016f09b3ea28d1bdada4a336bb91Mark Phalan/* Values for MPS INTI flags */
159d09a20817016f09b3ea28d1bdada4a336bb91Mark Phalan/* Common flag definitions (16 bits each) */
159d09a20817016f09b3ea28d1bdada4a336bb91Mark Phalan UINT8_BIT Polarity : 2; /* 00-01: Polarity of APIC I/O input signals */\
159d09a20817016f09b3ea28d1bdada4a336bb91Mark Phalan UINT8_BIT TriggerMode : 2; /* 02-03: Trigger mode of APIC input signals */\
159d09a20817016f09b3ea28d1bdada4a336bb91Mark Phalan UINT8_BIT : 4; /* 04-07: Reserved, must be zero */\
159d09a20817016f09b3ea28d1bdada4a336bb91Mark Phalan UINT8 Reserved1; /* 08-15: Reserved, must be zero */
159d09a20817016f09b3ea28d1bdada4a336bb91Mark Phalan UINT8_BIT ProcessorEnabled: 1; /* 00: Processor is usable if set */\
159d09a20817016f09b3ea28d1bdada4a336bb91Mark Phalan UINT8_BIT : 7; /* 01-07: Reserved, must be zero */\
159d09a20817016f09b3ea28d1bdada4a336bb91Mark Phalan UINT8 Reserved2; /* 08-15: Reserved, must be zero */
159d09a20817016f09b3ea28d1bdada4a336bb91Mark Phalan/* Sub-structures for MADT */
159d09a20817016f09b3ea28d1bdada4a336bb91Mark Phalan UINT8 LocalApicId; /* Processor's local APIC id */
159d09a20817016f09b3ea28d1bdada4a336bb91Mark Phalan UINT32 Interrupt; /* Global system interrupt where INTI
159d09a20817016f09b3ea28d1bdada4a336bb91Mark Phalan * lines start */
159d09a20817016f09b3ea28d1bdada4a336bb91Mark Phalan UINT8 Lint; /* LINTn to which NMI is connected */
159d09a20817016f09b3ea28d1bdada4a336bb91Mark Phalan UINT32 InterruptBase; /* Glocal interrupt for SAPIC start */
159d09a20817016f09b3ea28d1bdada4a336bb91Mark Phalan UINT32 ProcessorUID; /* Numeric UID - ACPI 3.0 */
159d09a20817016f09b3ea28d1bdada4a336bb91Mark Phalan char ProcessorUIDString[1]; /* String UID - ACPI 3.0 */
159d09a20817016f09b3ea28d1bdada4a336bb91Mark Phalan UINT8 InterruptType; /* 1=PMI, 2=INIT, 3=corrected */
159d09a20817016f09b3ea28d1bdada4a336bb91Mark Phalan UINT8 IoSapicVector; /* Vector value for PMI interrupts */
typedef struct smart_battery_table
#pragma pack()
#define ACPI_MEM_NOT_ALLOCATED 0
typedef struct acpi_table_support
char *Name;
char *Signature;
void **GlobalPtr;
typedef struct hpet_table
} HPET_TABLE;
#pragma pack()