actbl1.h revision 151937
169450Smsmith/******************************************************************************
269450Smsmith *
369450Smsmith * Name: actbl1.h - ACPI 1.0 tables
4151937Sjkim *       $Revision: 1.32 $
569450Smsmith *
669450Smsmith *****************************************************************************/
769450Smsmith
869450Smsmith/******************************************************************************
969450Smsmith *
1069450Smsmith * 1. Copyright Notice
1169450Smsmith *
12151937Sjkim * Some or all of this work - Copyright (c) 1999 - 2005, Intel Corp.
1370243Smsmith * All rights reserved.
1469450Smsmith *
1569450Smsmith * 2. License
1669450Smsmith *
1769450Smsmith * 2.1. This is your license from Intel Corp. under its intellectual property
1869450Smsmith * rights.  You may have additional license terms from the party that provided
1969450Smsmith * you this software, covering your right to use that party's intellectual
2069450Smsmith * property rights.
2169450Smsmith *
2269450Smsmith * 2.2. Intel grants, free of charge, to any person ("Licensee") obtaining a
2369450Smsmith * copy of the source code appearing in this file ("Covered Code") an
2469450Smsmith * irrevocable, perpetual, worldwide license under Intel's copyrights in the
2569450Smsmith * base code distributed originally by Intel ("Original Intel Code") to copy,
2669450Smsmith * make derivatives, distribute, use and display any portion of the Covered
2769450Smsmith * Code in any form, with the right to sublicense such rights; and
2869450Smsmith *
2969450Smsmith * 2.3. Intel grants Licensee a non-exclusive and non-transferable patent
3069450Smsmith * license (with the right to sublicense), under only those claims of Intel
3169450Smsmith * patents that are infringed by the Original Intel Code, to make, use, sell,
3269450Smsmith * offer to sell, and import the Covered Code and derivative works thereof
3369450Smsmith * solely to the minimum extent necessary to exercise the above copyright
3469450Smsmith * license, and in no event shall the patent license extend to any additions
3569450Smsmith * to or modifications of the Original Intel Code.  No other license or right
3669450Smsmith * is granted directly or by implication, estoppel or otherwise;
3769450Smsmith *
3869450Smsmith * The above copyright and patent license is granted only if the following
3969450Smsmith * conditions are met:
4069450Smsmith *
4169450Smsmith * 3. Conditions
4269450Smsmith *
4369450Smsmith * 3.1. Redistribution of Source with Rights to Further Distribute Source.
4469450Smsmith * Redistribution of source code of any substantial portion of the Covered
4569450Smsmith * Code or modification with rights to further distribute source must include
4669450Smsmith * the above Copyright Notice, the above License, this list of Conditions,
4769450Smsmith * and the following Disclaimer and Export Compliance provision.  In addition,
4869450Smsmith * Licensee must cause all Covered Code to which Licensee contributes to
4969450Smsmith * contain a file documenting the changes Licensee made to create that Covered
5069450Smsmith * Code and the date of any change.  Licensee must include in that file the
5169450Smsmith * documentation of any changes made by any predecessor Licensee.  Licensee
5269450Smsmith * must include a prominent statement that the modification is derived,
5369450Smsmith * directly or indirectly, from Original Intel Code.
5469450Smsmith *
5569450Smsmith * 3.2. Redistribution of Source with no Rights to Further Distribute Source.
5669450Smsmith * Redistribution of source code of any substantial portion of the Covered
5769450Smsmith * Code or modification without rights to further distribute source must
5869450Smsmith * include the following Disclaimer and Export Compliance provision in the
5969450Smsmith * documentation and/or other materials provided with distribution.  In
6069450Smsmith * addition, Licensee may not authorize further sublicense of source of any
6169450Smsmith * portion of the Covered Code, and must include terms to the effect that the
6269450Smsmith * license from Licensee to its licensee is limited to the intellectual
6369450Smsmith * property embodied in the software Licensee provides to its licensee, and
6469450Smsmith * not to intellectual property embodied in modifications its licensee may
6569450Smsmith * make.
6669450Smsmith *
6769450Smsmith * 3.3. Redistribution of Executable. Redistribution in executable form of any
6869450Smsmith * substantial portion of the Covered Code or modification must reproduce the
6969450Smsmith * above Copyright Notice, and the following Disclaimer and Export Compliance
7069450Smsmith * provision in the documentation and/or other materials provided with the
7169450Smsmith * distribution.
7269450Smsmith *
7369450Smsmith * 3.4. Intel retains all right, title, and interest in and to the Original
7469450Smsmith * Intel Code.
7569450Smsmith *
7669450Smsmith * 3.5. Neither the name Intel nor any other trademark owned or controlled by
7769450Smsmith * Intel shall be used in advertising or otherwise to promote the sale, use or
7869450Smsmith * other dealings in products derived from or relating to the Covered Code
7969450Smsmith * without prior written authorization from Intel.
8069450Smsmith *
8169450Smsmith * 4. Disclaimer and Export Compliance
8269450Smsmith *
8369450Smsmith * 4.1. INTEL MAKES NO WARRANTY OF ANY KIND REGARDING ANY SOFTWARE PROVIDED
8469450Smsmith * HERE.  ANY SOFTWARE ORIGINATING FROM INTEL OR DERIVED FROM INTEL SOFTWARE
8569450Smsmith * IS PROVIDED "AS IS," AND INTEL WILL NOT PROVIDE ANY SUPPORT,  ASSISTANCE,
8669450Smsmith * INSTALLATION, TRAINING OR OTHER SERVICES.  INTEL WILL NOT PROVIDE ANY
8769450Smsmith * UPDATES, ENHANCEMENTS OR EXTENSIONS.  INTEL SPECIFICALLY DISCLAIMS ANY
8869450Smsmith * IMPLIED WARRANTIES OF MERCHANTABILITY, NONINFRINGEMENT AND FITNESS FOR A
8969450Smsmith * PARTICULAR PURPOSE.
9069450Smsmith *
9169450Smsmith * 4.2. IN NO EVENT SHALL INTEL HAVE ANY LIABILITY TO LICENSEE, ITS LICENSEES
9269450Smsmith * OR ANY OTHER THIRD PARTY, FOR ANY LOST PROFITS, LOST DATA, LOSS OF USE OR
9369450Smsmith * COSTS OF PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES, OR FOR ANY INDIRECT,
9469450Smsmith * SPECIAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THIS AGREEMENT, UNDER ANY
9569450Smsmith * CAUSE OF ACTION OR THEORY OF LIABILITY, AND IRRESPECTIVE OF WHETHER INTEL
9669450Smsmith * HAS ADVANCE NOTICE OF THE POSSIBILITY OF SUCH DAMAGES.  THESE LIMITATIONS
9769450Smsmith * SHALL APPLY NOTWITHSTANDING THE FAILURE OF THE ESSENTIAL PURPOSE OF ANY
9869450Smsmith * LIMITED REMEDY.
9969450Smsmith *
10069450Smsmith * 4.3. Licensee shall not export, either directly or indirectly, any of this
10169450Smsmith * software or system incorporating such software without first obtaining any
10269450Smsmith * required license or other approval from the U. S. Department of Commerce or
10369450Smsmith * any other agency or department of the United States Government.  In the
10469450Smsmith * event Licensee exports any such software from the United States or
10569450Smsmith * re-exports any such software from a foreign destination, Licensee shall
10669450Smsmith * ensure that the distribution and export/re-export of the software is in
10769450Smsmith * compliance with all laws, regulations, orders, or other restrictions of the
10869450Smsmith * U.S. Export Administration Regulations. Licensee agrees that neither it nor
10969450Smsmith * any of its subsidiaries will export/re-export any technical data, process,
11069450Smsmith * software, or service, directly or indirectly, to any country for which the
11169450Smsmith * United States government or any agency thereof requires an export license,
11269450Smsmith * other governmental approval, or letter of assurance, without first obtaining
11369450Smsmith * such license, approval or letter.
11469450Smsmith *
11569450Smsmith *****************************************************************************/
11669450Smsmith
11769450Smsmith#ifndef __ACTBL1_H__
11869450Smsmith#define __ACTBL1_H__
11969450Smsmith
12069450Smsmith#pragma pack(1)
12169450Smsmith
12291116Smsmith/*
12391116Smsmith * ACPI 1.0 Root System Description Table (RSDT)
12491116Smsmith */
125114237Snjltypedef struct rsdt_descriptor_rev1
12669450Smsmith{
127123315Snjl    ACPI_TABLE_HEADER_DEF                           /* ACPI common table header */
128151937Sjkim    UINT32                  TableOffsetEntry[1];    /* Array of pointers to ACPI tables */
129151937Sjkim
13069450Smsmith} RSDT_DESCRIPTOR_REV1;
13169450Smsmith
13269450Smsmith
13391116Smsmith/*
13491116Smsmith * ACPI 1.0 Firmware ACPI Control Structure (FACS)
13591116Smsmith */
136114237Snjltypedef struct facs_descriptor_rev1
13769450Smsmith{
138151937Sjkim    char                    Signature[4];           /* ASCII table signature */
139151937Sjkim    UINT32                  Length;                 /* Length of structure in bytes */
14091116Smsmith    UINT32                  HardwareSignature;      /* Hardware configuration signature */
14169450Smsmith    UINT32                  FirmwareWakingVector;   /* ACPI OS waking vector */
14269450Smsmith    UINT32                  GlobalLock;             /* Global Lock */
14369450Smsmith
144151937Sjkim    /* Flags (32 bits) */
145151937Sjkim
146151937Sjkim    UINT8_BIT               S4Bios_f        : 1;    /* 00:    S4BIOS support is present */
147151937Sjkim    UINT8_BIT                               : 7;    /* 01-07: Reserved, must be zero */
148151937Sjkim    UINT8                   Reserved1[3];           /* 08-31: Reserved, must be zero */
149151937Sjkim
150151937Sjkim    UINT8                   Reserved2[40];          /* Reserved, must be zero */
151151937Sjkim
15269450Smsmith} FACS_DESCRIPTOR_REV1;
15369450Smsmith
15469450Smsmith
15591116Smsmith/*
15691116Smsmith * ACPI 1.0 Fixed ACPI Description Table (FADT)
15791116Smsmith */
158114237Snjltypedef struct fadt_descriptor_rev1
15969450Smsmith{
160123315Snjl    ACPI_TABLE_HEADER_DEF                           /* ACPI common table header */
16169450Smsmith    UINT32                  FirmwareCtrl;           /* Physical address of FACS */
16269450Smsmith    UINT32                  Dsdt;                   /* Physical address of DSDT */
16369450Smsmith    UINT8                   Model;                  /* System Interrupt Model */
164151937Sjkim    UINT8                   Reserved1;              /* Reserved, must be zero */
16569450Smsmith    UINT16                  SciInt;                 /* System vector of SCI interrupt */
16669450Smsmith    UINT32                  SmiCmd;                 /* Port address of SMI command port */
16791116Smsmith    UINT8                   AcpiEnable;             /* Value to write to smi_cmd to enable ACPI */
16891116Smsmith    UINT8                   AcpiDisable;            /* Value to write to smi_cmd to disable ACPI */
16969450Smsmith    UINT8                   S4BiosReq;              /* Value to write to SMI CMD to enter S4BIOS state */
170151937Sjkim    UINT8                   Reserved2;              /* Reserved, must be zero */
17169450Smsmith    UINT32                  Pm1aEvtBlk;             /* Port address of Power Mgt 1a AcpiEvent Reg Blk */
17269450Smsmith    UINT32                  Pm1bEvtBlk;             /* Port address of Power Mgt 1b AcpiEvent Reg Blk */
17369450Smsmith    UINT32                  Pm1aCntBlk;             /* Port address of Power Mgt 1a Control Reg Blk */
17469450Smsmith    UINT32                  Pm1bCntBlk;             /* Port address of Power Mgt 1b Control Reg Blk */
17569450Smsmith    UINT32                  Pm2CntBlk;              /* Port address of Power Mgt 2 Control Reg Blk */
17669450Smsmith    UINT32                  PmTmrBlk;               /* Port address of Power Mgt Timer Ctrl Reg Blk */
17769450Smsmith    UINT32                  Gpe0Blk;                /* Port addr of General Purpose AcpiEvent 0 Reg Blk */
17869450Smsmith    UINT32                  Gpe1Blk;                /* Port addr of General Purpose AcpiEvent 1 Reg Blk */
17969450Smsmith    UINT8                   Pm1EvtLen;              /* Byte Length of ports at pm1X_evt_blk */
18069450Smsmith    UINT8                   Pm1CntLen;              /* Byte Length of ports at pm1X_cnt_blk */
18169450Smsmith    UINT8                   Pm2CntLen;              /* Byte Length of ports at pm2_cnt_blk */
18269450Smsmith    UINT8                   PmTmLen;                /* Byte Length of ports at pm_tm_blk */
18369450Smsmith    UINT8                   Gpe0BlkLen;             /* Byte Length of ports at gpe0_blk */
18469450Smsmith    UINT8                   Gpe1BlkLen;             /* Byte Length of ports at gpe1_blk */
18591116Smsmith    UINT8                   Gpe1Base;               /* Offset in gpe model where gpe1 events start */
186151937Sjkim    UINT8                   Reserved3;              /* Reserved, must be zero */
18791116Smsmith    UINT16                  Plvl2Lat;               /* Worst case HW latency to enter/exit C2 state */
18891116Smsmith    UINT16                  Plvl3Lat;               /* Worst case HW latency to enter/exit C3 state */
18969450Smsmith    UINT16                  FlushSize;              /* Size of area read to flush caches */
19069450Smsmith    UINT16                  FlushStride;            /* Stride used in flushing caches */
19191116Smsmith    UINT8                   DutyOffset;             /* Bit location of duty cycle field in p_cnt reg */
19291116Smsmith    UINT8                   DutyWidth;              /* Bit width of duty cycle field in p_cnt reg */
19391116Smsmith    UINT8                   DayAlrm;                /* Index to day-of-month alarm in RTC CMOS RAM */
19491116Smsmith    UINT8                   MonAlrm;                /* Index to month-of-year alarm in RTC CMOS RAM */
19591116Smsmith    UINT8                   Century;                /* Index to century in RTC CMOS RAM */
196151937Sjkim    UINT8                   Reserved4[3];           /* Reserved, must be zero */
19769450Smsmith
198151937Sjkim    /* Flags (32 bits) */
199151937Sjkim
200151937Sjkim    UINT8_BIT               WbInvd          : 1;    /* 00:    The wbinvd instruction works properly */
201151937Sjkim    UINT8_BIT               WbInvdFlush     : 1;    /* 01:    The wbinvd flushes but does not invalidate */
202151937Sjkim    UINT8_BIT               ProcC1          : 1;    /* 02:    All processors support C1 state */
203151937Sjkim    UINT8_BIT               Plvl2Up         : 1;    /* 03:    C2 state works on MP system */
204151937Sjkim    UINT8_BIT               PwrButton       : 1;    /* 04:    Power button is handled as a generic feature */
205151937Sjkim    UINT8_BIT               SleepButton     : 1;    /* 05:    Sleep button is handled as a generic feature, or not present */
206151937Sjkim    UINT8_BIT               FixedRTC        : 1;    /* 06:    RTC wakeup stat not in fixed register space */
207151937Sjkim    UINT8_BIT               Rtcs4           : 1;    /* 07:    RTC wakeup stat not possible from S4 */
208151937Sjkim    UINT8_BIT               TmrValExt       : 1;    /* 08:    tmr_val width is 32 bits (0 = 24 bits) */
209151937Sjkim    UINT8_BIT                               : 7;    /* 09-15: Reserved, must be zero */
210151937Sjkim    UINT8                   Reserved5[2];           /* 16-31: Reserved, must be zero */
211151937Sjkim
212114237Snjl} FADT_DESCRIPTOR_REV1;
21369450Smsmith
21469450Smsmith#pragma pack()
21569450Smsmith
21669450Smsmith#endif /* __ACTBL1_H__ */
21769450Smsmith
21869450Smsmith
219