2008-09-28 11:26:17 +04:00
/******************************************************************************
*
* Name : acpredef - Information table for ACPI predefined methods and objects
* $ Revision : 1.1 $
*
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
/*
2012-01-12 09:27:23 +04:00
* Copyright ( C ) 2000 - 2012 , Intel Corp .
2008-09-28 11:26:17 +04:00
* All rights reserved .
*
* Redistribution and use in source and binary forms , with or without
* modification , are permitted provided that the following conditions
* are met :
* 1. Redistributions of source code must retain the above copyright
* notice , this list of conditions , and the following disclaimer ,
* without modification .
* 2. Redistributions in binary form must reproduce at minimum a disclaimer
* substantially similar to the " NO WARRANTY " disclaimer below
* ( " Disclaimer " ) and any redistribution must be conditioned upon
* including a substantially similar Disclaimer requirement for further
* binary redistribution .
* 3. Neither the names of the above - listed copyright holders nor the names
* of any contributors may be used to endorse or promote products derived
* from this software without specific prior written permission .
*
* Alternatively , this software may be distributed under the terms of the
* GNU General Public License ( " GPL " ) version 2 as published by the Free
* Software Foundation .
*
* NO WARRANTY
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* " AS IS " AND ANY EXPRESS OR IMPLIED WARRANTIES , INCLUDING , BUT NOT
* LIMITED TO , THE IMPLIED WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR
* A PARTICULAR PURPOSE ARE DISCLAIMED . IN NO EVENT SHALL THE COPYRIGHT
* HOLDERS OR CONTRIBUTORS BE LIABLE FOR SPECIAL , EXEMPLARY , OR CONSEQUENTIAL
* DAMAGES ( INCLUDING , BUT NOT LIMITED TO , PROCUREMENT OF SUBSTITUTE GOODS
* OR SERVICES ; LOSS OF USE , DATA , OR PROFITS ; OR BUSINESS INTERRUPTION )
* HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY , WHETHER IN CONTRACT ,
* STRICT LIABILITY , OR TORT ( INCLUDING NEGLIGENCE OR OTHERWISE ) ARISING
* IN ANY WAY OUT OF THE USE OF THIS SOFTWARE , EVEN IF ADVISED OF THE
* POSSIBILITY OF SUCH DAMAGES .
*/
# ifndef __ACPREDEF_H__
# define __ACPREDEF_H__
/******************************************************************************
*
* Return Package types
*
* 1 ) PTYPE1 packages do not contain sub - packages .
*
* ACPI_PTYPE1_FIXED : Fixed length , 1 or 2 object types :
2009-02-18 09:07:58 +03:00
* object type
* count
* object type
* count
2008-09-28 11:26:17 +04:00
*
* ACPI_PTYPE1_VAR : Variable length :
2009-02-18 09:07:58 +03:00
* object type ( Int / Buf / Ref )
2008-09-28 11:26:17 +04:00
*
2009-02-18 09:07:58 +03:00
* ACPI_PTYPE1_OPTION : Package has some required and some optional elements
* ( Used for _PRW )
2008-09-28 11:26:17 +04:00
*
*
2009-08-13 10:30:16 +04:00
* 2 ) PTYPE2 packages contain a Variable - length number of sub - packages . Each
* of the different types describe the contents of each of the sub - packages .
2008-09-28 11:26:17 +04:00
*
* ACPI_PTYPE2 : Each subpackage contains 1 or 2 object types :
2009-02-18 09:07:58 +03:00
* object type
* count
* object type
* count
* ( Used for _ALR , _MLS , _PSS , _TRT , _TSS )
2008-09-28 11:26:17 +04:00
*
* ACPI_PTYPE2_COUNT : Each subpackage has a count as first element :
2009-02-18 09:07:58 +03:00
* object type
* ( Used for _CSD , _PSD , _TSD )
2008-09-28 11:26:17 +04:00
*
* ACPI_PTYPE2_PKG_COUNT : Count of subpackages at start , 1 or 2 object types :
2009-02-18 09:07:58 +03:00
* object type
* count
* object type
* count
* ( Used for _CST )
2008-09-28 11:26:17 +04:00
*
2009-02-18 09:07:58 +03:00
* ACPI_PTYPE2_FIXED : Each subpackage is of fixed length
* ( Used for _PRT )
2008-09-28 11:26:17 +04:00
*
* ACPI_PTYPE2_MIN : Each subpackage has a variable but minimum length
2009-02-18 09:07:58 +03:00
* ( Used for _HPX )
2008-09-28 11:26:17 +04:00
*
2009-07-24 07:22:11 +04:00
* ACPI_PTYPE2_REV_FIXED : Revision at start , each subpackage is Fixed - length
2009-08-13 10:30:16 +04:00
* ( Used for _ART , _FPS )
2009-07-24 07:22:11 +04:00
*
2011-11-16 10:59:17 +04:00
* ACPI_PTYPE2_FIX_VAR : Each subpackage consists of some fixed - length elements
* followed by an optional element
* object type
* count
* object type
* count = 0 ( optional )
* ( Used for _DLM )
*
2008-09-28 11:26:17 +04:00
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
enum acpi_return_package_types {
ACPI_PTYPE1_FIXED = 1 ,
ACPI_PTYPE1_VAR = 2 ,
ACPI_PTYPE1_OPTION = 3 ,
ACPI_PTYPE2 = 4 ,
ACPI_PTYPE2_COUNT = 5 ,
ACPI_PTYPE2_PKG_COUNT = 6 ,
ACPI_PTYPE2_FIXED = 7 ,
2009-07-24 07:22:11 +04:00
ACPI_PTYPE2_MIN = 8 ,
2011-11-16 10:59:17 +04:00
ACPI_PTYPE2_REV_FIXED = 9 ,
ACPI_PTYPE2_FIX_VAR = 10
2008-09-28 11:26:17 +04:00
} ;
2009-08-13 10:30:16 +04:00
# ifdef ACPI_CREATE_PREDEFINED_TABLE
2008-09-28 11:26:17 +04:00
/*
* Predefined method / object information table .
*
* These are the names that can actually be evaluated via acpi_evaluate_object .
* Not present in this table are the following :
*
* 1 ) Predefined / Reserved names that are never evaluated via acpi_evaluate_object :
* _Lxx and _Exx GPE methods
* _Qxx EC methods
* _T_x compiler temporary variables
*
* 2 ) Predefined names that never actually exist within the AML code :
* Predefined resource descriptor field names
*
* 3 ) Predefined names that are implemented within ACPICA :
* _OSI
*
* 4 ) Some predefined names that are not documented within the ACPI spec .
* _WDG , _WED
*
* The main entries in the table each contain the following items :
*
* Name - The ACPI reserved name
* param_count - Number of arguments to the method
* expected_btypes - Allowed type ( s ) for the return value .
* 0 means that no return value is expected .
*
* For methods that return packages , the next entry in the table contains
* information about the expected structure of the package . This information
* is saved here ( rather than in a separate table ) in order to minimize the
* overall size of the stored data .
*/
2009-07-27 07:31:10 +04:00
static const union acpi_predefined_info predefined_names [ ] =
{
{ { " _AC0 " , 0 , ACPI_RTYPE_INTEGER } } ,
{ { " _AC1 " , 0 , ACPI_RTYPE_INTEGER } } ,
{ { " _AC2 " , 0 , ACPI_RTYPE_INTEGER } } ,
{ { " _AC3 " , 0 , ACPI_RTYPE_INTEGER } } ,
{ { " _AC4 " , 0 , ACPI_RTYPE_INTEGER } } ,
{ { " _AC5 " , 0 , ACPI_RTYPE_INTEGER } } ,
{ { " _AC6 " , 0 , ACPI_RTYPE_INTEGER } } ,
{ { " _AC7 " , 0 , ACPI_RTYPE_INTEGER } } ,
{ { " _AC8 " , 0 , ACPI_RTYPE_INTEGER } } ,
{ { " _AC9 " , 0 , ACPI_RTYPE_INTEGER } } ,
{ { " _ADR " , 0 , ACPI_RTYPE_INTEGER } } ,
2011-11-16 10:59:17 +04:00
{ { " _AEI " , 0 , ACPI_RTYPE_BUFFER } } ,
2009-07-27 07:31:10 +04:00
{ { " _AL0 " , 0 , ACPI_RTYPE_PACKAGE } } , /* Variable-length (Refs) */
{ { { ACPI_PTYPE1_VAR , ACPI_RTYPE_REFERENCE , 0 , 0 } , 0 , 0 } } ,
{ { " _AL1 " , 0 , ACPI_RTYPE_PACKAGE } } , /* Variable-length (Refs) */
{ { { ACPI_PTYPE1_VAR , ACPI_RTYPE_REFERENCE , 0 , 0 } , 0 , 0 } } ,
{ { " _AL2 " , 0 , ACPI_RTYPE_PACKAGE } } , /* Variable-length (Refs) */
{ { { ACPI_PTYPE1_VAR , ACPI_RTYPE_REFERENCE , 0 , 0 } , 0 , 0 } } ,
{ { " _AL3 " , 0 , ACPI_RTYPE_PACKAGE } } , /* Variable-length (Refs) */
{ { { ACPI_PTYPE1_VAR , ACPI_RTYPE_REFERENCE , 0 , 0 } , 0 , 0 } } ,
{ { " _AL4 " , 0 , ACPI_RTYPE_PACKAGE } } , /* Variable-length (Refs) */
{ { { ACPI_PTYPE1_VAR , ACPI_RTYPE_REFERENCE , 0 , 0 } , 0 , 0 } } ,
{ { " _AL5 " , 0 , ACPI_RTYPE_PACKAGE } } , /* Variable-length (Refs) */
{ { { ACPI_PTYPE1_VAR , ACPI_RTYPE_REFERENCE , 0 , 0 } , 0 , 0 } } ,
{ { " _AL6 " , 0 , ACPI_RTYPE_PACKAGE } } , /* Variable-length (Refs) */
{ { { ACPI_PTYPE1_VAR , ACPI_RTYPE_REFERENCE , 0 , 0 } , 0 , 0 } } ,
{ { " _AL7 " , 0 , ACPI_RTYPE_PACKAGE } } , /* Variable-length (Refs) */
{ { { ACPI_PTYPE1_VAR , ACPI_RTYPE_REFERENCE , 0 , 0 } , 0 , 0 } } ,
{ { " _AL8 " , 0 , ACPI_RTYPE_PACKAGE } } , /* Variable-length (Refs) */
{ { { ACPI_PTYPE1_VAR , ACPI_RTYPE_REFERENCE , 0 , 0 } , 0 , 0 } } ,
{ { " _AL9 " , 0 , ACPI_RTYPE_PACKAGE } } , /* Variable-length (Refs) */
{ { { ACPI_PTYPE1_VAR , ACPI_RTYPE_REFERENCE , 0 , 0 } , 0 , 0 } } ,
{ { " _ALC " , 0 , ACPI_RTYPE_INTEGER } } ,
{ { " _ALI " , 0 , ACPI_RTYPE_INTEGER } } ,
{ { " _ALP " , 0 , ACPI_RTYPE_INTEGER } } ,
{ { " _ALR " , 0 , ACPI_RTYPE_PACKAGE } } , /* Variable-length (Pkgs) each 2 (Ints) */
{ { { ACPI_PTYPE2 , ACPI_RTYPE_INTEGER , 2 , 0 } , 0 , 0 } } ,
{ { " _ALT " , 0 , ACPI_RTYPE_INTEGER } } ,
2009-08-13 10:30:16 +04:00
{ { " _ART " , 0 , ACPI_RTYPE_PACKAGE } } , /* Variable-length (1 Int(rev), n Pkg (2 Ref/11 Int) */
{ { { ACPI_PTYPE2_REV_FIXED , ACPI_RTYPE_REFERENCE , 2 , ACPI_RTYPE_INTEGER } ,
11 , 0 } } ,
2009-07-27 07:31:10 +04:00
{ { " _BBN " , 0 , ACPI_RTYPE_INTEGER } } ,
{ { " _BCL " , 0 , ACPI_RTYPE_PACKAGE } } , /* Variable-length (Ints) */
{ { { ACPI_PTYPE1_VAR , ACPI_RTYPE_INTEGER , 0 , 0 } , 0 , 0 } } ,
{ { " _BCM " , 1 , 0 } } ,
2009-08-13 10:30:16 +04:00
{ { " _BCT " , 1 , ACPI_RTYPE_INTEGER } } ,
2009-07-27 07:31:10 +04:00
{ { " _BDN " , 0 , ACPI_RTYPE_INTEGER } } ,
{ { " _BFS " , 1 , 0 } } ,
2009-11-25 05:34:35 +03:00
{ { " _BIF " , 0 , ACPI_RTYPE_PACKAGE } } , /* Fixed-length (9 Int),(4 Str/Buf) */
{ { { ACPI_PTYPE1_FIXED , ACPI_RTYPE_INTEGER , 9 ,
ACPI_RTYPE_STRING | ACPI_RTYPE_BUFFER } , 4 , 0 } } ,
2009-07-27 07:31:10 +04:00
2009-08-13 10:30:16 +04:00
{ { " _BIX " , 0 , ACPI_RTYPE_PACKAGE } } , /* Fixed-length (16 Int),(4 Str) */
{ { { ACPI_PTYPE1_FIXED , ACPI_RTYPE_INTEGER , 16 , ACPI_RTYPE_STRING } , 4 ,
0 } } ,
2009-07-27 07:31:10 +04:00
{ { " _BLT " , 3 , 0 } } ,
2009-08-13 10:30:16 +04:00
{ { " _BMA " , 1 , ACPI_RTYPE_INTEGER } } ,
2009-07-27 07:31:10 +04:00
{ { " _BMC " , 1 , 0 } } ,
{ { " _BMD " , 0 , ACPI_RTYPE_PACKAGE } } , /* Fixed-length (5 Int) */
{ { { ACPI_PTYPE1_FIXED , ACPI_RTYPE_INTEGER , 5 , 0 } , 0 , 0 } } ,
2009-08-13 10:30:16 +04:00
{ { " _BMS " , 1 , ACPI_RTYPE_INTEGER } } ,
2009-07-27 07:31:10 +04:00
{ { " _BQC " , 0 , ACPI_RTYPE_INTEGER } } ,
{ { " _BST " , 0 , ACPI_RTYPE_PACKAGE } } , /* Fixed-length (4 Int) */
{ { { ACPI_PTYPE1_FIXED , ACPI_RTYPE_INTEGER , 4 , 0 } , 0 , 0 } } ,
{ { " _BTM " , 1 , ACPI_RTYPE_INTEGER } } ,
{ { " _BTP " , 1 , 0 } } ,
{ { " _CBA " , 0 , ACPI_RTYPE_INTEGER } } , /* See PCI firmware spec 3.0 */
2009-08-13 10:30:16 +04:00
{ { " _CDM " , 0 , ACPI_RTYPE_INTEGER } } ,
2009-07-27 07:31:10 +04:00
{ { " _CID " , 0 , ACPI_RTYPE_INTEGER | ACPI_RTYPE_STRING | ACPI_RTYPE_PACKAGE } } , /* Variable-length (Ints/Strs) */
{ { { ACPI_PTYPE1_VAR , ACPI_RTYPE_INTEGER | ACPI_RTYPE_STRING , 0 , 0 } , 0 , 0 } } ,
2011-11-16 10:59:17 +04:00
{ { " _CLS " , 0 , ACPI_RTYPE_PACKAGE } } , /* Fixed-length (3 Int) */
{ { { ACPI_PTYPE1_FIXED , ACPI_RTYPE_INTEGER , 3 , 0 } , 0 , 0 } } ,
{ { " _CPC " , 0 , ACPI_RTYPE_PACKAGE } } , /* Variable-length (Ints/Bufs) */
{ { { ACPI_PTYPE1_VAR , ACPI_RTYPE_INTEGER | ACPI_RTYPE_BUFFER , 0 , 0 } , 0 ,
0 } } ,
2009-07-27 07:31:10 +04:00
{ { " _CRS " , 0 , ACPI_RTYPE_BUFFER } } ,
{ { " _CRT " , 0 , ACPI_RTYPE_INTEGER } } ,
{ { " _CSD " , 0 , ACPI_RTYPE_PACKAGE } } , /* Variable-length (1 Int(n), n-1 Int) */
{ { { ACPI_PTYPE2_COUNT , ACPI_RTYPE_INTEGER , 0 , 0 } , 0 , 0 } } ,
{ { " _CST " , 0 , ACPI_RTYPE_PACKAGE } } , /* Variable-length (1 Int(n), n Pkg (1 Buf/3 Int) */
{ { { ACPI_PTYPE2_PKG_COUNT , ACPI_RTYPE_BUFFER , 1 , ACPI_RTYPE_INTEGER } , 3 , 0 } } ,
2011-11-16 10:59:17 +04:00
{ { " _CWS " , 1 , ACPI_RTYPE_INTEGER } } ,
2009-07-27 07:31:10 +04:00
{ { " _DCK " , 1 , ACPI_RTYPE_INTEGER } } ,
{ { " _DCS " , 0 , ACPI_RTYPE_INTEGER } } ,
{ { " _DDC " , 1 , ACPI_RTYPE_INTEGER | ACPI_RTYPE_BUFFER } } ,
{ { " _DDN " , 0 , ACPI_RTYPE_STRING } } ,
2011-11-16 10:59:17 +04:00
{ { " _DEP " , 0 , ACPI_RTYPE_PACKAGE } } , /* Variable-length (Refs) */
{ { { ACPI_PTYPE1_VAR , ACPI_RTYPE_REFERENCE , 0 , 0 } , 0 , 0 } } ,
2009-07-27 07:31:10 +04:00
{ { " _DGS " , 0 , ACPI_RTYPE_INTEGER } } ,
{ { " _DIS " , 0 , 0 } } ,
2011-11-16 10:59:17 +04:00
{ { " _DLM " , 0 , ACPI_RTYPE_PACKAGE } } , /* Variable-length (Pkgs) each (1 Ref, 0/1 Optional Buf/Ref) */
{ { { ACPI_PTYPE2_FIX_VAR , ACPI_RTYPE_REFERENCE , 1 ,
ACPI_RTYPE_REFERENCE | ACPI_RTYPE_BUFFER } , 0 , 0 } } ,
2009-07-27 07:31:10 +04:00
{ { " _DMA " , 0 , ACPI_RTYPE_BUFFER } } ,
{ { " _DOD " , 0 , ACPI_RTYPE_PACKAGE } } , /* Variable-length (Ints) */
{ { { ACPI_PTYPE1_VAR , ACPI_RTYPE_INTEGER , 0 , 0 } , 0 , 0 } } ,
{ { " _DOS " , 1 , 0 } } ,
{ { " _DSM " , 4 , ACPI_RTYPE_ALL } } , /* Must return a type, but it can be of any type */
{ { " _DSS " , 1 , 0 } } ,
{ { " _DSW " , 3 , 0 } } ,
2009-08-13 10:30:16 +04:00
{ { " _DTI " , 1 , 0 } } ,
2009-07-27 07:31:10 +04:00
{ { " _EC_ " , 0 , ACPI_RTYPE_INTEGER } } ,
{ { " _EDL " , 0 , ACPI_RTYPE_PACKAGE } } , /* Variable-length (Refs)*/
{ { { ACPI_PTYPE1_VAR , ACPI_RTYPE_REFERENCE , 0 , 0 } , 0 , 0 } } ,
{ { " _EJ0 " , 1 , 0 } } ,
{ { " _EJ1 " , 1 , 0 } } ,
{ { " _EJ2 " , 1 , 0 } } ,
{ { " _EJ3 " , 1 , 0 } } ,
{ { " _EJ4 " , 1 , 0 } } ,
{ { " _EJD " , 0 , ACPI_RTYPE_STRING } } ,
2011-11-16 10:59:17 +04:00
{ { " _EVT " , 1 , 0 } } ,
2009-07-27 07:31:10 +04:00
{ { " _FDE " , 0 , ACPI_RTYPE_BUFFER } } ,
{ { " _FDI " , 0 , ACPI_RTYPE_PACKAGE } } , /* Fixed-length (16 Int) */
{ { { ACPI_PTYPE1_FIXED , ACPI_RTYPE_INTEGER , 16 , 0 } , 0 , 0 } } ,
{ { " _FDM " , 1 , 0 } } ,
2009-08-13 10:30:16 +04:00
{ { " _FIF " , 0 , ACPI_RTYPE_PACKAGE } } , /* Fixed-length (4 Int) */
{ { { ACPI_PTYPE1_FIXED , ACPI_RTYPE_INTEGER , 4 , 0 } , 0 , 0 } } ,
2009-07-27 07:31:10 +04:00
{ { " _FIX " , 0 , ACPI_RTYPE_PACKAGE } } , /* Variable-length (Ints) */
{ { { ACPI_PTYPE1_VAR , ACPI_RTYPE_INTEGER , 0 , 0 } , 0 , 0 } } ,
2009-08-13 10:30:16 +04:00
{ { " _FPS " , 0 , ACPI_RTYPE_PACKAGE } } , /* Variable-length (1 Int(rev), n Pkg (5 Int) */
{ { { ACPI_PTYPE2_REV_FIXED , ACPI_RTYPE_INTEGER , 5 , 0 } , 0 , 0 } } ,
{ { " _FSL " , 1 , 0 } } ,
{ { " _FST " , 0 , ACPI_RTYPE_PACKAGE } } , /* Fixed-length (3 Int) */
{ { { ACPI_PTYPE1_FIXED , ACPI_RTYPE_INTEGER , 3 , 0 } , 0 , 0 } } ,
{ { " _GAI " , 0 , ACPI_RTYPE_INTEGER } } ,
2011-11-16 10:59:17 +04:00
{ { " _GCP " , 0 , ACPI_RTYPE_INTEGER } } ,
2009-08-13 10:30:16 +04:00
{ { " _GHL " , 0 , ACPI_RTYPE_INTEGER } } ,
2009-07-27 07:31:10 +04:00
{ { " _GLK " , 0 , ACPI_RTYPE_INTEGER } } ,
{ { " _GPD " , 0 , ACPI_RTYPE_INTEGER } } ,
{ { " _GPE " , 0 , ACPI_RTYPE_INTEGER } } , /* _GPE method, not _GPE scope */
2011-11-16 10:59:17 +04:00
{ { " _GRT " , 0 , ACPI_RTYPE_BUFFER } } ,
2009-07-27 07:31:10 +04:00
{ { " _GSB " , 0 , ACPI_RTYPE_INTEGER } } ,
{ { " _GTF " , 0 , ACPI_RTYPE_BUFFER } } ,
{ { " _GTM " , 0 , ACPI_RTYPE_BUFFER } } ,
{ { " _GTS " , 1 , 0 } } ,
2011-11-16 10:59:17 +04:00
{ { " _GWS " , 1 , ACPI_RTYPE_INTEGER } } ,
2009-07-27 07:31:10 +04:00
{ { " _HID " , 0 , ACPI_RTYPE_INTEGER | ACPI_RTYPE_STRING } } ,
{ { " _HOT " , 0 , ACPI_RTYPE_INTEGER } } ,
{ { " _HPP " , 0 , ACPI_RTYPE_PACKAGE } } , /* Fixed-length (4 Int) */
{ { { ACPI_PTYPE1_FIXED , ACPI_RTYPE_INTEGER , 4 , 0 } , 0 , 0 } } ,
2008-09-28 11:26:17 +04:00
/*
2009-07-27 07:31:10 +04:00
* For _HPX , a single package is returned , containing a Variable - length number
* of sub - packages . Each sub - package contains a PCI record setting .
* There are several different type of record settings , of different
* lengths , but all elements of all settings are Integers .
2008-09-28 11:26:17 +04:00
*/
2009-07-27 07:31:10 +04:00
{ { " _HPX " , 0 , ACPI_RTYPE_PACKAGE } } , /* Variable-length (Pkgs) each (var Ints) */
{ { { ACPI_PTYPE2_MIN , ACPI_RTYPE_INTEGER , 5 , 0 } , 0 , 0 } } ,
2011-11-16 10:59:17 +04:00
{ { " _HRV " , 0 , ACPI_RTYPE_INTEGER } } ,
2009-07-27 07:31:10 +04:00
{ { " _IFT " , 0 , ACPI_RTYPE_INTEGER } } , /* See IPMI spec */
{ { " _INI " , 0 , 0 } } ,
{ { " _IRC " , 0 , 0 } } ,
{ { " _LCK " , 1 , 0 } } ,
{ { " _LID " , 0 , ACPI_RTYPE_INTEGER } } ,
{ { " _MAT " , 0 , ACPI_RTYPE_BUFFER } } ,
2009-08-13 10:30:16 +04:00
{ { " _MBM " , 0 , ACPI_RTYPE_PACKAGE } } , /* Fixed-length (8 Int) */
{ { { ACPI_PTYPE1_FIXED , ACPI_RTYPE_INTEGER , 8 , 0 } , 0 , 0 } } ,
2009-07-27 07:31:10 +04:00
{ { " _MLS " , 0 , ACPI_RTYPE_PACKAGE } } , /* Variable-length (Pkgs) each (2 Str) */
{ { { ACPI_PTYPE2 , ACPI_RTYPE_STRING , 2 , 0 } , 0 , 0 } } ,
{ { " _MSG " , 1 , 0 } } ,
2009-08-13 10:30:16 +04:00
{ { " _MSM " , 4 , ACPI_RTYPE_INTEGER } } ,
{ { " _NTT " , 0 , ACPI_RTYPE_INTEGER } } ,
2009-07-27 07:31:10 +04:00
{ { " _OFF " , 0 , 0 } } ,
{ { " _ON_ " , 0 , 0 } } ,
{ { " _OS_ " , 0 , ACPI_RTYPE_STRING } } ,
{ { " _OSC " , 4 , ACPI_RTYPE_BUFFER } } ,
{ { " _OST " , 3 , 0 } } ,
2009-08-13 10:30:16 +04:00
{ { " _PAI " , 1 , ACPI_RTYPE_INTEGER } } ,
2009-07-27 07:31:10 +04:00
{ { " _PCL " , 0 , ACPI_RTYPE_PACKAGE } } , /* Variable-length (Refs) */
{ { { ACPI_PTYPE1_VAR , ACPI_RTYPE_REFERENCE , 0 , 0 } , 0 , 0 } } ,
{ { " _PCT " , 0 , ACPI_RTYPE_PACKAGE } } , /* Fixed-length (2 Buf) */
{ { { ACPI_PTYPE1_FIXED , ACPI_RTYPE_BUFFER , 2 , 0 } , 0 , 0 } } ,
{ { " _PDC " , 1 , 0 } } ,
2009-08-13 10:30:16 +04:00
{ { " _PDL " , 0 , ACPI_RTYPE_INTEGER } } ,
2009-07-27 07:31:10 +04:00
{ { " _PIC " , 1 , 0 } } ,
2009-08-13 10:30:16 +04:00
{ { " _PIF " , 0 , ACPI_RTYPE_PACKAGE } } , /* Fixed-length (3 Int),(3 Str) */
{ { { ACPI_PTYPE1_FIXED , ACPI_RTYPE_INTEGER , 3 , ACPI_RTYPE_STRING } , 3 , 0 } } ,
2009-07-27 07:31:10 +04:00
{ { " _PLD " , 0 , ACPI_RTYPE_PACKAGE } } , /* Variable-length (Bufs) */
{ { { ACPI_PTYPE1_VAR , ACPI_RTYPE_BUFFER , 0 , 0 } , 0 , 0 } } ,
2009-08-13 10:30:16 +04:00
{ { " _PMC " , 0 , ACPI_RTYPE_PACKAGE } } , /* Fixed-length (11 Int),(3 Str) */
{ { { ACPI_PTYPE1_FIXED , ACPI_RTYPE_INTEGER , 11 , ACPI_RTYPE_STRING } , 3 ,
0 } } ,
{ { " _PMD " , 0 , ACPI_RTYPE_PACKAGE } } , /* Variable-length (Refs) */
{ { { ACPI_PTYPE1_VAR , ACPI_RTYPE_REFERENCE , 0 , 0 } , 0 , 0 } } ,
{ { " _PMM " , 0 , ACPI_RTYPE_INTEGER } } ,
2009-07-27 07:31:10 +04:00
{ { " _PPC " , 0 , ACPI_RTYPE_INTEGER } } ,
{ { " _PPE " , 0 , ACPI_RTYPE_INTEGER } } , /* See dig64 spec */
{ { " _PR0 " , 0 , ACPI_RTYPE_PACKAGE } } , /* Variable-length (Refs) */
{ { { ACPI_PTYPE1_VAR , ACPI_RTYPE_REFERENCE , 0 , 0 } , 0 , 0 } } ,
{ { " _PR1 " , 0 , ACPI_RTYPE_PACKAGE } } , /* Variable-length (Refs) */
{ { { ACPI_PTYPE1_VAR , ACPI_RTYPE_REFERENCE , 0 , 0 } , 0 , 0 } } ,
{ { " _PR2 " , 0 , ACPI_RTYPE_PACKAGE } } , /* Variable-length (Refs) */
{ { { ACPI_PTYPE1_VAR , ACPI_RTYPE_REFERENCE , 0 , 0 } , 0 , 0 } } ,
2009-08-13 10:30:16 +04:00
{ { " _PR3 " , 0 , ACPI_RTYPE_PACKAGE } } , /* Variable-length (Refs) */
{ { { ACPI_PTYPE1_VAR , ACPI_RTYPE_REFERENCE , 0 , 0 } , 0 , 0 } } ,
2011-11-16 10:59:17 +04:00
{ { " _PRE " , 0 , ACPI_RTYPE_PACKAGE } } , /* Variable-length (Refs) */
{ { { ACPI_PTYPE1_VAR , ACPI_RTYPE_REFERENCE , 0 , 0 } , 0 , 0 } } ,
2009-08-13 10:30:16 +04:00
{ { " _PRL " , 0 , ACPI_RTYPE_PACKAGE } } , /* Variable-length (Refs) */
{ { { ACPI_PTYPE1_VAR , ACPI_RTYPE_REFERENCE , 0 , 0 } , 0 , 0 } } ,
2009-07-27 07:31:10 +04:00
{ { " _PRS " , 0 , ACPI_RTYPE_BUFFER } } ,
2008-09-28 11:26:17 +04:00
/*
2009-08-13 10:30:16 +04:00
* For _PRT , many BIOSs reverse the 3 rd and 4 th Package elements ( Source
* and source_index ) . This bug is so prevalent that there is code in the
* ACPICA Resource Manager to detect this and switch them back . For now ,
* do not allow and issue a warning . To allow this and eliminate the
* warning , add the ACPI_RTYPE_REFERENCE type to the 4 th element ( index 3 )
* in the statement below .
2008-09-28 11:26:17 +04:00
*/
2009-07-27 07:31:10 +04:00
{ { " _PRT " , 0 , ACPI_RTYPE_PACKAGE } } , /* Variable-length (Pkgs) each (4): Int,Int,Int/Ref,Int */
{ { { ACPI_PTYPE2_FIXED , 4 , ACPI_RTYPE_INTEGER , ACPI_RTYPE_INTEGER } ,
2009-08-13 10:30:16 +04:00
ACPI_RTYPE_INTEGER | ACPI_RTYPE_REFERENCE ,
ACPI_RTYPE_INTEGER } } ,
2009-07-27 07:31:10 +04:00
{ { " _PRW " , 0 , ACPI_RTYPE_PACKAGE } } , /* Variable-length (Pkgs) each: Pkg/Int,Int,[Variable-length Refs] (Pkg is Ref/Int) */
{ { { ACPI_PTYPE1_OPTION , 2 , ACPI_RTYPE_INTEGER | ACPI_RTYPE_PACKAGE ,
ACPI_RTYPE_INTEGER } , ACPI_RTYPE_REFERENCE , 0 } } ,
{ { " _PS0 " , 0 , 0 } } ,
{ { " _PS1 " , 0 , 0 } } ,
{ { " _PS2 " , 0 , 0 } } ,
{ { " _PS3 " , 0 , 0 } } ,
{ { " _PSC " , 0 , ACPI_RTYPE_INTEGER } } ,
{ { " _PSD " , 0 , ACPI_RTYPE_PACKAGE } } , /* Variable-length (Pkgs) each (5 Int) with count */
{ { { ACPI_PTYPE2_COUNT , ACPI_RTYPE_INTEGER , 0 , 0 } , 0 , 0 } } ,
2011-11-16 10:59:17 +04:00
{ { " _PSE " , 1 , 0 } } ,
2009-07-27 07:31:10 +04:00
{ { " _PSL " , 0 , ACPI_RTYPE_PACKAGE } } , /* Variable-length (Refs) */
{ { { ACPI_PTYPE1_VAR , ACPI_RTYPE_REFERENCE , 0 , 0 } , 0 , 0 } } ,
{ { " _PSR " , 0 , ACPI_RTYPE_INTEGER } } ,
{ { " _PSS " , 0 , ACPI_RTYPE_PACKAGE } } , /* Variable-length (Pkgs) each (6 Int) */
{ { { ACPI_PTYPE2 , ACPI_RTYPE_INTEGER , 6 , 0 } , 0 , 0 } } ,
{ { " _PSV " , 0 , ACPI_RTYPE_INTEGER } } ,
{ { " _PSW " , 1 , 0 } } ,
{ { " _PTC " , 0 , ACPI_RTYPE_PACKAGE } } , /* Fixed-length (2 Buf) */
{ { { ACPI_PTYPE1_FIXED , ACPI_RTYPE_BUFFER , 2 , 0 } , 0 , 0 } } ,
2009-08-13 10:30:16 +04:00
{ { " _PTP " , 2 , ACPI_RTYPE_INTEGER } } ,
2009-07-27 07:31:10 +04:00
{ { " _PTS " , 1 , 0 } } ,
2009-08-13 10:30:16 +04:00
{ { " _PUR " , 0 , ACPI_RTYPE_PACKAGE } } , /* Fixed-length (2 Int) */
{ { { ACPI_PTYPE1_FIXED , ACPI_RTYPE_INTEGER , 2 , 0 } , 0 , 0 } } ,
2009-07-27 07:31:10 +04:00
{ { " _PXM " , 0 , ACPI_RTYPE_INTEGER } } ,
{ { " _REG " , 2 , 0 } } ,
{ { " _REV " , 0 , ACPI_RTYPE_INTEGER } } ,
{ { " _RMV " , 0 , ACPI_RTYPE_INTEGER } } ,
{ { " _ROM " , 2 , ACPI_RTYPE_BUFFER } } ,
{ { " _RTV " , 0 , ACPI_RTYPE_INTEGER } } ,
2008-09-28 11:26:17 +04:00
/*
2009-07-27 07:31:10 +04:00
* For _S0_ through _S5_ , the ACPI spec defines a return Package
* containing 1 Integer , but most DSDTs have it wrong - 2 , 3 , or 4 integers .
* Allow this by making the objects " Variable-length length " , but all elements
* must be Integers .
2008-09-28 11:26:17 +04:00
*/
2009-07-27 07:31:10 +04:00
{ { " _S0_ " , 0 , ACPI_RTYPE_PACKAGE } } , /* Fixed-length (1 Int) */
{ { { ACPI_PTYPE1_VAR , ACPI_RTYPE_INTEGER , 1 , 0 } , 0 , 0 } } ,
{ { " _S1_ " , 0 , ACPI_RTYPE_PACKAGE } } , /* Fixed-length (1 Int) */
{ { { ACPI_PTYPE1_VAR , ACPI_RTYPE_INTEGER , 1 , 0 } , 0 , 0 } } ,
{ { " _S2_ " , 0 , ACPI_RTYPE_PACKAGE } } , /* Fixed-length (1 Int) */
{ { { ACPI_PTYPE1_VAR , ACPI_RTYPE_INTEGER , 1 , 0 } , 0 , 0 } } ,
{ { " _S3_ " , 0 , ACPI_RTYPE_PACKAGE } } , /* Fixed-length (1 Int) */
{ { { ACPI_PTYPE1_VAR , ACPI_RTYPE_INTEGER , 1 , 0 } , 0 , 0 } } ,
{ { " _S4_ " , 0 , ACPI_RTYPE_PACKAGE } } , /* Fixed-length (1 Int) */
{ { { ACPI_PTYPE1_VAR , ACPI_RTYPE_INTEGER , 1 , 0 } , 0 , 0 } } ,
{ { " _S5_ " , 0 , ACPI_RTYPE_PACKAGE } } , /* Fixed-length (1 Int) */
{ { { ACPI_PTYPE1_VAR , ACPI_RTYPE_INTEGER , 1 , 0 } , 0 , 0 } } ,
{ { " _S1D " , 0 , ACPI_RTYPE_INTEGER } } ,
{ { " _S2D " , 0 , ACPI_RTYPE_INTEGER } } ,
{ { " _S3D " , 0 , ACPI_RTYPE_INTEGER } } ,
{ { " _S4D " , 0 , ACPI_RTYPE_INTEGER } } ,
{ { " _S0W " , 0 , ACPI_RTYPE_INTEGER } } ,
{ { " _S1W " , 0 , ACPI_RTYPE_INTEGER } } ,
{ { " _S2W " , 0 , ACPI_RTYPE_INTEGER } } ,
{ { " _S3W " , 0 , ACPI_RTYPE_INTEGER } } ,
{ { " _S4W " , 0 , ACPI_RTYPE_INTEGER } } ,
{ { " _SBS " , 0 , ACPI_RTYPE_INTEGER } } ,
{ { " _SCP " , 0x13 , 0 } } , /* Acpi 1.0 allowed 1 arg. Acpi 3.0 expanded to 3 args. Allow both. */
/* Note: the 3-arg definition may be removed for ACPI 4.0 */
{ { " _SDD " , 1 , 0 } } ,
{ { " _SEG " , 0 , ACPI_RTYPE_INTEGER } } ,
2009-08-13 10:30:16 +04:00
{ { " _SHL " , 1 , ACPI_RTYPE_INTEGER } } ,
2009-07-27 07:31:10 +04:00
{ { " _SLI " , 0 , ACPI_RTYPE_BUFFER } } ,
{ { " _SPD " , 1 , ACPI_RTYPE_INTEGER } } ,
{ { " _SRS " , 1 , 0 } } ,
2011-11-16 10:59:17 +04:00
{ { " _SRT " , 1 , ACPI_RTYPE_INTEGER } } ,
2009-07-27 07:31:10 +04:00
{ { " _SRV " , 0 , ACPI_RTYPE_INTEGER } } , /* See IPMI spec */
{ { " _SST " , 1 , 0 } } ,
{ { " _STA " , 0 , ACPI_RTYPE_INTEGER } } ,
{ { " _STM " , 3 , 0 } } ,
2009-08-13 10:30:16 +04:00
{ { " _STP " , 2 , ACPI_RTYPE_INTEGER } } ,
2009-07-27 07:31:10 +04:00
{ { " _STR " , 0 , ACPI_RTYPE_BUFFER } } ,
2009-08-13 10:30:16 +04:00
{ { " _STV " , 2 , ACPI_RTYPE_INTEGER } } ,
2011-11-16 10:59:17 +04:00
{ { " _SUB " , 0 , ACPI_RTYPE_STRING } } ,
2009-07-27 07:31:10 +04:00
{ { " _SUN " , 0 , ACPI_RTYPE_INTEGER } } ,
{ { " _SWS " , 0 , ACPI_RTYPE_INTEGER } } ,
{ { " _TC1 " , 0 , ACPI_RTYPE_INTEGER } } ,
{ { " _TC2 " , 0 , ACPI_RTYPE_INTEGER } } ,
2011-06-14 06:44:51 +04:00
{ { " _TDL " , 0 , ACPI_RTYPE_INTEGER } } ,
2009-08-13 10:30:16 +04:00
{ { " _TIP " , 1 , ACPI_RTYPE_INTEGER } } ,
{ { " _TIV " , 1 , ACPI_RTYPE_INTEGER } } ,
2009-07-27 07:31:10 +04:00
{ { " _TMP " , 0 , ACPI_RTYPE_INTEGER } } ,
{ { " _TPC " , 0 , ACPI_RTYPE_INTEGER } } ,
{ { " _TPT " , 1 , 0 } } ,
2012-06-29 05:19:16 +04:00
{ { " _TRT " , 0 , ACPI_RTYPE_PACKAGE } } , /* Variable-length (Pkgs) each 2 Ref/6 Int */
2009-07-27 07:31:10 +04:00
{ { { ACPI_PTYPE2 , ACPI_RTYPE_REFERENCE , 2 , ACPI_RTYPE_INTEGER } , 6 , 0 } } ,
2012-06-29 05:19:16 +04:00
{ { " _TSD " , 0 , ACPI_RTYPE_PACKAGE } } , /* Variable-length (Pkgs) each 5 Int with count */
2009-07-27 07:31:10 +04:00
{ { { ACPI_PTYPE2_COUNT , ACPI_RTYPE_INTEGER , 5 , 0 } , 0 , 0 } } ,
{ { " _TSP " , 0 , ACPI_RTYPE_INTEGER } } ,
2012-06-29 05:19:16 +04:00
{ { " _TSS " , 0 , ACPI_RTYPE_PACKAGE } } , /* Variable-length (Pkgs) each 5 Int */
2009-07-27 07:31:10 +04:00
{ { { ACPI_PTYPE2 , ACPI_RTYPE_INTEGER , 5 , 0 } , 0 , 0 } } ,
{ { " _TST " , 0 , ACPI_RTYPE_INTEGER } } ,
{ { " _TTS " , 1 , 0 } } ,
{ { " _TZD " , 0 , ACPI_RTYPE_PACKAGE } } , /* Variable-length (Refs) */
{ { { ACPI_PTYPE1_VAR , ACPI_RTYPE_REFERENCE , 0 , 0 } , 0 , 0 } } ,
{ { " _TZM " , 0 , ACPI_RTYPE_REFERENCE } } ,
{ { " _TZP " , 0 , ACPI_RTYPE_INTEGER } } ,
{ { " _UID " , 0 , ACPI_RTYPE_INTEGER | ACPI_RTYPE_STRING } } ,
{ { " _UPC " , 0 , ACPI_RTYPE_PACKAGE } } , /* Fixed-length (4 Int) */
{ { { ACPI_PTYPE1_FIXED , ACPI_RTYPE_INTEGER , 4 , 0 } , 0 , 0 } } ,
{ { " _UPD " , 0 , ACPI_RTYPE_INTEGER } } ,
{ { " _UPP " , 0 , ACPI_RTYPE_INTEGER } } ,
{ { " _VPO " , 0 , ACPI_RTYPE_INTEGER } } ,
2008-09-28 11:26:17 +04:00
/* Acpi 1.0 defined _WAK with no return value. Later, it was changed to return a package */
2009-07-27 07:31:10 +04:00
{ { " _WAK " , 1 , ACPI_RTYPE_NONE | ACPI_RTYPE_INTEGER | ACPI_RTYPE_PACKAGE } } ,
{ { { ACPI_PTYPE1_FIXED , ACPI_RTYPE_INTEGER , 2 , 0 } , 0 , 0 } } , /* Fixed-length (2 Int), but is optional */
2010-05-26 07:18:35 +04:00
/* _WDG/_WED are MS extensions defined by "Windows Instrumentation" */
2008-09-28 11:26:17 +04:00
2010-05-26 07:18:35 +04:00
{ { " _WDG " , 0 , ACPI_RTYPE_BUFFER } } ,
{ { " _WED " , 1 ,
ACPI_RTYPE_INTEGER | ACPI_RTYPE_STRING | ACPI_RTYPE_BUFFER } } ,
2008-09-28 11:26:17 +04:00
2010-05-26 07:18:35 +04:00
{ { { 0 , 0 , 0 , 0 } , 0 , 0 } } /* Table terminator */
} ;
2008-09-28 11:26:17 +04:00
2010-05-26 07:18:35 +04:00
#if 0
2009-07-27 07:31:10 +04:00
/* This is an internally implemented control method, no need to check */
{ { " _OSI " , 1 , ACPI_RTYPE_INTEGER } } ,
2008-09-28 11:26:17 +04:00
2009-07-27 07:31:10 +04:00
/* TBD: */
2008-09-28 11:26:17 +04:00
2009-07-27 07:31:10 +04:00
_PRT - currently ignore reversed entries . attempt to fix here ?
think about possibly fixing package elements like _BIF , etc .
2008-09-28 11:26:17 +04:00
# endif
2009-07-27 07:31:10 +04:00
2008-09-28 11:26:17 +04:00
# endif
2009-08-13 10:30:16 +04:00
# endif