ReactOS Fundraising Campaign 2012
 
€ 4,410 / € 30,000

Information | Donate

Home | Info | Community | Development | myReactOS | Contact Us

  1. Home
  2. Community
  3. Development
  4. myReactOS
  5. Fundraiser 2012

  1. Main Page
  2. Alphabetical List
  3. Data Structures
  4. Directories
  5. File List
  6. Data Fields
  7. Globals
  8. Related Pages

ReactOS Development > Doxygen

acpredef.h
Go to the documentation of this file.
00001 /******************************************************************************
00002  *
00003  * Name: acpredef - Information table for ACPI predefined methods and objects
00004  *
00005  *****************************************************************************/
00006 
00007 /******************************************************************************
00008  *
00009  * 1. Copyright Notice
00010  *
00011  * Some or all of this work - Copyright (c) 1999 - 2011, Intel Corp.
00012  * All rights reserved.
00013  *
00014  * 2. License
00015  *
00016  * 2.1. This is your license from Intel Corp. under its intellectual property
00017  * rights.  You may have additional license terms from the party that provided
00018  * you this software, covering your right to use that party's intellectual
00019  * property rights.
00020  *
00021  * 2.2. Intel grants, free of charge, to any person ("Licensee") obtaining a
00022  * copy of the source code appearing in this file ("Covered Code") an
00023  * irrevocable, perpetual, worldwide license under Intel's copyrights in the
00024  * base code distributed originally by Intel ("Original Intel Code") to copy,
00025  * make derivatives, distribute, use and display any portion of the Covered
00026  * Code in any form, with the right to sublicense such rights; and
00027  *
00028  * 2.3. Intel grants Licensee a non-exclusive and non-transferable patent
00029  * license (with the right to sublicense), under only those claims of Intel
00030  * patents that are infringed by the Original Intel Code, to make, use, sell,
00031  * offer to sell, and import the Covered Code and derivative works thereof
00032  * solely to the minimum extent necessary to exercise the above copyright
00033  * license, and in no event shall the patent license extend to any additions
00034  * to or modifications of the Original Intel Code.  No other license or right
00035  * is granted directly or by implication, estoppel or otherwise;
00036  *
00037  * The above copyright and patent license is granted only if the following
00038  * conditions are met:
00039  *
00040  * 3. Conditions
00041  *
00042  * 3.1. Redistribution of Source with Rights to Further Distribute Source.
00043  * Redistribution of source code of any substantial portion of the Covered
00044  * Code or modification with rights to further distribute source must include
00045  * the above Copyright Notice, the above License, this list of Conditions,
00046  * and the following Disclaimer and Export Compliance provision.  In addition,
00047  * Licensee must cause all Covered Code to which Licensee contributes to
00048  * contain a file documenting the changes Licensee made to create that Covered
00049  * Code and the date of any change.  Licensee must include in that file the
00050  * documentation of any changes made by any predecessor Licensee.  Licensee
00051  * must include a prominent statement that the modification is derived,
00052  * directly or indirectly, from Original Intel Code.
00053  *
00054  * 3.2. Redistribution of Source with no Rights to Further Distribute Source.
00055  * Redistribution of source code of any substantial portion of the Covered
00056  * Code or modification without rights to further distribute source must
00057  * include the following Disclaimer and Export Compliance provision in the
00058  * documentation and/or other materials provided with distribution.  In
00059  * addition, Licensee may not authorize further sublicense of source of any
00060  * portion of the Covered Code, and must include terms to the effect that the
00061  * license from Licensee to its licensee is limited to the intellectual
00062  * property embodied in the software Licensee provides to its licensee, and
00063  * not to intellectual property embodied in modifications its licensee may
00064  * make.
00065  *
00066  * 3.3. Redistribution of Executable. Redistribution in executable form of any
00067  * substantial portion of the Covered Code or modification must reproduce the
00068  * above Copyright Notice, and the following Disclaimer and Export Compliance
00069  * provision in the documentation and/or other materials provided with the
00070  * distribution.
00071  *
00072  * 3.4. Intel retains all right, title, and interest in and to the Original
00073  * Intel Code.
00074  *
00075  * 3.5. Neither the name Intel nor any other trademark owned or controlled by
00076  * Intel shall be used in advertising or otherwise to promote the sale, use or
00077  * other dealings in products derived from or relating to the Covered Code
00078  * without prior written authorization from Intel.
00079  *
00080  * 4. Disclaimer and Export Compliance
00081  *
00082  * 4.1. INTEL MAKES NO WARRANTY OF ANY KIND REGARDING ANY SOFTWARE PROVIDED
00083  * HERE.  ANY SOFTWARE ORIGINATING FROM INTEL OR DERIVED FROM INTEL SOFTWARE
00084  * IS PROVIDED "AS IS," AND INTEL WILL NOT PROVIDE ANY SUPPORT, ASSISTANCE,
00085  * INSTALLATION, TRAINING OR OTHER SERVICES.  INTEL WILL NOT PROVIDE ANY
00086  * UPDATES, ENHANCEMENTS OR EXTENSIONS.  INTEL SPECIFICALLY DISCLAIMS ANY
00087  * IMPLIED WARRANTIES OF MERCHANTABILITY, NONINFRINGEMENT AND FITNESS FOR A
00088  * PARTICULAR PURPOSE.
00089  *
00090  * 4.2. IN NO EVENT SHALL INTEL HAVE ANY LIABILITY TO LICENSEE, ITS LICENSEES
00091  * OR ANY OTHER THIRD PARTY, FOR ANY LOST PROFITS, LOST DATA, LOSS OF USE OR
00092  * COSTS OF PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES, OR FOR ANY INDIRECT,
00093  * SPECIAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THIS AGREEMENT, UNDER ANY
00094  * CAUSE OF ACTION OR THEORY OF LIABILITY, AND IRRESPECTIVE OF WHETHER INTEL
00095  * HAS ADVANCE NOTICE OF THE POSSIBILITY OF SUCH DAMAGES.  THESE LIMITATIONS
00096  * SHALL APPLY NOTWITHSTANDING THE FAILURE OF THE ESSENTIAL PURPOSE OF ANY
00097  * LIMITED REMEDY.
00098  *
00099  * 4.3. Licensee shall not export, either directly or indirectly, any of this
00100  * software or system incorporating such software without first obtaining any
00101  * required license or other approval from the U. S. Department of Commerce or
00102  * any other agency or department of the United States Government.  In the
00103  * event Licensee exports any such software from the United States or
00104  * re-exports any such software from a foreign destination, Licensee shall
00105  * ensure that the distribution and export/re-export of the software is in
00106  * compliance with all laws, regulations, orders, or other restrictions of the
00107  * U.S. Export Administration Regulations. Licensee agrees that neither it nor
00108  * any of its subsidiaries will export/re-export any technical data, process,
00109  * software, or service, directly or indirectly, to any country for which the
00110  * United States government or any agency thereof requires an export license,
00111  * other governmental approval, or letter of assurance, without first obtaining
00112  * such license, approval or letter.
00113  *
00114  *****************************************************************************/
00115 
00116 #ifndef __ACPREDEF_H__
00117 #define __ACPREDEF_H__
00118 
00119 
00120 /******************************************************************************
00121  *
00122  * Return Package types
00123  *
00124  * 1) PTYPE1 packages do not contain sub-packages.
00125  *
00126  * ACPI_PTYPE1_FIXED: Fixed-length length, 1 or 2 object types:
00127  *      object type
00128  *      count
00129  *      object type
00130  *      count
00131  *
00132  * ACPI_PTYPE1_VAR: Variable-length length:
00133  *      object type (Int/Buf/Ref)
00134  *
00135  * ACPI_PTYPE1_OPTION: Package has some required and some optional elements
00136  *      (Used for _PRW)
00137  *
00138  *
00139  * 2) PTYPE2 packages contain a Variable-length number of sub-packages. Each
00140  *    of the different types describe the contents of each of the sub-packages.
00141  *
00142  * ACPI_PTYPE2: Each subpackage contains 1 or 2 object types:
00143  *      object type
00144  *      count
00145  *      object type
00146  *      count
00147  *      (Used for _ALR,_MLS,_PSS,_TRT,_TSS)
00148  *
00149  * ACPI_PTYPE2_COUNT: Each subpackage has a count as first element:
00150  *      object type
00151  *      (Used for _CSD,_PSD,_TSD)
00152  *
00153  * ACPI_PTYPE2_PKG_COUNT: Count of subpackages at start, 1 or 2 object types:
00154  *      object type
00155  *      count
00156  *      object type
00157  *      count
00158  *      (Used for _CST)
00159  *
00160  * ACPI_PTYPE2_FIXED: Each subpackage is of Fixed-length
00161  *      (Used for _PRT)
00162  *
00163  * ACPI_PTYPE2_MIN: Each subpackage has a Variable-length but minimum length
00164  *      (Used for _HPX)
00165  *
00166  * ACPI_PTYPE2_REV_FIXED: Revision at start, each subpackage is Fixed-length
00167  *      (Used for _ART, _FPS)
00168  *
00169  *****************************************************************************/
00170 
00171 enum AcpiReturnPackageTypes
00172 {
00173     ACPI_PTYPE1_FIXED       = 1,
00174     ACPI_PTYPE1_VAR         = 2,
00175     ACPI_PTYPE1_OPTION      = 3,
00176     ACPI_PTYPE2             = 4,
00177     ACPI_PTYPE2_COUNT       = 5,
00178     ACPI_PTYPE2_PKG_COUNT   = 6,
00179     ACPI_PTYPE2_FIXED       = 7,
00180     ACPI_PTYPE2_MIN         = 8,
00181     ACPI_PTYPE2_REV_FIXED   = 9
00182 };
00183 
00184 
00185 #ifdef ACPI_CREATE_PREDEFINED_TABLE
00186 /*
00187  * Predefined method/object information table.
00188  *
00189  * These are the names that can actually be evaluated via AcpiEvaluateObject.
00190  * Not present in this table are the following:
00191  *
00192  *      1) Predefined/Reserved names that are never evaluated via
00193  *         AcpiEvaluateObject:
00194  *              _Lxx and _Exx GPE methods
00195  *              _Qxx EC methods
00196  *              _T_x compiler temporary variables
00197  *
00198  *      2) Predefined names that never actually exist within the AML code:
00199  *              Predefined resource descriptor field names
00200  *
00201  *      3) Predefined names that are implemented within ACPICA:
00202  *              _OSI
00203  *
00204  *      4) Some predefined names that are not documented within the ACPI spec.
00205  *              _WDG, _WED
00206  *
00207  * The main entries in the table each contain the following items:
00208  *
00209  * Name                 - The ACPI reserved name
00210  * ParamCount           - Number of arguments to the method
00211  * ExpectedBtypes       - Allowed type(s) for the return value.
00212  *                        0 means that no return value is expected.
00213  *
00214  * For methods that return packages, the next entry in the table contains
00215  * information about the expected structure of the package. This information
00216  * is saved here (rather than in a separate table) in order to minimize the
00217  * overall size of the stored data.
00218  *
00219  * Note: The additional braces are intended to promote portability.
00220  */
00221 static const ACPI_PREDEFINED_INFO     PredefinedNames[] =
00222 {
00223     {{"_AC0", 0, ACPI_RTYPE_INTEGER}},
00224     {{"_AC1", 0, ACPI_RTYPE_INTEGER}},
00225     {{"_AC2", 0, ACPI_RTYPE_INTEGER}},
00226     {{"_AC3", 0, ACPI_RTYPE_INTEGER}},
00227     {{"_AC4", 0, ACPI_RTYPE_INTEGER}},
00228     {{"_AC5", 0, ACPI_RTYPE_INTEGER}},
00229     {{"_AC6", 0, ACPI_RTYPE_INTEGER}},
00230     {{"_AC7", 0, ACPI_RTYPE_INTEGER}},
00231     {{"_AC8", 0, ACPI_RTYPE_INTEGER}},
00232     {{"_AC9", 0, ACPI_RTYPE_INTEGER}},
00233     {{"_ADR", 0, ACPI_RTYPE_INTEGER}},
00234     {{"_AL0", 0, ACPI_RTYPE_PACKAGE}}, /* Variable-length (Refs) */
00235                     {{{ACPI_PTYPE1_VAR, ACPI_RTYPE_REFERENCE, 0,0}, 0,0}},
00236 
00237     {{"_AL1", 0, ACPI_RTYPE_PACKAGE}}, /* Variable-length (Refs) */
00238                     {{{ACPI_PTYPE1_VAR, ACPI_RTYPE_REFERENCE, 0,0}, 0,0}},
00239 
00240     {{"_AL2", 0, ACPI_RTYPE_PACKAGE}}, /* Variable-length (Refs) */
00241                     {{{ACPI_PTYPE1_VAR, ACPI_RTYPE_REFERENCE, 0,0}, 0,0}},
00242 
00243     {{"_AL3", 0, ACPI_RTYPE_PACKAGE}}, /* Variable-length (Refs) */
00244                     {{{ACPI_PTYPE1_VAR, ACPI_RTYPE_REFERENCE, 0,0}, 0,0}},
00245 
00246     {{"_AL4", 0, ACPI_RTYPE_PACKAGE}}, /* Variable-length (Refs) */
00247                     {{{ACPI_PTYPE1_VAR, ACPI_RTYPE_REFERENCE, 0,0}, 0,0}},
00248 
00249     {{"_AL5", 0, ACPI_RTYPE_PACKAGE}}, /* Variable-length (Refs) */
00250                     {{{ACPI_PTYPE1_VAR, ACPI_RTYPE_REFERENCE, 0,0}, 0,0}},
00251 
00252     {{"_AL6", 0, ACPI_RTYPE_PACKAGE}}, /* Variable-length (Refs) */
00253                     {{{ACPI_PTYPE1_VAR, ACPI_RTYPE_REFERENCE, 0,0}, 0,0}},
00254 
00255     {{"_AL7", 0, ACPI_RTYPE_PACKAGE}}, /* Variable-length (Refs) */
00256                     {{{ACPI_PTYPE1_VAR, ACPI_RTYPE_REFERENCE, 0,0}, 0,0}},
00257 
00258     {{"_AL8", 0, ACPI_RTYPE_PACKAGE}}, /* Variable-length (Refs) */
00259                     {{{ACPI_PTYPE1_VAR, ACPI_RTYPE_REFERENCE, 0,0}, 0,0}},
00260 
00261     {{"_AL9", 0, ACPI_RTYPE_PACKAGE}}, /* Variable-length (Refs) */
00262                     {{{ACPI_PTYPE1_VAR, ACPI_RTYPE_REFERENCE, 0,0}, 0,0}},
00263 
00264     {{"_ALC", 0, ACPI_RTYPE_INTEGER}},
00265     {{"_ALI", 0, ACPI_RTYPE_INTEGER}},
00266     {{"_ALP", 0, ACPI_RTYPE_INTEGER}},
00267     {{"_ALR", 0, ACPI_RTYPE_PACKAGE}}, /* Variable-length (Pkgs) each 2 (Ints) */
00268                     {{{ACPI_PTYPE2, ACPI_RTYPE_INTEGER, 2,0}, 0,0}},
00269 
00270     {{"_ALT", 0, ACPI_RTYPE_INTEGER}},
00271     {{"_ART", 0, ACPI_RTYPE_PACKAGE}}, /* Variable-length (1 Int(rev), n Pkg (2 Ref/11 Int) */
00272                     {{{ACPI_PTYPE2_REV_FIXED,ACPI_RTYPE_REFERENCE, 2, ACPI_RTYPE_INTEGER}, 11,0}},
00273 
00274     {{"_BBN", 0, ACPI_RTYPE_INTEGER}},
00275     {{"_BCL", 0, ACPI_RTYPE_PACKAGE}}, /* Variable-length (Ints) */
00276                     {{{ACPI_PTYPE1_VAR, ACPI_RTYPE_INTEGER, 0,0}, 0,0}},
00277 
00278     {{"_BCM", 1, 0}},
00279     {{"_BCT", 1, ACPI_RTYPE_INTEGER}},
00280     {{"_BDN", 0, ACPI_RTYPE_INTEGER}},
00281     {{"_BFS", 1, 0}},
00282     {{"_BIF", 0, ACPI_RTYPE_PACKAGE}}, /* Fixed-length (9 Int),(4 Str) */
00283                     {{{ACPI_PTYPE1_FIXED, ACPI_RTYPE_INTEGER, 9, ACPI_RTYPE_STRING}, 4,0}},
00284 
00285     {{"_BIX", 0, ACPI_RTYPE_PACKAGE}}, /* Fixed-length (16 Int),(4 Str) */
00286                     {{{ACPI_PTYPE1_FIXED, ACPI_RTYPE_INTEGER, 16, ACPI_RTYPE_STRING}, 4,0}},
00287 
00288     {{"_BLT", 3, 0}},
00289     {{"_BMA", 1, ACPI_RTYPE_INTEGER}},
00290     {{"_BMC", 1, 0}},
00291     {{"_BMD", 0, ACPI_RTYPE_PACKAGE}}, /* Fixed-length (5 Int) */
00292                     {{{ACPI_PTYPE1_FIXED, ACPI_RTYPE_INTEGER, 5,0}, 0,0}},
00293 
00294     {{"_BMS", 1, ACPI_RTYPE_INTEGER}},
00295     {{"_BQC", 0, ACPI_RTYPE_INTEGER}},
00296     {{"_BST", 0, ACPI_RTYPE_PACKAGE}}, /* Fixed-length (4 Int) */
00297                     {{{ACPI_PTYPE1_FIXED, ACPI_RTYPE_INTEGER, 4,0}, 0,0}},
00298 
00299     {{"_BTM", 1, ACPI_RTYPE_INTEGER}},
00300     {{"_BTP", 1, 0}},
00301     {{"_CBA", 0, ACPI_RTYPE_INTEGER}}, /* See PCI firmware spec 3.0 */
00302     {{"_CDM", 0, ACPI_RTYPE_INTEGER}},
00303     {{"_CID", 0, ACPI_RTYPE_INTEGER | ACPI_RTYPE_STRING | ACPI_RTYPE_PACKAGE}}, /* Variable-length (Ints/Strs) */
00304                     {{{ACPI_PTYPE1_VAR, ACPI_RTYPE_INTEGER | ACPI_RTYPE_STRING, 0,0}, 0,0}},
00305 
00306     {{"_CRS", 0, ACPI_RTYPE_BUFFER}},
00307     {{"_CRT", 0, ACPI_RTYPE_INTEGER}},
00308     {{"_CSD", 0, ACPI_RTYPE_PACKAGE}}, /* Variable-length (1 Int(n), n-1 Int) */
00309                     {{{ACPI_PTYPE2_COUNT, ACPI_RTYPE_INTEGER, 0,0}, 0,0}},
00310 
00311     {{"_CST", 0, ACPI_RTYPE_PACKAGE}}, /* Variable-length (1 Int(n), n Pkg (1 Buf/3 Int) */
00312                     {{{ACPI_PTYPE2_PKG_COUNT,ACPI_RTYPE_BUFFER, 1, ACPI_RTYPE_INTEGER}, 3,0}},
00313 
00314     {{"_DCK", 1, ACPI_RTYPE_INTEGER}},
00315     {{"_DCS", 0, ACPI_RTYPE_INTEGER}},
00316     {{"_DDC", 1, ACPI_RTYPE_INTEGER | ACPI_RTYPE_BUFFER}},
00317     {{"_DDN", 0, ACPI_RTYPE_STRING}},
00318     {{"_DGS", 0, ACPI_RTYPE_INTEGER}},
00319     {{"_DIS", 0, 0}},
00320     {{"_DMA", 0, ACPI_RTYPE_BUFFER}},
00321     {{"_DOD", 0, ACPI_RTYPE_PACKAGE}}, /* Variable-length (Ints) */
00322                     {{{ACPI_PTYPE1_VAR, ACPI_RTYPE_INTEGER, 0,0}, 0,0}},
00323 
00324     {{"_DOS", 1, 0}},
00325     {{"_DSM", 4, ACPI_RTYPE_ALL}},     /* Must return a type, but it can be of any type */
00326     {{"_DSS", 1, 0}},
00327     {{"_DSW", 3, 0}},
00328     {{"_DTI", 1, 0}},
00329     {{"_EC_", 0, ACPI_RTYPE_INTEGER}},
00330     {{"_EDL", 0, ACPI_RTYPE_PACKAGE}}, /* Variable-length (Refs)*/
00331                     {{{ACPI_PTYPE1_VAR, ACPI_RTYPE_REFERENCE, 0,0}, 0,0}},
00332 
00333     {{"_EJ0", 1, 0}},
00334     {{"_EJ1", 1, 0}},
00335     {{"_EJ2", 1, 0}},
00336     {{"_EJ3", 1, 0}},
00337     {{"_EJ4", 1, 0}},
00338     {{"_EJD", 0, ACPI_RTYPE_STRING}},
00339     {{"_FDE", 0, ACPI_RTYPE_BUFFER}},
00340     {{"_FDI", 0, ACPI_RTYPE_PACKAGE}}, /* Fixed-length (16 Int) */
00341                     {{{ACPI_PTYPE1_FIXED, ACPI_RTYPE_INTEGER, 16,0}, 0,0}},
00342 
00343     {{"_FDM", 1, 0}},
00344     {{"_FIF", 0, ACPI_RTYPE_PACKAGE}}, /* Fixed-length (4 Int) */
00345                     {{{ACPI_PTYPE1_FIXED, ACPI_RTYPE_INTEGER, 4,0}, 0,0}},
00346 
00347     {{"_FIX", 0, ACPI_RTYPE_PACKAGE}}, /* Variable-length (Ints) */
00348                     {{{ACPI_PTYPE1_VAR, ACPI_RTYPE_INTEGER, 0,0}, 0,0}},
00349 
00350     {{"_FPS", 0, ACPI_RTYPE_PACKAGE}}, /* Variable-length (1 Int(rev), n Pkg (5 Int) */
00351                     {{{ACPI_PTYPE2_REV_FIXED,ACPI_RTYPE_INTEGER, 5, 0}, 0,0}},
00352 
00353     {{"_FSL", 1, 0}},
00354     {{"_FST", 0, ACPI_RTYPE_PACKAGE}}, /* Fixed-length (3 Int) */
00355                     {{{ACPI_PTYPE1_FIXED, ACPI_RTYPE_INTEGER, 3,0}, 0,0}},
00356 
00357 
00358     {{"_GAI", 0, ACPI_RTYPE_INTEGER}},
00359     {{"_GHL", 0, ACPI_RTYPE_INTEGER}},
00360     {{"_GLK", 0, ACPI_RTYPE_INTEGER}},
00361     {{"_GPD", 0, ACPI_RTYPE_INTEGER}},
00362     {{"_GPE", 0, ACPI_RTYPE_INTEGER}}, /* _GPE method, not _GPE scope */
00363     {{"_GSB", 0, ACPI_RTYPE_INTEGER}},
00364     {{"_GTF", 0, ACPI_RTYPE_BUFFER}},
00365     {{"_GTM", 0, ACPI_RTYPE_BUFFER}},
00366     {{"_GTS", 1, 0}},
00367     {{"_HID", 0, ACPI_RTYPE_INTEGER | ACPI_RTYPE_STRING}},
00368     {{"_HOT", 0, ACPI_RTYPE_INTEGER}},
00369     {{"_HPP", 0, ACPI_RTYPE_PACKAGE}}, /* Fixed-length (4 Int) */
00370                     {{{ACPI_PTYPE1_FIXED, ACPI_RTYPE_INTEGER, 4,0}, 0,0}},
00371 
00372     /*
00373      * For _HPX, a single package is returned, containing a Variable-length number
00374      * of sub-packages. Each sub-package contains a PCI record setting.
00375      * There are several different type of record settings, of different
00376      * lengths, but all elements of all settings are Integers.
00377      */
00378     {{"_HPX", 0, ACPI_RTYPE_PACKAGE}}, /* Variable-length (Pkgs) each (var Ints) */
00379                     {{{ACPI_PTYPE2_MIN, ACPI_RTYPE_INTEGER, 5,0}, 0,0}},
00380 
00381     {{"_IFT", 0, ACPI_RTYPE_INTEGER}}, /* See IPMI spec */
00382     {{"_INI", 0, 0}},
00383     {{"_IRC", 0, 0}},
00384     {{"_LCK", 1, 0}},
00385     {{"_LID", 0, ACPI_RTYPE_INTEGER}},
00386     {{"_MAT", 0, ACPI_RTYPE_BUFFER}},
00387     {{"_MBM", 0, ACPI_RTYPE_PACKAGE}}, /* Fixed-length (8 Int) */
00388                     {{{ACPI_PTYPE1_FIXED, ACPI_RTYPE_INTEGER, 8,0}, 0,0}},
00389 
00390     {{"_MLS", 0, ACPI_RTYPE_PACKAGE}}, /* Variable-length (Pkgs) each (2 Str) */
00391                     {{{ACPI_PTYPE2, ACPI_RTYPE_STRING, 2,0}, 0,0}},
00392 
00393     {{"_MSG", 1, 0}},
00394     {{"_MSM", 4, ACPI_RTYPE_INTEGER}},
00395     {{"_NTT", 0, ACPI_RTYPE_INTEGER}},
00396     {{"_OFF", 0, 0}},
00397     {{"_ON_", 0, 0}},
00398     {{"_OS_", 0, ACPI_RTYPE_STRING}},
00399     {{"_OSC", 4, ACPI_RTYPE_BUFFER}},
00400     {{"_OST", 3, 0}},
00401     {{"_PAI", 1, ACPI_RTYPE_INTEGER}},
00402     {{"_PCL", 0, ACPI_RTYPE_PACKAGE}}, /* Variable-length (Refs) */
00403                     {{{ACPI_PTYPE1_VAR, ACPI_RTYPE_REFERENCE, 0,0}, 0,0}},
00404 
00405     {{"_PCT", 0, ACPI_RTYPE_PACKAGE}}, /* Fixed-length (2 Buf) */
00406                     {{{ACPI_PTYPE1_FIXED, ACPI_RTYPE_BUFFER, 2,0}, 0,0}},
00407 
00408     {{"_PDC", 1, 0}},
00409     {{"_PDL", 0, ACPI_RTYPE_INTEGER}},
00410     {{"_PIC", 1, 0}},
00411     {{"_PIF", 0, ACPI_RTYPE_PACKAGE}}, /* Fixed-length (3 Int),(3 Str) */
00412                     {{{ACPI_PTYPE1_FIXED, ACPI_RTYPE_INTEGER, 3, ACPI_RTYPE_STRING}, 3,0}},
00413 
00414     {{"_PLD", 0, ACPI_RTYPE_PACKAGE}}, /* Variable-length (Bufs) */
00415                     {{{ACPI_PTYPE1_VAR, ACPI_RTYPE_BUFFER, 0,0}, 0,0}},
00416 
00417     {{"_PMC", 0, ACPI_RTYPE_PACKAGE}}, /* Fixed-length (11 Int),(3 Str) */
00418                     {{{ACPI_PTYPE1_FIXED, ACPI_RTYPE_INTEGER, 11, ACPI_RTYPE_STRING}, 3,0}},
00419 
00420     {{"_PMD", 0, ACPI_RTYPE_PACKAGE}}, /* Variable-length (Refs) */
00421                     {{{ACPI_PTYPE1_VAR, ACPI_RTYPE_REFERENCE, 0,0}, 0,0}},
00422 
00423     {{"_PMM", 0, ACPI_RTYPE_INTEGER}},
00424     {{"_PPC", 0, ACPI_RTYPE_INTEGER}},
00425     {{"_PPE", 0, ACPI_RTYPE_INTEGER}}, /* See dig64 spec */
00426     {{"_PR0", 0, ACPI_RTYPE_PACKAGE}}, /* Variable-length (Refs) */
00427                     {{{ACPI_PTYPE1_VAR, ACPI_RTYPE_REFERENCE, 0,0}, 0,0}},
00428 
00429     {{"_PR1", 0, ACPI_RTYPE_PACKAGE}}, /* Variable-length (Refs) */
00430                     {{{ACPI_PTYPE1_VAR, ACPI_RTYPE_REFERENCE, 0,0}, 0,0}},
00431 
00432     {{"_PR2", 0, ACPI_RTYPE_PACKAGE}}, /* Variable-length (Refs) */
00433                     {{{ACPI_PTYPE1_VAR, ACPI_RTYPE_REFERENCE, 0,0}, 0,0}},
00434 
00435     {{"_PR3", 0, ACPI_RTYPE_PACKAGE}}, /* Variable-length (Refs) */
00436                     {{{ACPI_PTYPE1_VAR, ACPI_RTYPE_REFERENCE, 0,0}, 0,0}},
00437 
00438     {{"_PRL", 0, ACPI_RTYPE_PACKAGE}}, /* Variable-length (Refs) */
00439                     {{{ACPI_PTYPE1_VAR, ACPI_RTYPE_REFERENCE, 0,0}, 0,0}},
00440 
00441     {{"_PRS", 0, ACPI_RTYPE_BUFFER}},
00442 
00443     /*
00444      * For _PRT, many BIOSs reverse the 3rd and 4th Package elements (Source
00445      * and SourceIndex). This bug is so prevalent that there is code in the
00446      * ACPICA Resource Manager to detect this and switch them back. For now,
00447      * do not allow and issue a warning. To allow this and eliminate the
00448      * warning, add the ACPI_RTYPE_REFERENCE type to the 4th element (index 3)
00449      * in the statement below.
00450      */
00451     {{"_PRT", 0, ACPI_RTYPE_PACKAGE}}, /* Variable-length (Pkgs) each (4): Int,Int,Int/Ref,Int */
00452                     {{{ACPI_PTYPE2_FIXED, 4, ACPI_RTYPE_INTEGER,ACPI_RTYPE_INTEGER},
00453                     ACPI_RTYPE_INTEGER | ACPI_RTYPE_REFERENCE,
00454                     ACPI_RTYPE_INTEGER}},
00455 
00456     {{"_PRW", 0, ACPI_RTYPE_PACKAGE}}, /* Variable-length (Pkgs) each: Pkg/Int,Int,[Variable-length Refs] (Pkg is Ref/Int) */
00457                     {{{ACPI_PTYPE1_OPTION, 2, ACPI_RTYPE_INTEGER | ACPI_RTYPE_PACKAGE,
00458                     ACPI_RTYPE_INTEGER}, ACPI_RTYPE_REFERENCE,0}},
00459 
00460     {{"_PS0", 0, 0}},
00461     {{"_PS1", 0, 0}},
00462     {{"_PS2", 0, 0}},
00463     {{"_PS3", 0, 0}},
00464     {{"_PSC", 0, ACPI_RTYPE_INTEGER}},
00465     {{"_PSD", 0, ACPI_RTYPE_PACKAGE}}, /* Variable-length (Pkgs) each (5 Int) with count */
00466                     {{{ACPI_PTYPE2_COUNT, ACPI_RTYPE_INTEGER,0,0}, 0,0}},
00467 
00468     {{"_PSL", 0, ACPI_RTYPE_PACKAGE}}, /* Variable-length (Refs) */
00469                     {{{ACPI_PTYPE1_VAR, ACPI_RTYPE_REFERENCE, 0,0}, 0,0}},
00470 
00471     {{"_PSR", 0, ACPI_RTYPE_INTEGER}},
00472     {{"_PSS", 0, ACPI_RTYPE_PACKAGE}}, /* Variable-length (Pkgs) each (6 Int) */
00473                     {{{ACPI_PTYPE2, ACPI_RTYPE_INTEGER, 6,0}, 0,0}},
00474 
00475     {{"_PSV", 0, ACPI_RTYPE_INTEGER}},
00476     {{"_PSW", 1, 0}},
00477     {{"_PTC", 0, ACPI_RTYPE_PACKAGE}}, /* Fixed-length (2 Buf) */
00478                     {{{ACPI_PTYPE1_FIXED, ACPI_RTYPE_BUFFER, 2,0}, 0,0}},
00479 
00480     {{"_PTP", 2, ACPI_RTYPE_INTEGER}},
00481     {{"_PTS", 1, 0}},
00482     {{"_PUR", 0, ACPI_RTYPE_PACKAGE}}, /* Fixed-length (2 Int) */
00483                     {{{ACPI_PTYPE1_FIXED, ACPI_RTYPE_INTEGER, 2,0}, 0,0}},
00484 
00485     {{"_PXM", 0, ACPI_RTYPE_INTEGER}},
00486     {{"_REG", 2, 0}},
00487     {{"_REV", 0, ACPI_RTYPE_INTEGER}},
00488     {{"_RMV", 0, ACPI_RTYPE_INTEGER}},
00489     {{"_ROM", 2, ACPI_RTYPE_BUFFER}},
00490     {{"_RTV", 0, ACPI_RTYPE_INTEGER}},
00491 
00492     /*
00493      * For _S0_ through _S5_, the ACPI spec defines a return Package
00494      * containing 1 Integer, but most DSDTs have it wrong - 2,3, or 4 integers.
00495      * Allow this by making the objects "Variable-length length", but all elements
00496      * must be Integers.
00497      */
00498     {{"_S0_", 0, ACPI_RTYPE_PACKAGE}}, /* Fixed-length (1 Int) */
00499                     {{{ACPI_PTYPE1_VAR, ACPI_RTYPE_INTEGER, 1,0}, 0,0}},
00500 
00501     {{"_S1_", 0, ACPI_RTYPE_PACKAGE}}, /* Fixed-length (1 Int) */
00502                     {{{ACPI_PTYPE1_VAR, ACPI_RTYPE_INTEGER, 1,0}, 0,0}},
00503 
00504     {{"_S2_", 0, ACPI_RTYPE_PACKAGE}}, /* Fixed-length (1 Int) */
00505                     {{{ACPI_PTYPE1_VAR, ACPI_RTYPE_INTEGER, 1,0}, 0,0}},
00506 
00507     {{"_S3_", 0, ACPI_RTYPE_PACKAGE}}, /* Fixed-length (1 Int) */
00508                     {{{ACPI_PTYPE1_VAR, ACPI_RTYPE_INTEGER, 1,0}, 0,0}},
00509 
00510     {{"_S4_", 0, ACPI_RTYPE_PACKAGE}}, /* Fixed-length (1 Int) */
00511                     {{{ACPI_PTYPE1_VAR, ACPI_RTYPE_INTEGER, 1,0}, 0,0}},
00512 
00513     {{"_S5_", 0, ACPI_RTYPE_PACKAGE}}, /* Fixed-length (1 Int) */
00514                     {{{ACPI_PTYPE1_VAR, ACPI_RTYPE_INTEGER, 1,0}, 0,0}},
00515 
00516     {{"_S1D", 0, ACPI_RTYPE_INTEGER}},
00517     {{"_S2D", 0, ACPI_RTYPE_INTEGER}},
00518     {{"_S3D", 0, ACPI_RTYPE_INTEGER}},
00519     {{"_S4D", 0, ACPI_RTYPE_INTEGER}},
00520     {{"_S0W", 0, ACPI_RTYPE_INTEGER}},
00521     {{"_S1W", 0, ACPI_RTYPE_INTEGER}},
00522     {{"_S2W", 0, ACPI_RTYPE_INTEGER}},
00523     {{"_S3W", 0, ACPI_RTYPE_INTEGER}},
00524     {{"_S4W", 0, ACPI_RTYPE_INTEGER}},
00525     {{"_SBS", 0, ACPI_RTYPE_INTEGER}},
00526     {{"_SCP", 0x13, 0}},               /* Acpi 1.0 allowed 1 arg. Acpi 3.0 expanded to 3 args. Allow both. */
00527                                        /* Note: the 3-arg definition may be removed for ACPI 4.0 */
00528     {{"_SDD", 1, 0}},
00529     {{"_SEG", 0, ACPI_RTYPE_INTEGER}},
00530     {{"_SHL", 1, ACPI_RTYPE_INTEGER}},
00531     {{"_SLI", 0, ACPI_RTYPE_BUFFER}},
00532     {{"_SPD", 1, ACPI_RTYPE_INTEGER}},
00533     {{"_SRS", 1, 0}},
00534     {{"_SRV", 0, ACPI_RTYPE_INTEGER}}, /* See IPMI spec */
00535     {{"_SST", 1, 0}},
00536     {{"_STA", 0, ACPI_RTYPE_INTEGER}},
00537     {{"_STM", 3, 0}},
00538     {{"_STP", 2, ACPI_RTYPE_INTEGER}},
00539     {{"_STR", 0, ACPI_RTYPE_BUFFER}},
00540     {{"_STV", 2, ACPI_RTYPE_INTEGER}},
00541     {{"_SUN", 0, ACPI_RTYPE_INTEGER}},
00542     {{"_SWS", 0, ACPI_RTYPE_INTEGER}},
00543     {{"_TC1", 0, ACPI_RTYPE_INTEGER}},
00544     {{"_TC2", 0, ACPI_RTYPE_INTEGER}},
00545     {{"_TDL", 0, ACPI_RTYPE_INTEGER}},
00546     {{"_TIP", 1, ACPI_RTYPE_INTEGER}},
00547     {{"_TIV", 1, ACPI_RTYPE_INTEGER}},
00548     {{"_TMP", 0, ACPI_RTYPE_INTEGER}},
00549     {{"_TPC", 0, ACPI_RTYPE_INTEGER}},
00550     {{"_TPT", 1, 0}},
00551     {{"_TRT", 0, ACPI_RTYPE_PACKAGE}}, /* Variable-length (Pkgs) each 2Ref/6Int */
00552                     {{{ACPI_PTYPE2, ACPI_RTYPE_REFERENCE, 2, ACPI_RTYPE_INTEGER}, 6, 0}},
00553 
00554     {{"_TSD", 0, ACPI_RTYPE_PACKAGE}}, /* Variable-length (Pkgs) each 5Int with count */
00555                     {{{ACPI_PTYPE2_COUNT,ACPI_RTYPE_INTEGER, 5,0}, 0,0}},
00556 
00557     {{"_TSP", 0, ACPI_RTYPE_INTEGER}},
00558     {{"_TSS", 0, ACPI_RTYPE_PACKAGE}}, /* Variable-length (Pkgs) each 5Int */
00559                     {{{ACPI_PTYPE2, ACPI_RTYPE_INTEGER, 5,0}, 0,0}},
00560 
00561     {{"_TST", 0, ACPI_RTYPE_INTEGER}},
00562     {{"_TTS", 1, 0}},
00563     {{"_TZD", 0, ACPI_RTYPE_PACKAGE}}, /* Variable-length (Refs) */
00564                     {{{ACPI_PTYPE1_VAR, ACPI_RTYPE_REFERENCE, 0,0}, 0,0}},
00565 
00566     {{"_TZM", 0, ACPI_RTYPE_REFERENCE}},
00567     {{"_TZP", 0, ACPI_RTYPE_INTEGER}},
00568     {{"_UID", 0, ACPI_RTYPE_INTEGER | ACPI_RTYPE_STRING}},
00569     {{"_UPC", 0, ACPI_RTYPE_PACKAGE}}, /* Fixed-length (4 Int) */
00570                     {{{ACPI_PTYPE1_FIXED, ACPI_RTYPE_INTEGER, 4,0}, 0,0}},
00571 
00572     {{"_UPD", 0, ACPI_RTYPE_INTEGER}},
00573     {{"_UPP", 0, ACPI_RTYPE_INTEGER}},
00574     {{"_VPO", 0, ACPI_RTYPE_INTEGER}},
00575 
00576     /* Acpi 1.0 defined _WAK with no return value. Later, it was changed to return a package */
00577 
00578     {{"_WAK", 1, ACPI_RTYPE_NONE | ACPI_RTYPE_INTEGER | ACPI_RTYPE_PACKAGE}},
00579                     {{{ACPI_PTYPE1_FIXED, ACPI_RTYPE_INTEGER, 2,0}, 0,0}}, /* Fixed-length (2 Int), but is optional */
00580 
00581     /* _WDG/_WED are MS extensions defined by "Windows Instrumentation" */
00582 
00583     {{"_WDG", 0, ACPI_RTYPE_BUFFER}},
00584     {{"_WED", 1, ACPI_RTYPE_INTEGER | ACPI_RTYPE_STRING | ACPI_RTYPE_BUFFER}},
00585 
00586     {{{0,0,0,0}, 0,0}} /* Table terminator */
00587 };
00588 
00589 #if 0
00590 
00591     /* This is an internally implemented control method, no need to check */
00592     {{"_OSI", 1, ACPI_RTYPE_INTEGER}},
00593 
00594     /* TBD: */
00595 
00596     _PRT - currently ignore reversed entries. Attempt to fix here?
00597     Think about possibly fixing package elements like _BIF, etc.
00598 #endif
00599 #endif
00600 #endif

Generated on Sat May 26 2012 04:25:52 for ReactOS by doxygen 1.7.6.1

ReactOS is a registered trademark or a trademark of ReactOS Foundation in the United States and other countries.