1aa2aa9a6SDana Myers /****************************************************************************** 2aa2aa9a6SDana Myers * 3aa2aa9a6SDana Myers * Name: acpredef - Information table for ACPI predefined methods and objects 4aa2aa9a6SDana Myers * 5aa2aa9a6SDana Myers *****************************************************************************/ 6aa2aa9a6SDana Myers 726f3cdf0SGordon Ross /* 8*de5d74c2SJerry Jelinek * Copyright (C) 2000 - 2016, Intel Corp. 9aa2aa9a6SDana Myers * All rights reserved. 10aa2aa9a6SDana Myers * 1126f3cdf0SGordon Ross * Redistribution and use in source and binary forms, with or without 1226f3cdf0SGordon Ross * modification, are permitted provided that the following conditions 1326f3cdf0SGordon Ross * are met: 1426f3cdf0SGordon Ross * 1. Redistributions of source code must retain the above copyright 1526f3cdf0SGordon Ross * notice, this list of conditions, and the following disclaimer, 1626f3cdf0SGordon Ross * without modification. 1726f3cdf0SGordon Ross * 2. Redistributions in binary form must reproduce at minimum a disclaimer 1826f3cdf0SGordon Ross * substantially similar to the "NO WARRANTY" disclaimer below 1926f3cdf0SGordon Ross * ("Disclaimer") and any redistribution must be conditioned upon 2026f3cdf0SGordon Ross * including a substantially similar Disclaimer requirement for further 2126f3cdf0SGordon Ross * binary redistribution. 2226f3cdf0SGordon Ross * 3. Neither the names of the above-listed copyright holders nor the names 2326f3cdf0SGordon Ross * of any contributors may be used to endorse or promote products derived 2426f3cdf0SGordon Ross * from this software without specific prior written permission. 25aa2aa9a6SDana Myers * 2626f3cdf0SGordon Ross * Alternatively, this software may be distributed under the terms of the 2726f3cdf0SGordon Ross * GNU General Public License ("GPL") version 2 as published by the Free 2826f3cdf0SGordon Ross * Software Foundation. 29aa2aa9a6SDana Myers * 3026f3cdf0SGordon Ross * NO WARRANTY 3126f3cdf0SGordon Ross * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 3226f3cdf0SGordon Ross * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 3326f3cdf0SGordon Ross * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR 3426f3cdf0SGordon Ross * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT 3526f3cdf0SGordon Ross * HOLDERS OR CONTRIBUTORS BE LIABLE FOR SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 3626f3cdf0SGordon Ross * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 3726f3cdf0SGordon Ross * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 3826f3cdf0SGordon Ross * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, 3926f3cdf0SGordon Ross * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING 4026f3cdf0SGordon Ross * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 4126f3cdf0SGordon Ross * POSSIBILITY OF SUCH DAMAGES. 4226f3cdf0SGordon Ross */ 43aa2aa9a6SDana Myers 44aa2aa9a6SDana Myers #ifndef __ACPREDEF_H__ 45aa2aa9a6SDana Myers #define __ACPREDEF_H__ 46aa2aa9a6SDana Myers 47aa2aa9a6SDana Myers 48aa2aa9a6SDana Myers /****************************************************************************** 49aa2aa9a6SDana Myers * 50aa2aa9a6SDana Myers * Return Package types 51aa2aa9a6SDana Myers * 52*de5d74c2SJerry Jelinek * 1) PTYPE1 packages do not contain subpackages. 53aa2aa9a6SDana Myers * 54aa2aa9a6SDana Myers * ACPI_PTYPE1_FIXED: Fixed-length length, 1 or 2 object types: 55aa2aa9a6SDana Myers * object type 56aa2aa9a6SDana Myers * count 57aa2aa9a6SDana Myers * object type 58aa2aa9a6SDana Myers * count 59aa2aa9a6SDana Myers * 60*de5d74c2SJerry Jelinek * ACPI_PTYPE1_VAR: Variable-length length. Zero-length package is allowed: 61aa2aa9a6SDana Myers * object type (Int/Buf/Ref) 62aa2aa9a6SDana Myers * 63aa2aa9a6SDana Myers * ACPI_PTYPE1_OPTION: Package has some required and some optional elements 64aa2aa9a6SDana Myers * (Used for _PRW) 65aa2aa9a6SDana Myers * 66aa2aa9a6SDana Myers * 67*de5d74c2SJerry Jelinek * 2) PTYPE2 packages contain a Variable-length number of subpackages. Each 68*de5d74c2SJerry Jelinek * of the different types describe the contents of each of the subpackages. 69aa2aa9a6SDana Myers * 70*de5d74c2SJerry Jelinek * ACPI_PTYPE2: Each subpackage contains 1 or 2 object types. Zero-length 71*de5d74c2SJerry Jelinek * parent package is allowed: 72aa2aa9a6SDana Myers * object type 73aa2aa9a6SDana Myers * count 74aa2aa9a6SDana Myers * object type 75aa2aa9a6SDana Myers * count 76aa2aa9a6SDana Myers * (Used for _ALR,_MLS,_PSS,_TRT,_TSS) 77aa2aa9a6SDana Myers * 78*de5d74c2SJerry Jelinek * ACPI_PTYPE2_COUNT: Each subpackage has a count as first element. 79*de5d74c2SJerry Jelinek * Zero-length parent package is allowed: 80aa2aa9a6SDana Myers * object type 81aa2aa9a6SDana Myers * (Used for _CSD,_PSD,_TSD) 82aa2aa9a6SDana Myers * 83aa2aa9a6SDana Myers * ACPI_PTYPE2_PKG_COUNT: Count of subpackages at start, 1 or 2 object types: 84aa2aa9a6SDana Myers * object type 85aa2aa9a6SDana Myers * count 86aa2aa9a6SDana Myers * object type 87aa2aa9a6SDana Myers * count 88aa2aa9a6SDana Myers * (Used for _CST) 89aa2aa9a6SDana Myers * 90*de5d74c2SJerry Jelinek * ACPI_PTYPE2_FIXED: Each subpackage is of Fixed-length. Zero-length 91*de5d74c2SJerry Jelinek * parent package is allowed. 92aa2aa9a6SDana Myers * (Used for _PRT) 93aa2aa9a6SDana Myers * 94*de5d74c2SJerry Jelinek * ACPI_PTYPE2_MIN: Each subpackage has a Variable-length but minimum length. 95*de5d74c2SJerry Jelinek * Zero-length parent package is allowed: 96aa2aa9a6SDana Myers * (Used for _HPX) 97aa2aa9a6SDana Myers * 9857190917SDana Myers * ACPI_PTYPE2_REV_FIXED: Revision at start, each subpackage is Fixed-length 9957190917SDana Myers * (Used for _ART, _FPS) 10057190917SDana Myers * 101*de5d74c2SJerry Jelinek * ACPI_PTYPE2_FIX_VAR: Each subpackage consists of some fixed-length elements 102*de5d74c2SJerry Jelinek * followed by an optional element. Zero-length parent package is allowed. 103*de5d74c2SJerry Jelinek * object type 104*de5d74c2SJerry Jelinek * count 105*de5d74c2SJerry Jelinek * object type 106*de5d74c2SJerry Jelinek * count = 0 (optional) 107*de5d74c2SJerry Jelinek * (Used for _DLM) 108*de5d74c2SJerry Jelinek * 109*de5d74c2SJerry Jelinek * ACPI_PTYPE2_VAR_VAR: Variable number of subpackages, each of either a 110*de5d74c2SJerry Jelinek * constant or variable length. The subpackages are preceded by a 111*de5d74c2SJerry Jelinek * constant number of objects. 112*de5d74c2SJerry Jelinek * (Used for _LPI, _RDI) 113*de5d74c2SJerry Jelinek * 114*de5d74c2SJerry Jelinek * ACPI_PTYPE2_UUID_PAIR: Each subpackage is preceded by a UUID Buffer. The UUID 115*de5d74c2SJerry Jelinek * defines the format of the package. Zero-length parent package is 116*de5d74c2SJerry Jelinek * allowed. 117*de5d74c2SJerry Jelinek * (Used for _DSD) 118*de5d74c2SJerry Jelinek * 119aa2aa9a6SDana Myers *****************************************************************************/ 120aa2aa9a6SDana Myers 121aa2aa9a6SDana Myers enum AcpiReturnPackageTypes 122aa2aa9a6SDana Myers { 123aa2aa9a6SDana Myers ACPI_PTYPE1_FIXED = 1, 124aa2aa9a6SDana Myers ACPI_PTYPE1_VAR = 2, 125aa2aa9a6SDana Myers ACPI_PTYPE1_OPTION = 3, 126aa2aa9a6SDana Myers ACPI_PTYPE2 = 4, 127aa2aa9a6SDana Myers ACPI_PTYPE2_COUNT = 5, 128aa2aa9a6SDana Myers ACPI_PTYPE2_PKG_COUNT = 6, 129aa2aa9a6SDana Myers ACPI_PTYPE2_FIXED = 7, 13057190917SDana Myers ACPI_PTYPE2_MIN = 8, 131*de5d74c2SJerry Jelinek ACPI_PTYPE2_REV_FIXED = 9, 132*de5d74c2SJerry Jelinek ACPI_PTYPE2_FIX_VAR = 10, 133*de5d74c2SJerry Jelinek ACPI_PTYPE2_VAR_VAR = 11, 134*de5d74c2SJerry Jelinek ACPI_PTYPE2_UUID_PAIR = 12, 135*de5d74c2SJerry Jelinek ACPI_PTYPE_CUSTOM = 13 136aa2aa9a6SDana Myers }; 137aa2aa9a6SDana Myers 138aa2aa9a6SDana Myers 139*de5d74c2SJerry Jelinek /* Support macros for users of the predefined info table */ 140*de5d74c2SJerry Jelinek 141*de5d74c2SJerry Jelinek #define METHOD_PREDEF_ARGS_MAX 4 142*de5d74c2SJerry Jelinek #define METHOD_ARG_BIT_WIDTH 3 143*de5d74c2SJerry Jelinek #define METHOD_ARG_MASK 0x0007 144*de5d74c2SJerry Jelinek #define ARG_COUNT_IS_MINIMUM 0x8000 145*de5d74c2SJerry Jelinek #define METHOD_MAX_ARG_TYPE ACPI_TYPE_PACKAGE 146*de5d74c2SJerry Jelinek 147*de5d74c2SJerry Jelinek #define METHOD_GET_ARG_COUNT(ArgList) ((ArgList) & METHOD_ARG_MASK) 148*de5d74c2SJerry Jelinek #define METHOD_GET_NEXT_TYPE(ArgList) (((ArgList) >>= METHOD_ARG_BIT_WIDTH) & METHOD_ARG_MASK) 149*de5d74c2SJerry Jelinek 150*de5d74c2SJerry Jelinek /* Macros used to build the predefined info table */ 151*de5d74c2SJerry Jelinek 152*de5d74c2SJerry Jelinek #define METHOD_0ARGS 0 153*de5d74c2SJerry Jelinek #define METHOD_1ARGS(a1) (1 | (a1 << 3)) 154*de5d74c2SJerry Jelinek #define METHOD_2ARGS(a1,a2) (2 | (a1 << 3) | (a2 << 6)) 155*de5d74c2SJerry Jelinek #define METHOD_3ARGS(a1,a2,a3) (3 | (a1 << 3) | (a2 << 6) | (a3 << 9)) 156*de5d74c2SJerry Jelinek #define METHOD_4ARGS(a1,a2,a3,a4) (4 | (a1 << 3) | (a2 << 6) | (a3 << 9) | (a4 << 12)) 157*de5d74c2SJerry Jelinek 158*de5d74c2SJerry Jelinek #define METHOD_RETURNS(type) (type) 159*de5d74c2SJerry Jelinek #define METHOD_NO_RETURN_VALUE 0 160*de5d74c2SJerry Jelinek 161*de5d74c2SJerry Jelinek #define PACKAGE_INFO(a,b,c,d,e,f) {{{(a),(b),(c),(d)}, ((((UINT16)(f)) << 8) | (e)), 0}} 162*de5d74c2SJerry Jelinek 163*de5d74c2SJerry Jelinek 164*de5d74c2SJerry Jelinek /* Support macros for the resource descriptor info table */ 165*de5d74c2SJerry Jelinek 166*de5d74c2SJerry Jelinek #define WIDTH_1 0x0001 167*de5d74c2SJerry Jelinek #define WIDTH_2 0x0002 168*de5d74c2SJerry Jelinek #define WIDTH_3 0x0004 169*de5d74c2SJerry Jelinek #define WIDTH_8 0x0008 170*de5d74c2SJerry Jelinek #define WIDTH_16 0x0010 171*de5d74c2SJerry Jelinek #define WIDTH_32 0x0020 172*de5d74c2SJerry Jelinek #define WIDTH_64 0x0040 173*de5d74c2SJerry Jelinek #define VARIABLE_DATA 0x0080 174*de5d74c2SJerry Jelinek #define NUM_RESOURCE_WIDTHS 8 175*de5d74c2SJerry Jelinek 176*de5d74c2SJerry Jelinek #define WIDTH_ADDRESS WIDTH_16 | WIDTH_32 | WIDTH_64 177*de5d74c2SJerry Jelinek 178*de5d74c2SJerry Jelinek 17957190917SDana Myers #ifdef ACPI_CREATE_PREDEFINED_TABLE 180*de5d74c2SJerry Jelinek /****************************************************************************** 181*de5d74c2SJerry Jelinek * 182aa2aa9a6SDana Myers * Predefined method/object information table. 183aa2aa9a6SDana Myers * 184aa2aa9a6SDana Myers * These are the names that can actually be evaluated via AcpiEvaluateObject. 185aa2aa9a6SDana Myers * Not present in this table are the following: 186aa2aa9a6SDana Myers * 187*de5d74c2SJerry Jelinek * 1) Predefined/Reserved names that are not usually evaluated via 188aa2aa9a6SDana Myers * AcpiEvaluateObject: 189aa2aa9a6SDana Myers * _Lxx and _Exx GPE methods 190aa2aa9a6SDana Myers * _Qxx EC methods 19157190917SDana Myers * _T_x compiler temporary variables 192*de5d74c2SJerry Jelinek * _Wxx wake events 193aa2aa9a6SDana Myers * 194aa2aa9a6SDana Myers * 2) Predefined names that never actually exist within the AML code: 195aa2aa9a6SDana Myers * Predefined resource descriptor field names 196aa2aa9a6SDana Myers * 197aa2aa9a6SDana Myers * 3) Predefined names that are implemented within ACPICA: 198aa2aa9a6SDana Myers * _OSI 199aa2aa9a6SDana Myers * 200aa2aa9a6SDana Myers * The main entries in the table each contain the following items: 201aa2aa9a6SDana Myers * 202aa2aa9a6SDana Myers * Name - The ACPI reserved name 203*de5d74c2SJerry Jelinek * ArgumentList - Contains (in 16 bits), the number of required 204*de5d74c2SJerry Jelinek * arguments to the method (3 bits), and a 3-bit type 205*de5d74c2SJerry Jelinek * field for each argument (up to 4 arguments). The 206*de5d74c2SJerry Jelinek * METHOD_?ARGS macros generate the correct packed data. 207aa2aa9a6SDana Myers * ExpectedBtypes - Allowed type(s) for the return value. 208aa2aa9a6SDana Myers * 0 means that no return value is expected. 209aa2aa9a6SDana Myers * 210aa2aa9a6SDana Myers * For methods that return packages, the next entry in the table contains 211aa2aa9a6SDana Myers * information about the expected structure of the package. This information 212aa2aa9a6SDana Myers * is saved here (rather than in a separate table) in order to minimize the 213aa2aa9a6SDana Myers * overall size of the stored data. 214aa2aa9a6SDana Myers * 215aa2aa9a6SDana Myers * Note: The additional braces are intended to promote portability. 216*de5d74c2SJerry Jelinek * 217*de5d74c2SJerry Jelinek * Note2: Table is used by the kernel-resident subsystem, the iASL compiler, 218*de5d74c2SJerry Jelinek * and the AcpiHelp utility. 219*de5d74c2SJerry Jelinek * 220*de5d74c2SJerry Jelinek * TBD: _PRT - currently ignore reversed entries. Attempt to fix in nsrepair. 221*de5d74c2SJerry Jelinek * Possibly fixing package elements like _BIF, etc. 222*de5d74c2SJerry Jelinek * 223*de5d74c2SJerry Jelinek *****************************************************************************/ 224*de5d74c2SJerry Jelinek 225*de5d74c2SJerry Jelinek const ACPI_PREDEFINED_INFO AcpiGbl_PredefinedMethods[] = 226aa2aa9a6SDana Myers { 227*de5d74c2SJerry Jelinek {{"_AC0", METHOD_0ARGS, 228*de5d74c2SJerry Jelinek METHOD_RETURNS (ACPI_RTYPE_INTEGER)}}, 229aa2aa9a6SDana Myers 230*de5d74c2SJerry Jelinek {{"_AC1", METHOD_0ARGS, 231*de5d74c2SJerry Jelinek METHOD_RETURNS (ACPI_RTYPE_INTEGER)}}, 232aa2aa9a6SDana Myers 233*de5d74c2SJerry Jelinek {{"_AC2", METHOD_0ARGS, 234*de5d74c2SJerry Jelinek METHOD_RETURNS (ACPI_RTYPE_INTEGER)}}, 235aa2aa9a6SDana Myers 236*de5d74c2SJerry Jelinek {{"_AC3", METHOD_0ARGS, 237*de5d74c2SJerry Jelinek METHOD_RETURNS (ACPI_RTYPE_INTEGER)}}, 238aa2aa9a6SDana Myers 239*de5d74c2SJerry Jelinek {{"_AC4", METHOD_0ARGS, 240*de5d74c2SJerry Jelinek METHOD_RETURNS (ACPI_RTYPE_INTEGER)}}, 241aa2aa9a6SDana Myers 242*de5d74c2SJerry Jelinek {{"_AC5", METHOD_0ARGS, 243*de5d74c2SJerry Jelinek METHOD_RETURNS (ACPI_RTYPE_INTEGER)}}, 244aa2aa9a6SDana Myers 245*de5d74c2SJerry Jelinek {{"_AC6", METHOD_0ARGS, 246*de5d74c2SJerry Jelinek METHOD_RETURNS (ACPI_RTYPE_INTEGER)}}, 247aa2aa9a6SDana Myers 248*de5d74c2SJerry Jelinek {{"_AC7", METHOD_0ARGS, 249*de5d74c2SJerry Jelinek METHOD_RETURNS (ACPI_RTYPE_INTEGER)}}, 250aa2aa9a6SDana Myers 251*de5d74c2SJerry Jelinek {{"_AC8", METHOD_0ARGS, 252*de5d74c2SJerry Jelinek METHOD_RETURNS (ACPI_RTYPE_INTEGER)}}, 253aa2aa9a6SDana Myers 254*de5d74c2SJerry Jelinek {{"_AC9", METHOD_0ARGS, 255*de5d74c2SJerry Jelinek METHOD_RETURNS (ACPI_RTYPE_INTEGER)}}, 256aa2aa9a6SDana Myers 257*de5d74c2SJerry Jelinek {{"_ADR", METHOD_0ARGS, 258*de5d74c2SJerry Jelinek METHOD_RETURNS (ACPI_RTYPE_INTEGER)}}, 259aa2aa9a6SDana Myers 260*de5d74c2SJerry Jelinek {{"_AEI", METHOD_0ARGS, 261*de5d74c2SJerry Jelinek METHOD_RETURNS (ACPI_RTYPE_BUFFER)}}, 26257190917SDana Myers 263*de5d74c2SJerry Jelinek {{"_AL0", METHOD_0ARGS, 264*de5d74c2SJerry Jelinek METHOD_RETURNS (ACPI_RTYPE_PACKAGE)}}, /* Variable-length (Refs) */ 265*de5d74c2SJerry Jelinek PACKAGE_INFO (ACPI_PTYPE1_VAR, ACPI_RTYPE_REFERENCE, 0,0,0,0), 266aa2aa9a6SDana Myers 267*de5d74c2SJerry Jelinek {{"_AL1", METHOD_0ARGS, 268*de5d74c2SJerry Jelinek METHOD_RETURNS (ACPI_RTYPE_PACKAGE)}}, /* Variable-length (Refs) */ 269*de5d74c2SJerry Jelinek PACKAGE_INFO (ACPI_PTYPE1_VAR, ACPI_RTYPE_REFERENCE, 0,0,0,0), 270aa2aa9a6SDana Myers 271*de5d74c2SJerry Jelinek {{"_AL2", METHOD_0ARGS, 272*de5d74c2SJerry Jelinek METHOD_RETURNS (ACPI_RTYPE_PACKAGE)}}, /* Variable-length (Refs) */ 273*de5d74c2SJerry Jelinek PACKAGE_INFO (ACPI_PTYPE1_VAR, ACPI_RTYPE_REFERENCE, 0,0,0,0), 27457190917SDana Myers 275*de5d74c2SJerry Jelinek {{"_AL3", METHOD_0ARGS, 276*de5d74c2SJerry Jelinek METHOD_RETURNS (ACPI_RTYPE_PACKAGE)}}, /* Variable-length (Refs) */ 277*de5d74c2SJerry Jelinek PACKAGE_INFO (ACPI_PTYPE1_VAR, ACPI_RTYPE_REFERENCE, 0,0,0,0), 278aa2aa9a6SDana Myers 279*de5d74c2SJerry Jelinek {{"_AL4", METHOD_0ARGS, 280*de5d74c2SJerry Jelinek METHOD_RETURNS (ACPI_RTYPE_PACKAGE)}}, /* Variable-length (Refs) */ 281*de5d74c2SJerry Jelinek PACKAGE_INFO (ACPI_PTYPE1_VAR, ACPI_RTYPE_REFERENCE, 0,0,0,0), 282aa2aa9a6SDana Myers 283*de5d74c2SJerry Jelinek {{"_AL5", METHOD_0ARGS, 284*de5d74c2SJerry Jelinek METHOD_RETURNS (ACPI_RTYPE_PACKAGE)}}, /* Variable-length (Refs) */ 285*de5d74c2SJerry Jelinek PACKAGE_INFO (ACPI_PTYPE1_VAR, ACPI_RTYPE_REFERENCE, 0,0,0,0), 286aa2aa9a6SDana Myers 287*de5d74c2SJerry Jelinek {{"_AL6", METHOD_0ARGS, 288*de5d74c2SJerry Jelinek METHOD_RETURNS (ACPI_RTYPE_PACKAGE)}}, /* Variable-length (Refs) */ 289*de5d74c2SJerry Jelinek PACKAGE_INFO (ACPI_PTYPE1_VAR, ACPI_RTYPE_REFERENCE, 0,0,0,0), 290aa2aa9a6SDana Myers 291*de5d74c2SJerry Jelinek {{"_AL7", METHOD_0ARGS, 292*de5d74c2SJerry Jelinek METHOD_RETURNS (ACPI_RTYPE_PACKAGE)}}, /* Variable-length (Refs) */ 293*de5d74c2SJerry Jelinek PACKAGE_INFO (ACPI_PTYPE1_VAR, ACPI_RTYPE_REFERENCE, 0,0,0,0), 294aa2aa9a6SDana Myers 295*de5d74c2SJerry Jelinek {{"_AL8", METHOD_0ARGS, 296*de5d74c2SJerry Jelinek METHOD_RETURNS (ACPI_RTYPE_PACKAGE)}}, /* Variable-length (Refs) */ 297*de5d74c2SJerry Jelinek PACKAGE_INFO (ACPI_PTYPE1_VAR, ACPI_RTYPE_REFERENCE, 0,0,0,0), 298aa2aa9a6SDana Myers 299*de5d74c2SJerry Jelinek {{"_AL9", METHOD_0ARGS, 300*de5d74c2SJerry Jelinek METHOD_RETURNS (ACPI_RTYPE_PACKAGE)}}, /* Variable-length (Refs) */ 301*de5d74c2SJerry Jelinek PACKAGE_INFO (ACPI_PTYPE1_VAR, ACPI_RTYPE_REFERENCE, 0,0,0,0), 302aa2aa9a6SDana Myers 303*de5d74c2SJerry Jelinek {{"_ALC", METHOD_0ARGS, 304*de5d74c2SJerry Jelinek METHOD_RETURNS (ACPI_RTYPE_INTEGER)}}, 305aa2aa9a6SDana Myers 306*de5d74c2SJerry Jelinek {{"_ALI", METHOD_0ARGS, 307*de5d74c2SJerry Jelinek METHOD_RETURNS (ACPI_RTYPE_INTEGER)}}, 30857190917SDana Myers 309*de5d74c2SJerry Jelinek {{"_ALP", METHOD_0ARGS, 310*de5d74c2SJerry Jelinek METHOD_RETURNS (ACPI_RTYPE_INTEGER)}}, 311aa2aa9a6SDana Myers 312*de5d74c2SJerry Jelinek {{"_ALR", METHOD_0ARGS, 313*de5d74c2SJerry Jelinek METHOD_RETURNS (ACPI_RTYPE_PACKAGE)}}, /* Variable-length (Pkgs) each 2 (Ints) */ 314*de5d74c2SJerry Jelinek PACKAGE_INFO (ACPI_PTYPE2, ACPI_RTYPE_INTEGER, 2,0,0,0), 31557190917SDana Myers 316*de5d74c2SJerry Jelinek {{"_ALT", METHOD_0ARGS, 317*de5d74c2SJerry Jelinek METHOD_RETURNS (ACPI_RTYPE_INTEGER)}}, 31857190917SDana Myers 319*de5d74c2SJerry Jelinek {{"_ART", METHOD_0ARGS, 320*de5d74c2SJerry Jelinek METHOD_RETURNS (ACPI_RTYPE_PACKAGE)}}, /* Variable-length (1 Int(rev), n Pkg (2 Ref/11 Int) */ 321*de5d74c2SJerry Jelinek PACKAGE_INFO (ACPI_PTYPE2_REV_FIXED, ACPI_RTYPE_REFERENCE, 2, ACPI_RTYPE_INTEGER, 11,0), 32257190917SDana Myers 323*de5d74c2SJerry Jelinek {{"_BBN", METHOD_0ARGS, 324*de5d74c2SJerry Jelinek METHOD_RETURNS (ACPI_RTYPE_INTEGER)}}, 325*de5d74c2SJerry Jelinek 326*de5d74c2SJerry Jelinek {{"_BCL", METHOD_0ARGS, 327*de5d74c2SJerry Jelinek METHOD_RETURNS (ACPI_RTYPE_PACKAGE)}}, /* Variable-length (Ints) */ 328*de5d74c2SJerry Jelinek PACKAGE_INFO (ACPI_PTYPE1_VAR, ACPI_RTYPE_INTEGER, 0,0,0,0), 329*de5d74c2SJerry Jelinek 330*de5d74c2SJerry Jelinek {{"_BCM", METHOD_1ARGS (ACPI_TYPE_INTEGER), 331*de5d74c2SJerry Jelinek METHOD_NO_RETURN_VALUE}}, 332*de5d74c2SJerry Jelinek 333*de5d74c2SJerry Jelinek {{"_BCT", METHOD_1ARGS (ACPI_TYPE_INTEGER), 334*de5d74c2SJerry Jelinek METHOD_RETURNS (ACPI_RTYPE_INTEGER)}}, 335*de5d74c2SJerry Jelinek 336*de5d74c2SJerry Jelinek {{"_BDN", METHOD_0ARGS, 337*de5d74c2SJerry Jelinek METHOD_RETURNS (ACPI_RTYPE_INTEGER)}}, 338*de5d74c2SJerry Jelinek 339*de5d74c2SJerry Jelinek {{"_BFS", METHOD_1ARGS (ACPI_TYPE_INTEGER), 340*de5d74c2SJerry Jelinek METHOD_NO_RETURN_VALUE}}, 341*de5d74c2SJerry Jelinek 342*de5d74c2SJerry Jelinek {{"_BIF", METHOD_0ARGS, 343*de5d74c2SJerry Jelinek METHOD_RETURNS (ACPI_RTYPE_PACKAGE)}}, /* Fixed-length (9 Int),(4 Str) */ 344*de5d74c2SJerry Jelinek PACKAGE_INFO (ACPI_PTYPE1_FIXED, ACPI_RTYPE_INTEGER, 9, ACPI_RTYPE_STRING, 4,0), 345*de5d74c2SJerry Jelinek 346*de5d74c2SJerry Jelinek {{"_BIX", METHOD_0ARGS, 347*de5d74c2SJerry Jelinek METHOD_RETURNS (ACPI_RTYPE_PACKAGE)}}, /* Fixed-length (16 Int),(4 Str) */ 348*de5d74c2SJerry Jelinek PACKAGE_INFO (ACPI_PTYPE_CUSTOM, ACPI_RTYPE_INTEGER, 16, ACPI_RTYPE_STRING, 4,0), 349*de5d74c2SJerry Jelinek 350*de5d74c2SJerry Jelinek {{"_BLT", METHOD_3ARGS (ACPI_TYPE_INTEGER, ACPI_TYPE_INTEGER, ACPI_TYPE_INTEGER), 351*de5d74c2SJerry Jelinek METHOD_NO_RETURN_VALUE}}, 352*de5d74c2SJerry Jelinek 353*de5d74c2SJerry Jelinek {{"_BMA", METHOD_1ARGS (ACPI_TYPE_INTEGER), 354*de5d74c2SJerry Jelinek METHOD_RETURNS (ACPI_RTYPE_INTEGER)}}, 355*de5d74c2SJerry Jelinek 356*de5d74c2SJerry Jelinek {{"_BMC", METHOD_1ARGS (ACPI_TYPE_INTEGER), 357*de5d74c2SJerry Jelinek METHOD_NO_RETURN_VALUE}}, 358*de5d74c2SJerry Jelinek 359*de5d74c2SJerry Jelinek {{"_BMD", METHOD_0ARGS, 360*de5d74c2SJerry Jelinek METHOD_RETURNS (ACPI_RTYPE_PACKAGE)}}, /* Fixed-length (5 Int) */ 361*de5d74c2SJerry Jelinek PACKAGE_INFO (ACPI_PTYPE1_FIXED, ACPI_RTYPE_INTEGER, 5,0,0,0), 362*de5d74c2SJerry Jelinek 363*de5d74c2SJerry Jelinek {{"_BMS", METHOD_1ARGS (ACPI_TYPE_INTEGER), 364*de5d74c2SJerry Jelinek METHOD_RETURNS (ACPI_RTYPE_INTEGER)}}, 365*de5d74c2SJerry Jelinek 366*de5d74c2SJerry Jelinek {{"_BQC", METHOD_0ARGS, 367*de5d74c2SJerry Jelinek METHOD_RETURNS (ACPI_RTYPE_INTEGER)}}, 368*de5d74c2SJerry Jelinek 369*de5d74c2SJerry Jelinek {{"_BST", METHOD_0ARGS, 370*de5d74c2SJerry Jelinek METHOD_RETURNS (ACPI_RTYPE_PACKAGE)}}, /* Fixed-length (4 Int) */ 371*de5d74c2SJerry Jelinek PACKAGE_INFO (ACPI_PTYPE1_FIXED, ACPI_RTYPE_INTEGER, 4,0,0,0), 372*de5d74c2SJerry Jelinek 373*de5d74c2SJerry Jelinek {{"_BTH", METHOD_1ARGS (ACPI_TYPE_INTEGER), /* ACPI 6.0 */ 374*de5d74c2SJerry Jelinek METHOD_NO_RETURN_VALUE}}, 375*de5d74c2SJerry Jelinek 376*de5d74c2SJerry Jelinek {{"_BTM", METHOD_1ARGS (ACPI_TYPE_INTEGER), 377*de5d74c2SJerry Jelinek METHOD_RETURNS (ACPI_RTYPE_INTEGER)}}, 378*de5d74c2SJerry Jelinek 379*de5d74c2SJerry Jelinek {{"_BTP", METHOD_1ARGS (ACPI_TYPE_INTEGER), 380*de5d74c2SJerry Jelinek METHOD_NO_RETURN_VALUE}}, 381*de5d74c2SJerry Jelinek 382*de5d74c2SJerry Jelinek {{"_CBA", METHOD_0ARGS, 383*de5d74c2SJerry Jelinek METHOD_RETURNS (ACPI_RTYPE_INTEGER)}}, /* See PCI firmware spec 3.0 */ 384*de5d74c2SJerry Jelinek 385*de5d74c2SJerry Jelinek {{"_CCA", METHOD_0ARGS, 386*de5d74c2SJerry Jelinek METHOD_RETURNS (ACPI_RTYPE_INTEGER)}}, /* ACPI 5.1 */ 387*de5d74c2SJerry Jelinek 388*de5d74c2SJerry Jelinek {{"_CDM", METHOD_0ARGS, 389*de5d74c2SJerry Jelinek METHOD_RETURNS (ACPI_RTYPE_INTEGER)}}, 390*de5d74c2SJerry Jelinek 391*de5d74c2SJerry Jelinek {{"_CID", METHOD_0ARGS, 392*de5d74c2SJerry Jelinek METHOD_RETURNS (ACPI_RTYPE_INTEGER | ACPI_RTYPE_STRING | ACPI_RTYPE_PACKAGE)}}, /* Variable-length (Ints/Strs) */ 393*de5d74c2SJerry Jelinek PACKAGE_INFO (ACPI_PTYPE1_VAR, ACPI_RTYPE_INTEGER | ACPI_RTYPE_STRING, 0,0,0,0), 394*de5d74c2SJerry Jelinek 395*de5d74c2SJerry Jelinek {{"_CLS", METHOD_0ARGS, 396*de5d74c2SJerry Jelinek METHOD_RETURNS (ACPI_RTYPE_PACKAGE)}}, /* Fixed-length (3 Int) */ 397*de5d74c2SJerry Jelinek PACKAGE_INFO (ACPI_PTYPE1_FIXED, ACPI_RTYPE_INTEGER, 3,0,0,0), 398*de5d74c2SJerry Jelinek 399*de5d74c2SJerry Jelinek {{"_CPC", METHOD_0ARGS, 400*de5d74c2SJerry Jelinek METHOD_RETURNS (ACPI_RTYPE_PACKAGE)}}, /* Variable-length (Ints/Bufs) */ 401*de5d74c2SJerry Jelinek PACKAGE_INFO (ACPI_PTYPE1_VAR, ACPI_RTYPE_INTEGER | ACPI_RTYPE_BUFFER, 0,0,0,0), 402*de5d74c2SJerry Jelinek 403*de5d74c2SJerry Jelinek {{"_CR3", METHOD_0ARGS, /* ACPI 6.0 */ 404*de5d74c2SJerry Jelinek METHOD_RETURNS (ACPI_RTYPE_INTEGER)}}, 405*de5d74c2SJerry Jelinek 406*de5d74c2SJerry Jelinek {{"_CRS", METHOD_0ARGS, 407*de5d74c2SJerry Jelinek METHOD_RETURNS (ACPI_RTYPE_BUFFER)}}, 408*de5d74c2SJerry Jelinek 409*de5d74c2SJerry Jelinek {{"_CRT", METHOD_0ARGS, 410*de5d74c2SJerry Jelinek METHOD_RETURNS (ACPI_RTYPE_INTEGER)}}, 411*de5d74c2SJerry Jelinek 412*de5d74c2SJerry Jelinek {{"_CSD", METHOD_0ARGS, 413*de5d74c2SJerry Jelinek METHOD_RETURNS (ACPI_RTYPE_PACKAGE)}}, /* Variable-length (1 Int(n), n-1 Int) */ 414*de5d74c2SJerry Jelinek PACKAGE_INFO (ACPI_PTYPE2_COUNT, ACPI_RTYPE_INTEGER, 0,0,0,0), 415*de5d74c2SJerry Jelinek 416*de5d74c2SJerry Jelinek {{"_CST", METHOD_0ARGS, 417*de5d74c2SJerry Jelinek METHOD_RETURNS (ACPI_RTYPE_PACKAGE)}}, /* Variable-length (1 Int(n), n Pkg (1 Buf/3 Int) */ 418*de5d74c2SJerry Jelinek PACKAGE_INFO (ACPI_PTYPE2_PKG_COUNT,ACPI_RTYPE_BUFFER, 1, ACPI_RTYPE_INTEGER, 3,0), 419*de5d74c2SJerry Jelinek 420*de5d74c2SJerry Jelinek {{"_CWS", METHOD_1ARGS (ACPI_TYPE_INTEGER), 421*de5d74c2SJerry Jelinek METHOD_RETURNS (ACPI_RTYPE_INTEGER)}}, 422*de5d74c2SJerry Jelinek 423*de5d74c2SJerry Jelinek {{"_DCK", METHOD_1ARGS (ACPI_TYPE_INTEGER), 424*de5d74c2SJerry Jelinek METHOD_RETURNS (ACPI_RTYPE_INTEGER)}}, 425*de5d74c2SJerry Jelinek 426*de5d74c2SJerry Jelinek {{"_DCS", METHOD_0ARGS, 427*de5d74c2SJerry Jelinek METHOD_RETURNS (ACPI_RTYPE_INTEGER)}}, 428*de5d74c2SJerry Jelinek 429*de5d74c2SJerry Jelinek {{"_DDC", METHOD_1ARGS (ACPI_TYPE_INTEGER), 430*de5d74c2SJerry Jelinek METHOD_RETURNS (ACPI_RTYPE_INTEGER | ACPI_RTYPE_BUFFER)}}, 431*de5d74c2SJerry Jelinek 432*de5d74c2SJerry Jelinek {{"_DDN", METHOD_0ARGS, 433*de5d74c2SJerry Jelinek METHOD_RETURNS (ACPI_RTYPE_STRING)}}, 434*de5d74c2SJerry Jelinek 435*de5d74c2SJerry Jelinek {{"_DEP", METHOD_0ARGS, 436*de5d74c2SJerry Jelinek METHOD_RETURNS (ACPI_RTYPE_PACKAGE)}}, /* Variable-length (Refs) */ 437*de5d74c2SJerry Jelinek PACKAGE_INFO (ACPI_PTYPE1_VAR, ACPI_RTYPE_REFERENCE, 0,0,0,0), 438*de5d74c2SJerry Jelinek 439*de5d74c2SJerry Jelinek {{"_DGS", METHOD_0ARGS, 440*de5d74c2SJerry Jelinek METHOD_RETURNS (ACPI_RTYPE_INTEGER)}}, 441*de5d74c2SJerry Jelinek 442*de5d74c2SJerry Jelinek {{"_DIS", METHOD_0ARGS, 443*de5d74c2SJerry Jelinek METHOD_NO_RETURN_VALUE}}, 444*de5d74c2SJerry Jelinek 445*de5d74c2SJerry Jelinek {{"_DLM", METHOD_0ARGS, 446*de5d74c2SJerry Jelinek METHOD_RETURNS (ACPI_RTYPE_PACKAGE)}}, /* Variable-length (Pkgs) each (1 Ref, 0/1 Optional Buf/Ref) */ 447*de5d74c2SJerry Jelinek PACKAGE_INFO (ACPI_PTYPE2_FIX_VAR, ACPI_RTYPE_REFERENCE, 1, ACPI_RTYPE_REFERENCE | ACPI_RTYPE_BUFFER, 0,0), 448*de5d74c2SJerry Jelinek 449*de5d74c2SJerry Jelinek {{"_DMA", METHOD_0ARGS, 450*de5d74c2SJerry Jelinek METHOD_RETURNS (ACPI_RTYPE_BUFFER)}}, 451*de5d74c2SJerry Jelinek 452*de5d74c2SJerry Jelinek {{"_DOD", METHOD_0ARGS, 453*de5d74c2SJerry Jelinek METHOD_RETURNS (ACPI_RTYPE_PACKAGE)}}, /* Variable-length (Ints) */ 454*de5d74c2SJerry Jelinek PACKAGE_INFO (ACPI_PTYPE1_VAR, ACPI_RTYPE_INTEGER, 0,0,0,0), 455*de5d74c2SJerry Jelinek 456*de5d74c2SJerry Jelinek {{"_DOS", METHOD_1ARGS (ACPI_TYPE_INTEGER), 457*de5d74c2SJerry Jelinek METHOD_NO_RETURN_VALUE}}, 458*de5d74c2SJerry Jelinek 459*de5d74c2SJerry Jelinek {{"_DSD", METHOD_0ARGS, /* ACPI 6.0 */ 460*de5d74c2SJerry Jelinek METHOD_RETURNS (ACPI_RTYPE_PACKAGE)}}, /* Variable-length (Pkgs) each: 1 Buf, 1 Pkg */ 461*de5d74c2SJerry Jelinek PACKAGE_INFO (ACPI_PTYPE2_UUID_PAIR, ACPI_RTYPE_BUFFER, 1, ACPI_RTYPE_PACKAGE, 1,0), 462*de5d74c2SJerry Jelinek 463*de5d74c2SJerry Jelinek {{"_DSM", METHOD_4ARGS (ACPI_TYPE_BUFFER, ACPI_TYPE_INTEGER, ACPI_TYPE_INTEGER, ACPI_TYPE_PACKAGE), 464*de5d74c2SJerry Jelinek METHOD_RETURNS (ACPI_RTYPE_ALL)}}, /* Must return a value, but it can be of any type */ 465*de5d74c2SJerry Jelinek 466*de5d74c2SJerry Jelinek {{"_DSS", METHOD_1ARGS (ACPI_TYPE_INTEGER), 467*de5d74c2SJerry Jelinek METHOD_NO_RETURN_VALUE}}, 468*de5d74c2SJerry Jelinek 469*de5d74c2SJerry Jelinek {{"_DSW", METHOD_3ARGS (ACPI_TYPE_INTEGER, ACPI_TYPE_INTEGER, ACPI_TYPE_INTEGER), 470*de5d74c2SJerry Jelinek METHOD_NO_RETURN_VALUE}}, 471*de5d74c2SJerry Jelinek 472*de5d74c2SJerry Jelinek {{"_DTI", METHOD_1ARGS (ACPI_TYPE_INTEGER), 473*de5d74c2SJerry Jelinek METHOD_NO_RETURN_VALUE}}, 474*de5d74c2SJerry Jelinek 475*de5d74c2SJerry Jelinek {{"_EC_", METHOD_0ARGS, 476*de5d74c2SJerry Jelinek METHOD_RETURNS (ACPI_RTYPE_INTEGER)}}, 477*de5d74c2SJerry Jelinek 478*de5d74c2SJerry Jelinek {{"_EDL", METHOD_0ARGS, 479*de5d74c2SJerry Jelinek METHOD_RETURNS (ACPI_RTYPE_PACKAGE)}}, /* Variable-length (Refs)*/ 480*de5d74c2SJerry Jelinek PACKAGE_INFO (ACPI_PTYPE1_VAR, ACPI_RTYPE_REFERENCE, 0,0,0,0), 481*de5d74c2SJerry Jelinek 482*de5d74c2SJerry Jelinek {{"_EJ0", METHOD_1ARGS (ACPI_TYPE_INTEGER), 483*de5d74c2SJerry Jelinek METHOD_NO_RETURN_VALUE}}, 484*de5d74c2SJerry Jelinek 485*de5d74c2SJerry Jelinek {{"_EJ1", METHOD_1ARGS (ACPI_TYPE_INTEGER), 486*de5d74c2SJerry Jelinek METHOD_NO_RETURN_VALUE}}, 487*de5d74c2SJerry Jelinek 488*de5d74c2SJerry Jelinek {{"_EJ2", METHOD_1ARGS (ACPI_TYPE_INTEGER), 489*de5d74c2SJerry Jelinek METHOD_NO_RETURN_VALUE}}, 490*de5d74c2SJerry Jelinek 491*de5d74c2SJerry Jelinek {{"_EJ3", METHOD_1ARGS (ACPI_TYPE_INTEGER), 492*de5d74c2SJerry Jelinek METHOD_NO_RETURN_VALUE}}, 493*de5d74c2SJerry Jelinek 494*de5d74c2SJerry Jelinek {{"_EJ4", METHOD_1ARGS (ACPI_TYPE_INTEGER), 495*de5d74c2SJerry Jelinek METHOD_NO_RETURN_VALUE}}, 496*de5d74c2SJerry Jelinek 497*de5d74c2SJerry Jelinek {{"_EJD", METHOD_0ARGS, 498*de5d74c2SJerry Jelinek METHOD_RETURNS (ACPI_RTYPE_STRING)}}, 499*de5d74c2SJerry Jelinek 500*de5d74c2SJerry Jelinek {{"_ERR", METHOD_3ARGS (ACPI_TYPE_INTEGER, ACPI_TYPE_STRING, ACPI_TYPE_INTEGER), 501*de5d74c2SJerry Jelinek METHOD_RETURNS (ACPI_RTYPE_INTEGER)}}, /* Internal use only, used by ACPICA test suites */ 502*de5d74c2SJerry Jelinek 503*de5d74c2SJerry Jelinek {{"_EVT", METHOD_1ARGS (ACPI_TYPE_INTEGER), 504*de5d74c2SJerry Jelinek METHOD_NO_RETURN_VALUE}}, 505*de5d74c2SJerry Jelinek 506*de5d74c2SJerry Jelinek {{"_FDE", METHOD_0ARGS, 507*de5d74c2SJerry Jelinek METHOD_RETURNS (ACPI_RTYPE_BUFFER)}}, 508*de5d74c2SJerry Jelinek 509*de5d74c2SJerry Jelinek {{"_FDI", METHOD_0ARGS, 510*de5d74c2SJerry Jelinek METHOD_RETURNS (ACPI_RTYPE_PACKAGE)}}, /* Fixed-length (16 Int) */ 511*de5d74c2SJerry Jelinek PACKAGE_INFO (ACPI_PTYPE1_FIXED, ACPI_RTYPE_INTEGER, 16,0,0,0), 512*de5d74c2SJerry Jelinek 513*de5d74c2SJerry Jelinek {{"_FDM", METHOD_1ARGS (ACPI_TYPE_INTEGER), 514*de5d74c2SJerry Jelinek METHOD_NO_RETURN_VALUE}}, 515*de5d74c2SJerry Jelinek 516*de5d74c2SJerry Jelinek {{"_FIF", METHOD_0ARGS, 517*de5d74c2SJerry Jelinek METHOD_RETURNS (ACPI_RTYPE_PACKAGE)}}, /* Fixed-length (4 Int) */ 518*de5d74c2SJerry Jelinek PACKAGE_INFO (ACPI_PTYPE1_FIXED, ACPI_RTYPE_INTEGER, 4,0,0,0), 519*de5d74c2SJerry Jelinek 520*de5d74c2SJerry Jelinek {{"_FIT", METHOD_0ARGS, 521*de5d74c2SJerry Jelinek METHOD_RETURNS (ACPI_RTYPE_BUFFER)}}, /* ACPI 6.0 */ 522*de5d74c2SJerry Jelinek 523*de5d74c2SJerry Jelinek {{"_FIX", METHOD_0ARGS, 524*de5d74c2SJerry Jelinek METHOD_RETURNS (ACPI_RTYPE_PACKAGE)}}, /* Variable-length (Ints) */ 525*de5d74c2SJerry Jelinek PACKAGE_INFO (ACPI_PTYPE1_VAR, ACPI_RTYPE_INTEGER, 0,0,0,0), 526*de5d74c2SJerry Jelinek 527*de5d74c2SJerry Jelinek {{"_FPS", METHOD_0ARGS, 528*de5d74c2SJerry Jelinek METHOD_RETURNS (ACPI_RTYPE_PACKAGE)}}, /* Variable-length (1 Int(rev), n Pkg (5 Int) */ 529*de5d74c2SJerry Jelinek PACKAGE_INFO (ACPI_PTYPE2_REV_FIXED,ACPI_RTYPE_INTEGER, 5, 0,0,0), 530*de5d74c2SJerry Jelinek 531*de5d74c2SJerry Jelinek {{"_FSL", METHOD_1ARGS (ACPI_TYPE_INTEGER), 532*de5d74c2SJerry Jelinek METHOD_NO_RETURN_VALUE}}, 533*de5d74c2SJerry Jelinek 534*de5d74c2SJerry Jelinek {{"_FST", METHOD_0ARGS, 535*de5d74c2SJerry Jelinek METHOD_RETURNS (ACPI_RTYPE_PACKAGE)}}, /* Fixed-length (3 Int) */ 536*de5d74c2SJerry Jelinek PACKAGE_INFO (ACPI_PTYPE1_FIXED, ACPI_RTYPE_INTEGER, 3,0,0,0), 537*de5d74c2SJerry Jelinek 538*de5d74c2SJerry Jelinek {{"_GAI", METHOD_0ARGS, 539*de5d74c2SJerry Jelinek METHOD_RETURNS (ACPI_RTYPE_INTEGER)}}, 540*de5d74c2SJerry Jelinek 541*de5d74c2SJerry Jelinek {{"_GCP", METHOD_0ARGS, 542*de5d74c2SJerry Jelinek METHOD_RETURNS (ACPI_RTYPE_INTEGER)}}, 543*de5d74c2SJerry Jelinek 544*de5d74c2SJerry Jelinek {{"_GHL", METHOD_0ARGS, 545*de5d74c2SJerry Jelinek METHOD_RETURNS (ACPI_RTYPE_INTEGER)}}, 546*de5d74c2SJerry Jelinek 547*de5d74c2SJerry Jelinek {{"_GLK", METHOD_0ARGS, 548*de5d74c2SJerry Jelinek METHOD_RETURNS (ACPI_RTYPE_INTEGER)}}, 549*de5d74c2SJerry Jelinek 550*de5d74c2SJerry Jelinek {{"_GPD", METHOD_0ARGS, 551*de5d74c2SJerry Jelinek METHOD_RETURNS (ACPI_RTYPE_INTEGER)}}, 552*de5d74c2SJerry Jelinek 553*de5d74c2SJerry Jelinek {{"_GPE", METHOD_0ARGS, 554*de5d74c2SJerry Jelinek METHOD_RETURNS (ACPI_RTYPE_INTEGER)}}, /* _GPE method, not _GPE scope */ 555*de5d74c2SJerry Jelinek 556*de5d74c2SJerry Jelinek {{"_GRT", METHOD_0ARGS, 557*de5d74c2SJerry Jelinek METHOD_RETURNS (ACPI_RTYPE_BUFFER)}}, 558*de5d74c2SJerry Jelinek 559*de5d74c2SJerry Jelinek {{"_GSB", METHOD_0ARGS, 560*de5d74c2SJerry Jelinek METHOD_RETURNS (ACPI_RTYPE_INTEGER)}}, 561*de5d74c2SJerry Jelinek 562*de5d74c2SJerry Jelinek {{"_GTF", METHOD_0ARGS, 563*de5d74c2SJerry Jelinek METHOD_RETURNS (ACPI_RTYPE_BUFFER)}}, 564*de5d74c2SJerry Jelinek 565*de5d74c2SJerry Jelinek {{"_GTM", METHOD_0ARGS, 566*de5d74c2SJerry Jelinek METHOD_RETURNS (ACPI_RTYPE_BUFFER)}}, 567*de5d74c2SJerry Jelinek 568*de5d74c2SJerry Jelinek {{"_GTS", METHOD_1ARGS (ACPI_TYPE_INTEGER), 569*de5d74c2SJerry Jelinek METHOD_NO_RETURN_VALUE}}, 570*de5d74c2SJerry Jelinek 571*de5d74c2SJerry Jelinek {{"_GWS", METHOD_1ARGS (ACPI_TYPE_INTEGER), 572*de5d74c2SJerry Jelinek METHOD_RETURNS (ACPI_RTYPE_INTEGER)}}, 573*de5d74c2SJerry Jelinek 574*de5d74c2SJerry Jelinek {{"_HID", METHOD_0ARGS, 575*de5d74c2SJerry Jelinek METHOD_RETURNS (ACPI_RTYPE_INTEGER | ACPI_RTYPE_STRING)}}, 576*de5d74c2SJerry Jelinek 577*de5d74c2SJerry Jelinek {{"_HOT", METHOD_0ARGS, 578*de5d74c2SJerry Jelinek METHOD_RETURNS (ACPI_RTYPE_INTEGER)}}, 579*de5d74c2SJerry Jelinek 580*de5d74c2SJerry Jelinek {{"_HPP", METHOD_0ARGS, 581*de5d74c2SJerry Jelinek METHOD_RETURNS (ACPI_RTYPE_PACKAGE)}}, /* Fixed-length (4 Int) */ 582*de5d74c2SJerry Jelinek PACKAGE_INFO (ACPI_PTYPE1_FIXED, ACPI_RTYPE_INTEGER, 4,0,0,0), 583aa2aa9a6SDana Myers 584aa2aa9a6SDana Myers /* 585*de5d74c2SJerry Jelinek * For _HPX, a single package is returned, containing a variable-length number 586*de5d74c2SJerry Jelinek * of subpackages. Each subpackage contains a PCI record setting. 587aa2aa9a6SDana Myers * There are several different type of record settings, of different 588aa2aa9a6SDana Myers * lengths, but all elements of all settings are Integers. 589aa2aa9a6SDana Myers */ 590*de5d74c2SJerry Jelinek {{"_HPX", METHOD_0ARGS, 591*de5d74c2SJerry Jelinek METHOD_RETURNS (ACPI_RTYPE_PACKAGE)}}, /* Variable-length (Pkgs) each (var Ints) */ 592*de5d74c2SJerry Jelinek PACKAGE_INFO (ACPI_PTYPE2_MIN, ACPI_RTYPE_INTEGER, 5,0,0,0), 593aa2aa9a6SDana Myers 594*de5d74c2SJerry Jelinek {{"_HRV", METHOD_0ARGS, 595*de5d74c2SJerry Jelinek METHOD_RETURNS (ACPI_RTYPE_INTEGER)}}, 59657190917SDana Myers 597*de5d74c2SJerry Jelinek {{"_IFT", METHOD_0ARGS, 598*de5d74c2SJerry Jelinek METHOD_RETURNS (ACPI_RTYPE_INTEGER)}}, /* See IPMI spec */ 599aa2aa9a6SDana Myers 600*de5d74c2SJerry Jelinek {{"_INI", METHOD_0ARGS, 601*de5d74c2SJerry Jelinek METHOD_NO_RETURN_VALUE}}, 602aa2aa9a6SDana Myers 603*de5d74c2SJerry Jelinek {{"_IRC", METHOD_0ARGS, 604*de5d74c2SJerry Jelinek METHOD_NO_RETURN_VALUE}}, 605aa2aa9a6SDana Myers 606*de5d74c2SJerry Jelinek {{"_LCK", METHOD_1ARGS (ACPI_TYPE_INTEGER), 607*de5d74c2SJerry Jelinek METHOD_NO_RETURN_VALUE}}, 60857190917SDana Myers 609*de5d74c2SJerry Jelinek {{"_LID", METHOD_0ARGS, 610*de5d74c2SJerry Jelinek METHOD_RETURNS (ACPI_RTYPE_INTEGER)}}, 611aa2aa9a6SDana Myers 612*de5d74c2SJerry Jelinek {{"_LPD", METHOD_0ARGS, 613*de5d74c2SJerry Jelinek METHOD_RETURNS (ACPI_RTYPE_PACKAGE)}}, /* Variable-length (1 Int(rev), n Pkg (2 Int) */ 614*de5d74c2SJerry Jelinek PACKAGE_INFO (ACPI_PTYPE2_REV_FIXED, ACPI_RTYPE_INTEGER, 2,0,0,0), 61557190917SDana Myers 616*de5d74c2SJerry Jelinek {{"_LPI", METHOD_0ARGS, /* ACPI 6.0 */ 617*de5d74c2SJerry Jelinek METHOD_RETURNS (ACPI_RTYPE_PACKAGE)}}, /* Variable-length (3 Int, n Pkg (10 Int/Buf) */ 618*de5d74c2SJerry Jelinek PACKAGE_INFO (ACPI_PTYPE2_VAR_VAR, ACPI_RTYPE_INTEGER, 3, 619*de5d74c2SJerry Jelinek ACPI_RTYPE_INTEGER | ACPI_RTYPE_BUFFER | ACPI_RTYPE_STRING, 10,0), 62057190917SDana Myers 621*de5d74c2SJerry Jelinek {{"_MAT", METHOD_0ARGS, 622*de5d74c2SJerry Jelinek METHOD_RETURNS (ACPI_RTYPE_BUFFER)}}, 623aa2aa9a6SDana Myers 624*de5d74c2SJerry Jelinek {{"_MBM", METHOD_0ARGS, 625*de5d74c2SJerry Jelinek METHOD_RETURNS (ACPI_RTYPE_PACKAGE)}}, /* Fixed-length (8 Int) */ 626*de5d74c2SJerry Jelinek PACKAGE_INFO (ACPI_PTYPE1_FIXED, ACPI_RTYPE_INTEGER, 8,0,0,0), 627aa2aa9a6SDana Myers 628*de5d74c2SJerry Jelinek {{"_MLS", METHOD_0ARGS, 629*de5d74c2SJerry Jelinek METHOD_RETURNS (ACPI_RTYPE_PACKAGE)}}, /* Variable-length (Pkgs) each (1 Str/1 Buf) */ 630*de5d74c2SJerry Jelinek PACKAGE_INFO (ACPI_PTYPE2, ACPI_RTYPE_STRING, 1, ACPI_RTYPE_BUFFER, 1,0), 631aa2aa9a6SDana Myers 632*de5d74c2SJerry Jelinek {{"_MSG", METHOD_1ARGS (ACPI_TYPE_INTEGER), 633*de5d74c2SJerry Jelinek METHOD_NO_RETURN_VALUE}}, 63457190917SDana Myers 635*de5d74c2SJerry Jelinek {{"_MSM", METHOD_4ARGS (ACPI_TYPE_INTEGER, ACPI_TYPE_INTEGER, ACPI_TYPE_INTEGER, ACPI_TYPE_INTEGER), 636*de5d74c2SJerry Jelinek METHOD_RETURNS (ACPI_RTYPE_INTEGER)}}, 63757190917SDana Myers 638*de5d74c2SJerry Jelinek {{"_MTL", METHOD_0ARGS, /* ACPI 6.0 */ 639*de5d74c2SJerry Jelinek METHOD_RETURNS (ACPI_RTYPE_INTEGER)}}, 640*de5d74c2SJerry Jelinek 641*de5d74c2SJerry Jelinek {{"_NTT", METHOD_0ARGS, 642*de5d74c2SJerry Jelinek METHOD_RETURNS (ACPI_RTYPE_INTEGER)}}, 643*de5d74c2SJerry Jelinek 644*de5d74c2SJerry Jelinek {{"_OFF", METHOD_0ARGS, 645*de5d74c2SJerry Jelinek METHOD_NO_RETURN_VALUE}}, 646*de5d74c2SJerry Jelinek 647*de5d74c2SJerry Jelinek {{"_ON_", METHOD_0ARGS, 648*de5d74c2SJerry Jelinek METHOD_NO_RETURN_VALUE}}, 649*de5d74c2SJerry Jelinek 650*de5d74c2SJerry Jelinek {{"_OS_", METHOD_0ARGS, 651*de5d74c2SJerry Jelinek METHOD_RETURNS (ACPI_RTYPE_STRING)}}, 652*de5d74c2SJerry Jelinek 653*de5d74c2SJerry Jelinek {{"_OSC", METHOD_4ARGS (ACPI_TYPE_BUFFER, ACPI_TYPE_INTEGER, ACPI_TYPE_INTEGER, ACPI_TYPE_BUFFER), 654*de5d74c2SJerry Jelinek METHOD_RETURNS (ACPI_RTYPE_BUFFER)}}, 655*de5d74c2SJerry Jelinek 656*de5d74c2SJerry Jelinek {{"_OST", METHOD_3ARGS (ACPI_TYPE_INTEGER, ACPI_TYPE_INTEGER, ACPI_TYPE_BUFFER), 657*de5d74c2SJerry Jelinek METHOD_NO_RETURN_VALUE}}, 658*de5d74c2SJerry Jelinek 659*de5d74c2SJerry Jelinek {{"_PAI", METHOD_1ARGS (ACPI_TYPE_INTEGER), 660*de5d74c2SJerry Jelinek METHOD_RETURNS (ACPI_RTYPE_INTEGER)}}, 661*de5d74c2SJerry Jelinek 662*de5d74c2SJerry Jelinek {{"_PCL", METHOD_0ARGS, 663*de5d74c2SJerry Jelinek METHOD_RETURNS (ACPI_RTYPE_PACKAGE)}}, /* Variable-length (Refs) */ 664*de5d74c2SJerry Jelinek PACKAGE_INFO (ACPI_PTYPE1_VAR, ACPI_RTYPE_REFERENCE, 0,0,0,0), 665*de5d74c2SJerry Jelinek 666*de5d74c2SJerry Jelinek {{"_PCT", METHOD_0ARGS, 667*de5d74c2SJerry Jelinek METHOD_RETURNS (ACPI_RTYPE_PACKAGE)}}, /* Fixed-length (2 Buf) */ 668*de5d74c2SJerry Jelinek PACKAGE_INFO (ACPI_PTYPE1_FIXED, ACPI_RTYPE_BUFFER, 2,0,0,0), 669*de5d74c2SJerry Jelinek 670*de5d74c2SJerry Jelinek {{"_PDC", METHOD_1ARGS (ACPI_TYPE_BUFFER), 671*de5d74c2SJerry Jelinek METHOD_NO_RETURN_VALUE}}, 672*de5d74c2SJerry Jelinek 673*de5d74c2SJerry Jelinek {{"_PDL", METHOD_0ARGS, 674*de5d74c2SJerry Jelinek METHOD_RETURNS (ACPI_RTYPE_INTEGER)}}, 675*de5d74c2SJerry Jelinek 676*de5d74c2SJerry Jelinek {{"_PIC", METHOD_1ARGS (ACPI_TYPE_INTEGER), 677*de5d74c2SJerry Jelinek METHOD_NO_RETURN_VALUE}}, 678*de5d74c2SJerry Jelinek 679*de5d74c2SJerry Jelinek {{"_PIF", METHOD_0ARGS, 680*de5d74c2SJerry Jelinek METHOD_RETURNS (ACPI_RTYPE_PACKAGE)}}, /* Fixed-length (3 Int),(3 Str) */ 681*de5d74c2SJerry Jelinek PACKAGE_INFO (ACPI_PTYPE1_FIXED, ACPI_RTYPE_INTEGER, 3, ACPI_RTYPE_STRING, 3,0), 682*de5d74c2SJerry Jelinek 683*de5d74c2SJerry Jelinek {{"_PLD", METHOD_0ARGS, 684*de5d74c2SJerry Jelinek METHOD_RETURNS (ACPI_RTYPE_PACKAGE)}}, /* Variable-length (Bufs) */ 685*de5d74c2SJerry Jelinek PACKAGE_INFO (ACPI_PTYPE1_VAR, ACPI_RTYPE_BUFFER, 0,0,0,0), 686*de5d74c2SJerry Jelinek 687*de5d74c2SJerry Jelinek {{"_PMC", METHOD_0ARGS, 688*de5d74c2SJerry Jelinek METHOD_RETURNS (ACPI_RTYPE_PACKAGE)}}, /* Fixed-length (11 Int),(3 Str) */ 689*de5d74c2SJerry Jelinek PACKAGE_INFO (ACPI_PTYPE1_FIXED, ACPI_RTYPE_INTEGER, 11, ACPI_RTYPE_STRING, 3,0), 690*de5d74c2SJerry Jelinek 691*de5d74c2SJerry Jelinek {{"_PMD", METHOD_0ARGS, 692*de5d74c2SJerry Jelinek METHOD_RETURNS (ACPI_RTYPE_PACKAGE)}}, /* Variable-length (Refs) */ 693*de5d74c2SJerry Jelinek PACKAGE_INFO (ACPI_PTYPE1_VAR, ACPI_RTYPE_REFERENCE, 0,0,0,0), 694*de5d74c2SJerry Jelinek 695*de5d74c2SJerry Jelinek {{"_PMM", METHOD_0ARGS, 696*de5d74c2SJerry Jelinek METHOD_RETURNS (ACPI_RTYPE_INTEGER)}}, 697*de5d74c2SJerry Jelinek 698*de5d74c2SJerry Jelinek {{"_PPC", METHOD_0ARGS, 699*de5d74c2SJerry Jelinek METHOD_RETURNS (ACPI_RTYPE_INTEGER)}}, 700*de5d74c2SJerry Jelinek 701*de5d74c2SJerry Jelinek {{"_PPE", METHOD_0ARGS, 702*de5d74c2SJerry Jelinek METHOD_RETURNS (ACPI_RTYPE_INTEGER)}}, /* See dig64 spec */ 703*de5d74c2SJerry Jelinek 704*de5d74c2SJerry Jelinek {{"_PR0", METHOD_0ARGS, 705*de5d74c2SJerry Jelinek METHOD_RETURNS (ACPI_RTYPE_PACKAGE)}}, /* Variable-length (Refs) */ 706*de5d74c2SJerry Jelinek PACKAGE_INFO (ACPI_PTYPE1_VAR, ACPI_RTYPE_REFERENCE, 0,0,0,0), 707*de5d74c2SJerry Jelinek 708*de5d74c2SJerry Jelinek {{"_PR1", METHOD_0ARGS, 709*de5d74c2SJerry Jelinek METHOD_RETURNS (ACPI_RTYPE_PACKAGE)}}, /* Variable-length (Refs) */ 710*de5d74c2SJerry Jelinek PACKAGE_INFO (ACPI_PTYPE1_VAR, ACPI_RTYPE_REFERENCE, 0,0,0,0), 711*de5d74c2SJerry Jelinek 712*de5d74c2SJerry Jelinek {{"_PR2", METHOD_0ARGS, 713*de5d74c2SJerry Jelinek METHOD_RETURNS (ACPI_RTYPE_PACKAGE)}}, /* Variable-length (Refs) */ 714*de5d74c2SJerry Jelinek PACKAGE_INFO (ACPI_PTYPE1_VAR, ACPI_RTYPE_REFERENCE, 0,0,0,0), 715*de5d74c2SJerry Jelinek 716*de5d74c2SJerry Jelinek {{"_PR3", METHOD_0ARGS, 717*de5d74c2SJerry Jelinek METHOD_RETURNS (ACPI_RTYPE_PACKAGE)}}, /* Variable-length (Refs) */ 718*de5d74c2SJerry Jelinek PACKAGE_INFO (ACPI_PTYPE1_VAR, ACPI_RTYPE_REFERENCE, 0,0,0,0), 719*de5d74c2SJerry Jelinek 720*de5d74c2SJerry Jelinek {{"_PRE", METHOD_0ARGS, 721*de5d74c2SJerry Jelinek METHOD_RETURNS (ACPI_RTYPE_PACKAGE)}}, /* Variable-length (Refs) */ 722*de5d74c2SJerry Jelinek PACKAGE_INFO (ACPI_PTYPE1_VAR, ACPI_RTYPE_REFERENCE, 0,0,0,0), 723*de5d74c2SJerry Jelinek 724*de5d74c2SJerry Jelinek {{"_PRL", METHOD_0ARGS, 725*de5d74c2SJerry Jelinek METHOD_RETURNS (ACPI_RTYPE_PACKAGE)}}, /* Variable-length (Refs) */ 726*de5d74c2SJerry Jelinek PACKAGE_INFO (ACPI_PTYPE1_VAR, ACPI_RTYPE_REFERENCE, 0,0,0,0), 727*de5d74c2SJerry Jelinek 728*de5d74c2SJerry Jelinek {{"_PRR", METHOD_0ARGS, /* ACPI 6.0 */ 729*de5d74c2SJerry Jelinek METHOD_RETURNS (ACPI_RTYPE_PACKAGE)}}, /* Fixed-length (1 Ref) */ 730*de5d74c2SJerry Jelinek PACKAGE_INFO (ACPI_PTYPE1_FIXED, ACPI_RTYPE_REFERENCE, 1,0,0,0), 731*de5d74c2SJerry Jelinek 732*de5d74c2SJerry Jelinek {{"_PRS", METHOD_0ARGS, 733*de5d74c2SJerry Jelinek METHOD_RETURNS (ACPI_RTYPE_BUFFER)}}, 734aa2aa9a6SDana Myers 735aa2aa9a6SDana Myers /* 73657190917SDana Myers * For _PRT, many BIOSs reverse the 3rd and 4th Package elements (Source 73757190917SDana Myers * and SourceIndex). This bug is so prevalent that there is code in the 73857190917SDana Myers * ACPICA Resource Manager to detect this and switch them back. For now, 73957190917SDana Myers * do not allow and issue a warning. To allow this and eliminate the 74057190917SDana Myers * warning, add the ACPI_RTYPE_REFERENCE type to the 4th element (index 3) 74157190917SDana Myers * in the statement below. 742aa2aa9a6SDana Myers */ 743*de5d74c2SJerry Jelinek {{"_PRT", METHOD_0ARGS, 744*de5d74c2SJerry Jelinek METHOD_RETURNS (ACPI_RTYPE_PACKAGE)}}, /* Variable-length (Pkgs) each (4): Int,Int,Int/Ref,Int */ 745*de5d74c2SJerry Jelinek PACKAGE_INFO (ACPI_PTYPE2_FIXED, 4, ACPI_RTYPE_INTEGER, ACPI_RTYPE_INTEGER, 746*de5d74c2SJerry Jelinek ACPI_RTYPE_INTEGER | ACPI_RTYPE_REFERENCE, ACPI_RTYPE_INTEGER), 747aa2aa9a6SDana Myers 748*de5d74c2SJerry Jelinek {{"_PRW", METHOD_0ARGS, 749*de5d74c2SJerry Jelinek METHOD_RETURNS (ACPI_RTYPE_PACKAGE)}}, /* Variable-length (Pkgs) each: Pkg/Int,Int,[Variable-length Refs] (Pkg is Ref/Int) */ 750*de5d74c2SJerry Jelinek PACKAGE_INFO (ACPI_PTYPE1_OPTION, 2, ACPI_RTYPE_INTEGER | ACPI_RTYPE_PACKAGE, 751*de5d74c2SJerry Jelinek ACPI_RTYPE_INTEGER, ACPI_RTYPE_REFERENCE, 0), 752aa2aa9a6SDana Myers 753*de5d74c2SJerry Jelinek {{"_PS0", METHOD_0ARGS, 754*de5d74c2SJerry Jelinek METHOD_NO_RETURN_VALUE}}, 755aa2aa9a6SDana Myers 756*de5d74c2SJerry Jelinek {{"_PS1", METHOD_0ARGS, 757*de5d74c2SJerry Jelinek METHOD_NO_RETURN_VALUE}}, 758aa2aa9a6SDana Myers 759*de5d74c2SJerry Jelinek {{"_PS2", METHOD_0ARGS, 760*de5d74c2SJerry Jelinek METHOD_NO_RETURN_VALUE}}, 761aa2aa9a6SDana Myers 762*de5d74c2SJerry Jelinek {{"_PS3", METHOD_0ARGS, 763*de5d74c2SJerry Jelinek METHOD_NO_RETURN_VALUE}}, 764aa2aa9a6SDana Myers 765*de5d74c2SJerry Jelinek {{"_PSC", METHOD_0ARGS, 766*de5d74c2SJerry Jelinek METHOD_RETURNS (ACPI_RTYPE_INTEGER)}}, 76757190917SDana Myers 768*de5d74c2SJerry Jelinek {{"_PSD", METHOD_0ARGS, 769*de5d74c2SJerry Jelinek METHOD_RETURNS (ACPI_RTYPE_PACKAGE)}}, /* Variable-length (Pkgs) each (5 Int) with count */ 770*de5d74c2SJerry Jelinek PACKAGE_INFO (ACPI_PTYPE2_COUNT, ACPI_RTYPE_INTEGER, 0,0,0,0), 771*de5d74c2SJerry Jelinek 772*de5d74c2SJerry Jelinek {{"_PSE", METHOD_1ARGS (ACPI_TYPE_INTEGER), 773*de5d74c2SJerry Jelinek METHOD_NO_RETURN_VALUE}}, 774*de5d74c2SJerry Jelinek 775*de5d74c2SJerry Jelinek {{"_PSL", METHOD_0ARGS, 776*de5d74c2SJerry Jelinek METHOD_RETURNS (ACPI_RTYPE_PACKAGE)}}, /* Variable-length (Refs) */ 777*de5d74c2SJerry Jelinek PACKAGE_INFO (ACPI_PTYPE1_VAR, ACPI_RTYPE_REFERENCE, 0,0,0,0), 778*de5d74c2SJerry Jelinek 779*de5d74c2SJerry Jelinek {{"_PSR", METHOD_0ARGS, 780*de5d74c2SJerry Jelinek METHOD_RETURNS (ACPI_RTYPE_INTEGER)}}, 781*de5d74c2SJerry Jelinek 782*de5d74c2SJerry Jelinek {{"_PSS", METHOD_0ARGS, 783*de5d74c2SJerry Jelinek METHOD_RETURNS (ACPI_RTYPE_PACKAGE)}}, /* Variable-length (Pkgs) each (6 Int) */ 784*de5d74c2SJerry Jelinek PACKAGE_INFO (ACPI_PTYPE2, ACPI_RTYPE_INTEGER, 6,0,0,0), 785*de5d74c2SJerry Jelinek 786*de5d74c2SJerry Jelinek {{"_PSV", METHOD_0ARGS, 787*de5d74c2SJerry Jelinek METHOD_RETURNS (ACPI_RTYPE_INTEGER)}}, 788*de5d74c2SJerry Jelinek 789*de5d74c2SJerry Jelinek {{"_PSW", METHOD_1ARGS (ACPI_TYPE_INTEGER), 790*de5d74c2SJerry Jelinek METHOD_NO_RETURN_VALUE}}, 791*de5d74c2SJerry Jelinek 792*de5d74c2SJerry Jelinek {{"_PTC", METHOD_0ARGS, 793*de5d74c2SJerry Jelinek METHOD_RETURNS (ACPI_RTYPE_PACKAGE)}}, /* Fixed-length (2 Buf) */ 794*de5d74c2SJerry Jelinek PACKAGE_INFO (ACPI_PTYPE1_FIXED, ACPI_RTYPE_BUFFER, 2,0,0,0), 795*de5d74c2SJerry Jelinek 796*de5d74c2SJerry Jelinek {{"_PTP", METHOD_2ARGS (ACPI_TYPE_INTEGER, ACPI_TYPE_INTEGER), 797*de5d74c2SJerry Jelinek METHOD_RETURNS (ACPI_RTYPE_INTEGER)}}, 798*de5d74c2SJerry Jelinek 799*de5d74c2SJerry Jelinek {{"_PTS", METHOD_1ARGS (ACPI_TYPE_INTEGER), 800*de5d74c2SJerry Jelinek METHOD_NO_RETURN_VALUE}}, 801*de5d74c2SJerry Jelinek 802*de5d74c2SJerry Jelinek {{"_PUR", METHOD_0ARGS, 803*de5d74c2SJerry Jelinek METHOD_RETURNS (ACPI_RTYPE_PACKAGE)}}, /* Fixed-length (2 Int) */ 804*de5d74c2SJerry Jelinek PACKAGE_INFO (ACPI_PTYPE1_FIXED, ACPI_RTYPE_INTEGER, 2,0,0,0), 805*de5d74c2SJerry Jelinek 806*de5d74c2SJerry Jelinek {{"_PXM", METHOD_0ARGS, 807*de5d74c2SJerry Jelinek METHOD_RETURNS (ACPI_RTYPE_INTEGER)}}, 808*de5d74c2SJerry Jelinek 809*de5d74c2SJerry Jelinek {{"_RDI", METHOD_0ARGS, /* ACPI 6.0 */ 810*de5d74c2SJerry Jelinek METHOD_RETURNS (ACPI_RTYPE_PACKAGE)}}, /* Variable-length (1 Int, n Pkg (m Ref)) */ 811*de5d74c2SJerry Jelinek PACKAGE_INFO (ACPI_PTYPE2_VAR_VAR, ACPI_RTYPE_INTEGER, 1, 812*de5d74c2SJerry Jelinek ACPI_RTYPE_REFERENCE,0,0), 813*de5d74c2SJerry Jelinek 814*de5d74c2SJerry Jelinek {{"_REG", METHOD_2ARGS (ACPI_TYPE_INTEGER, ACPI_TYPE_INTEGER), 815*de5d74c2SJerry Jelinek METHOD_NO_RETURN_VALUE}}, 816*de5d74c2SJerry Jelinek 817*de5d74c2SJerry Jelinek {{"_REV", METHOD_0ARGS, 818*de5d74c2SJerry Jelinek METHOD_RETURNS (ACPI_RTYPE_INTEGER)}}, 819*de5d74c2SJerry Jelinek 820*de5d74c2SJerry Jelinek {{"_RMV", METHOD_0ARGS, 821*de5d74c2SJerry Jelinek METHOD_RETURNS (ACPI_RTYPE_INTEGER)}}, 822*de5d74c2SJerry Jelinek 823*de5d74c2SJerry Jelinek {{"_ROM", METHOD_2ARGS (ACPI_TYPE_INTEGER, ACPI_TYPE_INTEGER), 824*de5d74c2SJerry Jelinek METHOD_RETURNS (ACPI_RTYPE_BUFFER)}}, 825*de5d74c2SJerry Jelinek 826*de5d74c2SJerry Jelinek {{"_RST", METHOD_0ARGS, /* ACPI 6.0 */ 827*de5d74c2SJerry Jelinek METHOD_NO_RETURN_VALUE}}, 828*de5d74c2SJerry Jelinek 829*de5d74c2SJerry Jelinek {{"_RTV", METHOD_0ARGS, 830*de5d74c2SJerry Jelinek METHOD_RETURNS (ACPI_RTYPE_INTEGER)}}, 831aa2aa9a6SDana Myers 832aa2aa9a6SDana Myers /* 833aa2aa9a6SDana Myers * For _S0_ through _S5_, the ACPI spec defines a return Package 834aa2aa9a6SDana Myers * containing 1 Integer, but most DSDTs have it wrong - 2,3, or 4 integers. 835aa2aa9a6SDana Myers * Allow this by making the objects "Variable-length length", but all elements 836aa2aa9a6SDana Myers * must be Integers. 837aa2aa9a6SDana Myers */ 838*de5d74c2SJerry Jelinek {{"_S0_", METHOD_0ARGS, 839*de5d74c2SJerry Jelinek METHOD_RETURNS (ACPI_RTYPE_PACKAGE)}}, /* Fixed-length (1 Int) */ 840*de5d74c2SJerry Jelinek PACKAGE_INFO (ACPI_PTYPE1_VAR, ACPI_RTYPE_INTEGER, 1,0,0,0), 841aa2aa9a6SDana Myers 842*de5d74c2SJerry Jelinek {{"_S1_", METHOD_0ARGS, 843*de5d74c2SJerry Jelinek METHOD_RETURNS (ACPI_RTYPE_PACKAGE)}}, /* Fixed-length (1 Int) */ 844*de5d74c2SJerry Jelinek PACKAGE_INFO (ACPI_PTYPE1_VAR, ACPI_RTYPE_INTEGER, 1,0,0,0), 845aa2aa9a6SDana Myers 846*de5d74c2SJerry Jelinek {{"_S2_", METHOD_0ARGS, 847*de5d74c2SJerry Jelinek METHOD_RETURNS (ACPI_RTYPE_PACKAGE)}}, /* Fixed-length (1 Int) */ 848*de5d74c2SJerry Jelinek PACKAGE_INFO (ACPI_PTYPE1_VAR, ACPI_RTYPE_INTEGER, 1,0,0,0), 849aa2aa9a6SDana Myers 850*de5d74c2SJerry Jelinek {{"_S3_", METHOD_0ARGS, 851*de5d74c2SJerry Jelinek METHOD_RETURNS (ACPI_RTYPE_PACKAGE)}}, /* Fixed-length (1 Int) */ 852*de5d74c2SJerry Jelinek PACKAGE_INFO (ACPI_PTYPE1_VAR, ACPI_RTYPE_INTEGER, 1,0,0,0), 853aa2aa9a6SDana Myers 854*de5d74c2SJerry Jelinek {{"_S4_", METHOD_0ARGS, 855*de5d74c2SJerry Jelinek METHOD_RETURNS (ACPI_RTYPE_PACKAGE)}}, /* Fixed-length (1 Int) */ 856*de5d74c2SJerry Jelinek PACKAGE_INFO (ACPI_PTYPE1_VAR, ACPI_RTYPE_INTEGER, 1,0,0,0), 857aa2aa9a6SDana Myers 858*de5d74c2SJerry Jelinek {{"_S5_", METHOD_0ARGS, 859*de5d74c2SJerry Jelinek METHOD_RETURNS (ACPI_RTYPE_PACKAGE)}}, /* Fixed-length (1 Int) */ 860*de5d74c2SJerry Jelinek PACKAGE_INFO (ACPI_PTYPE1_VAR, ACPI_RTYPE_INTEGER, 1,0,0,0), 861aa2aa9a6SDana Myers 862*de5d74c2SJerry Jelinek {{"_S1D", METHOD_0ARGS, 863*de5d74c2SJerry Jelinek METHOD_RETURNS (ACPI_RTYPE_INTEGER)}}, 864aa2aa9a6SDana Myers 865*de5d74c2SJerry Jelinek {{"_S2D", METHOD_0ARGS, 866*de5d74c2SJerry Jelinek METHOD_RETURNS (ACPI_RTYPE_INTEGER)}}, 867aa2aa9a6SDana Myers 868*de5d74c2SJerry Jelinek {{"_S3D", METHOD_0ARGS, 869*de5d74c2SJerry Jelinek METHOD_RETURNS (ACPI_RTYPE_INTEGER)}}, 870aa2aa9a6SDana Myers 871*de5d74c2SJerry Jelinek {{"_S4D", METHOD_0ARGS, 872*de5d74c2SJerry Jelinek METHOD_RETURNS (ACPI_RTYPE_INTEGER)}}, 873aa2aa9a6SDana Myers 874*de5d74c2SJerry Jelinek {{"_S0W", METHOD_0ARGS, 875*de5d74c2SJerry Jelinek METHOD_RETURNS (ACPI_RTYPE_INTEGER)}}, 876aa2aa9a6SDana Myers 877*de5d74c2SJerry Jelinek {{"_S1W", METHOD_0ARGS, 878*de5d74c2SJerry Jelinek METHOD_RETURNS (ACPI_RTYPE_INTEGER)}}, 879*de5d74c2SJerry Jelinek 880*de5d74c2SJerry Jelinek {{"_S2W", METHOD_0ARGS, 881*de5d74c2SJerry Jelinek METHOD_RETURNS (ACPI_RTYPE_INTEGER)}}, 882*de5d74c2SJerry Jelinek 883*de5d74c2SJerry Jelinek {{"_S3W", METHOD_0ARGS, 884*de5d74c2SJerry Jelinek METHOD_RETURNS (ACPI_RTYPE_INTEGER)}}, 885*de5d74c2SJerry Jelinek 886*de5d74c2SJerry Jelinek {{"_S4W", METHOD_0ARGS, 887*de5d74c2SJerry Jelinek METHOD_RETURNS (ACPI_RTYPE_INTEGER)}}, 888*de5d74c2SJerry Jelinek 889*de5d74c2SJerry Jelinek {{"_SBS", METHOD_0ARGS, 890*de5d74c2SJerry Jelinek METHOD_RETURNS (ACPI_RTYPE_INTEGER)}}, 891*de5d74c2SJerry Jelinek 892*de5d74c2SJerry Jelinek {{"_SCP", METHOD_1ARGS (ACPI_TYPE_INTEGER) | ARG_COUNT_IS_MINIMUM, 893*de5d74c2SJerry Jelinek METHOD_NO_RETURN_VALUE}}, /* Acpi 1.0 allowed 1 integer arg. Acpi 3.0 expanded to 3 args. Allow both. */ 894*de5d74c2SJerry Jelinek 895*de5d74c2SJerry Jelinek {{"_SDD", METHOD_1ARGS (ACPI_TYPE_BUFFER), 896*de5d74c2SJerry Jelinek METHOD_NO_RETURN_VALUE}}, 897*de5d74c2SJerry Jelinek 898*de5d74c2SJerry Jelinek {{"_SEG", METHOD_0ARGS, 899*de5d74c2SJerry Jelinek METHOD_RETURNS (ACPI_RTYPE_INTEGER)}}, 900*de5d74c2SJerry Jelinek 901*de5d74c2SJerry Jelinek {{"_SHL", METHOD_1ARGS (ACPI_TYPE_INTEGER), 902*de5d74c2SJerry Jelinek METHOD_RETURNS (ACPI_RTYPE_INTEGER)}}, 903*de5d74c2SJerry Jelinek 904*de5d74c2SJerry Jelinek {{"_SLI", METHOD_0ARGS, 905*de5d74c2SJerry Jelinek METHOD_RETURNS (ACPI_RTYPE_BUFFER)}}, 906*de5d74c2SJerry Jelinek 907*de5d74c2SJerry Jelinek {{"_SPD", METHOD_1ARGS (ACPI_TYPE_INTEGER), 908*de5d74c2SJerry Jelinek METHOD_RETURNS (ACPI_RTYPE_INTEGER)}}, 909*de5d74c2SJerry Jelinek 910*de5d74c2SJerry Jelinek {{"_SRS", METHOD_1ARGS (ACPI_TYPE_BUFFER), 911*de5d74c2SJerry Jelinek METHOD_NO_RETURN_VALUE}}, 912*de5d74c2SJerry Jelinek 913*de5d74c2SJerry Jelinek {{"_SRT", METHOD_1ARGS (ACPI_TYPE_BUFFER), 914*de5d74c2SJerry Jelinek METHOD_RETURNS (ACPI_RTYPE_INTEGER)}}, 915*de5d74c2SJerry Jelinek 916*de5d74c2SJerry Jelinek {{"_SRV", METHOD_0ARGS, 917*de5d74c2SJerry Jelinek METHOD_RETURNS (ACPI_RTYPE_INTEGER)}}, /* See IPMI spec */ 918*de5d74c2SJerry Jelinek 919*de5d74c2SJerry Jelinek {{"_SST", METHOD_1ARGS (ACPI_TYPE_INTEGER), 920*de5d74c2SJerry Jelinek METHOD_NO_RETURN_VALUE}}, 921*de5d74c2SJerry Jelinek 922*de5d74c2SJerry Jelinek {{"_STA", METHOD_0ARGS, 923*de5d74c2SJerry Jelinek METHOD_RETURNS (ACPI_RTYPE_INTEGER)}}, 924*de5d74c2SJerry Jelinek 925*de5d74c2SJerry Jelinek {{"_STM", METHOD_3ARGS (ACPI_TYPE_BUFFER, ACPI_TYPE_BUFFER, ACPI_TYPE_BUFFER), 926*de5d74c2SJerry Jelinek METHOD_NO_RETURN_VALUE}}, 927*de5d74c2SJerry Jelinek 928*de5d74c2SJerry Jelinek {{"_STP", METHOD_2ARGS (ACPI_TYPE_INTEGER, ACPI_TYPE_INTEGER), 929*de5d74c2SJerry Jelinek METHOD_RETURNS (ACPI_RTYPE_INTEGER)}}, 930*de5d74c2SJerry Jelinek 931*de5d74c2SJerry Jelinek {{"_STR", METHOD_0ARGS, 932*de5d74c2SJerry Jelinek METHOD_RETURNS (ACPI_RTYPE_BUFFER)}}, 933*de5d74c2SJerry Jelinek 934*de5d74c2SJerry Jelinek {{"_STV", METHOD_2ARGS (ACPI_TYPE_INTEGER, ACPI_TYPE_INTEGER), 935*de5d74c2SJerry Jelinek METHOD_RETURNS (ACPI_RTYPE_INTEGER)}}, 936*de5d74c2SJerry Jelinek 937*de5d74c2SJerry Jelinek {{"_SUB", METHOD_0ARGS, 938*de5d74c2SJerry Jelinek METHOD_RETURNS (ACPI_RTYPE_STRING)}}, 939*de5d74c2SJerry Jelinek 940*de5d74c2SJerry Jelinek {{"_SUN", METHOD_0ARGS, 941*de5d74c2SJerry Jelinek METHOD_RETURNS (ACPI_RTYPE_INTEGER)}}, 942*de5d74c2SJerry Jelinek 943*de5d74c2SJerry Jelinek {{"_SWS", METHOD_0ARGS, 944*de5d74c2SJerry Jelinek METHOD_RETURNS (ACPI_RTYPE_INTEGER)}}, 945*de5d74c2SJerry Jelinek 946*de5d74c2SJerry Jelinek {{"_TC1", METHOD_0ARGS, 947*de5d74c2SJerry Jelinek METHOD_RETURNS (ACPI_RTYPE_INTEGER)}}, 948*de5d74c2SJerry Jelinek 949*de5d74c2SJerry Jelinek {{"_TC2", METHOD_0ARGS, 950*de5d74c2SJerry Jelinek METHOD_RETURNS (ACPI_RTYPE_INTEGER)}}, 951*de5d74c2SJerry Jelinek 952*de5d74c2SJerry Jelinek {{"_TDL", METHOD_0ARGS, 953*de5d74c2SJerry Jelinek METHOD_RETURNS (ACPI_RTYPE_INTEGER)}}, 954*de5d74c2SJerry Jelinek 955*de5d74c2SJerry Jelinek {{"_TFP", METHOD_0ARGS, /* ACPI 6.0 */ 956*de5d74c2SJerry Jelinek METHOD_RETURNS (ACPI_RTYPE_INTEGER)}}, 957*de5d74c2SJerry Jelinek 958*de5d74c2SJerry Jelinek {{"_TIP", METHOD_1ARGS (ACPI_TYPE_INTEGER), 959*de5d74c2SJerry Jelinek METHOD_RETURNS (ACPI_RTYPE_INTEGER)}}, 960*de5d74c2SJerry Jelinek 961*de5d74c2SJerry Jelinek {{"_TIV", METHOD_1ARGS (ACPI_TYPE_INTEGER), 962*de5d74c2SJerry Jelinek METHOD_RETURNS (ACPI_RTYPE_INTEGER)}}, 963*de5d74c2SJerry Jelinek 964*de5d74c2SJerry Jelinek {{"_TMP", METHOD_0ARGS, 965*de5d74c2SJerry Jelinek METHOD_RETURNS (ACPI_RTYPE_INTEGER)}}, 966*de5d74c2SJerry Jelinek 967*de5d74c2SJerry Jelinek {{"_TPC", METHOD_0ARGS, 968*de5d74c2SJerry Jelinek METHOD_RETURNS (ACPI_RTYPE_INTEGER)}}, 969*de5d74c2SJerry Jelinek 970*de5d74c2SJerry Jelinek {{"_TPT", METHOD_1ARGS (ACPI_TYPE_INTEGER), 971*de5d74c2SJerry Jelinek METHOD_NO_RETURN_VALUE}}, 972*de5d74c2SJerry Jelinek 973*de5d74c2SJerry Jelinek {{"_TRT", METHOD_0ARGS, 974*de5d74c2SJerry Jelinek METHOD_RETURNS (ACPI_RTYPE_PACKAGE)}}, /* Variable-length (Pkgs) each 2 Ref/6 Int */ 975*de5d74c2SJerry Jelinek PACKAGE_INFO (ACPI_PTYPE2, ACPI_RTYPE_REFERENCE, 2, ACPI_RTYPE_INTEGER, 6, 0), 976*de5d74c2SJerry Jelinek 977*de5d74c2SJerry Jelinek {{"_TSD", METHOD_0ARGS, 978*de5d74c2SJerry Jelinek METHOD_RETURNS (ACPI_RTYPE_PACKAGE)}}, /* Variable-length (Pkgs) each 5 Int with count */ 979*de5d74c2SJerry Jelinek PACKAGE_INFO (ACPI_PTYPE2_COUNT,ACPI_RTYPE_INTEGER, 5,0,0,0), 980*de5d74c2SJerry Jelinek 981*de5d74c2SJerry Jelinek {{"_TSN", METHOD_0ARGS, /* ACPI 6.0 */ 982*de5d74c2SJerry Jelinek METHOD_RETURNS (ACPI_RTYPE_REFERENCE)}}, 983*de5d74c2SJerry Jelinek 984*de5d74c2SJerry Jelinek {{"_TSP", METHOD_0ARGS, 985*de5d74c2SJerry Jelinek METHOD_RETURNS (ACPI_RTYPE_INTEGER)}}, 986*de5d74c2SJerry Jelinek 987*de5d74c2SJerry Jelinek {{"_TSS", METHOD_0ARGS, 988*de5d74c2SJerry Jelinek METHOD_RETURNS (ACPI_RTYPE_PACKAGE)}}, /* Variable-length (Pkgs) each 5 Int */ 989*de5d74c2SJerry Jelinek PACKAGE_INFO (ACPI_PTYPE2, ACPI_RTYPE_INTEGER, 5,0,0,0), 990*de5d74c2SJerry Jelinek 991*de5d74c2SJerry Jelinek {{"_TST", METHOD_0ARGS, 992*de5d74c2SJerry Jelinek METHOD_RETURNS (ACPI_RTYPE_INTEGER)}}, 993*de5d74c2SJerry Jelinek 994*de5d74c2SJerry Jelinek {{"_TTS", METHOD_1ARGS (ACPI_TYPE_INTEGER), 995*de5d74c2SJerry Jelinek METHOD_NO_RETURN_VALUE}}, 996*de5d74c2SJerry Jelinek 997*de5d74c2SJerry Jelinek {{"_TZD", METHOD_0ARGS, 998*de5d74c2SJerry Jelinek METHOD_RETURNS (ACPI_RTYPE_PACKAGE)}}, /* Variable-length (Refs) */ 999*de5d74c2SJerry Jelinek PACKAGE_INFO (ACPI_PTYPE1_VAR, ACPI_RTYPE_REFERENCE, 0,0,0,0), 1000*de5d74c2SJerry Jelinek 1001*de5d74c2SJerry Jelinek {{"_TZM", METHOD_0ARGS, 1002*de5d74c2SJerry Jelinek METHOD_RETURNS (ACPI_RTYPE_REFERENCE)}}, 1003*de5d74c2SJerry Jelinek 1004*de5d74c2SJerry Jelinek {{"_TZP", METHOD_0ARGS, 1005*de5d74c2SJerry Jelinek METHOD_RETURNS (ACPI_RTYPE_INTEGER)}}, 1006*de5d74c2SJerry Jelinek 1007*de5d74c2SJerry Jelinek {{"_UID", METHOD_0ARGS, 1008*de5d74c2SJerry Jelinek METHOD_RETURNS (ACPI_RTYPE_INTEGER | ACPI_RTYPE_STRING)}}, 1009*de5d74c2SJerry Jelinek 1010*de5d74c2SJerry Jelinek {{"_UPC", METHOD_0ARGS, 1011*de5d74c2SJerry Jelinek METHOD_RETURNS (ACPI_RTYPE_PACKAGE)}}, /* Fixed-length (4 Int) */ 1012*de5d74c2SJerry Jelinek PACKAGE_INFO (ACPI_PTYPE1_FIXED, ACPI_RTYPE_INTEGER, 4,0,0,0), 1013*de5d74c2SJerry Jelinek 1014*de5d74c2SJerry Jelinek {{"_UPD", METHOD_0ARGS, 1015*de5d74c2SJerry Jelinek METHOD_RETURNS (ACPI_RTYPE_INTEGER)}}, 1016*de5d74c2SJerry Jelinek 1017*de5d74c2SJerry Jelinek {{"_UPP", METHOD_0ARGS, 1018*de5d74c2SJerry Jelinek METHOD_RETURNS (ACPI_RTYPE_INTEGER)}}, 1019*de5d74c2SJerry Jelinek 1020*de5d74c2SJerry Jelinek {{"_VPO", METHOD_0ARGS, 1021*de5d74c2SJerry Jelinek METHOD_RETURNS (ACPI_RTYPE_INTEGER)}}, 1022aa2aa9a6SDana Myers 1023aa2aa9a6SDana Myers /* Acpi 1.0 defined _WAK with no return value. Later, it was changed to return a package */ 1024aa2aa9a6SDana Myers 1025*de5d74c2SJerry Jelinek {{"_WAK", METHOD_1ARGS (ACPI_TYPE_INTEGER), 1026*de5d74c2SJerry Jelinek METHOD_RETURNS (ACPI_RTYPE_NONE | ACPI_RTYPE_INTEGER | ACPI_RTYPE_PACKAGE)}}, 1027*de5d74c2SJerry Jelinek PACKAGE_INFO (ACPI_PTYPE1_FIXED, ACPI_RTYPE_INTEGER, 2,0,0,0), /* Fixed-length (2 Int), but is optional */ 1028aa2aa9a6SDana Myers 102926f3cdf0SGordon Ross /* _WDG/_WED are MS extensions defined by "Windows Instrumentation" */ 103026f3cdf0SGordon Ross 1031*de5d74c2SJerry Jelinek {{"_WDG", METHOD_0ARGS, 1032*de5d74c2SJerry Jelinek METHOD_RETURNS (ACPI_RTYPE_BUFFER)}}, 103326f3cdf0SGordon Ross 1034*de5d74c2SJerry Jelinek {{"_WED", METHOD_1ARGS (ACPI_TYPE_INTEGER), 1035*de5d74c2SJerry Jelinek METHOD_RETURNS (ACPI_RTYPE_INTEGER | ACPI_RTYPE_STRING | ACPI_RTYPE_BUFFER)}}, 1036*de5d74c2SJerry Jelinek 1037*de5d74c2SJerry Jelinek {{"_WPC", METHOD_0ARGS, 1038*de5d74c2SJerry Jelinek METHOD_RETURNS (ACPI_RTYPE_INTEGER)}}, /* ACPI 6.1 */ 1039*de5d74c2SJerry Jelinek 1040*de5d74c2SJerry Jelinek {{"_WPP", METHOD_0ARGS, 1041*de5d74c2SJerry Jelinek METHOD_RETURNS (ACPI_RTYPE_INTEGER)}}, /* ACPI 6.1 */ 1042*de5d74c2SJerry Jelinek 1043*de5d74c2SJerry Jelinek PACKAGE_INFO (0,0,0,0,0,0) /* Table terminator */ 1044*de5d74c2SJerry Jelinek }; 1045*de5d74c2SJerry Jelinek #else 1046*de5d74c2SJerry Jelinek extern const ACPI_PREDEFINED_INFO AcpiGbl_PredefinedMethods[]; 1047*de5d74c2SJerry Jelinek #endif 1048*de5d74c2SJerry Jelinek 1049*de5d74c2SJerry Jelinek 1050*de5d74c2SJerry Jelinek #if (defined ACPI_CREATE_RESOURCE_TABLE && defined ACPI_APPLICATION) 1051*de5d74c2SJerry Jelinek /****************************************************************************** 1052*de5d74c2SJerry Jelinek * 1053*de5d74c2SJerry Jelinek * Predefined names for use in Resource Descriptors. These names do not 1054*de5d74c2SJerry Jelinek * appear in the global Predefined Name table (since these names never 1055*de5d74c2SJerry Jelinek * appear in actual AML byte code, only in the original ASL) 1056*de5d74c2SJerry Jelinek * 1057*de5d74c2SJerry Jelinek * Note: Used by iASL compiler and AcpiHelp utility only. 1058*de5d74c2SJerry Jelinek * 1059*de5d74c2SJerry Jelinek *****************************************************************************/ 1060*de5d74c2SJerry Jelinek 1061*de5d74c2SJerry Jelinek const ACPI_PREDEFINED_INFO AcpiGbl_ResourceNames[] = 1062*de5d74c2SJerry Jelinek { 1063*de5d74c2SJerry Jelinek {{"_ADR", WIDTH_16 | WIDTH_64, 0}}, 1064*de5d74c2SJerry Jelinek {{"_ALN", WIDTH_8 | WIDTH_16 | WIDTH_32, 0}}, 1065*de5d74c2SJerry Jelinek {{"_ASI", WIDTH_8, 0}}, 1066*de5d74c2SJerry Jelinek {{"_ASZ", WIDTH_8, 0}}, 1067*de5d74c2SJerry Jelinek {{"_ATT", WIDTH_64, 0}}, 1068*de5d74c2SJerry Jelinek {{"_BAS", WIDTH_16 | WIDTH_32, 0}}, 1069*de5d74c2SJerry Jelinek {{"_BM_", WIDTH_1, 0}}, 1070*de5d74c2SJerry Jelinek {{"_DBT", WIDTH_16, 0}}, /* Acpi 5.0 */ 1071*de5d74c2SJerry Jelinek {{"_DEC", WIDTH_1, 0}}, 1072*de5d74c2SJerry Jelinek {{"_DMA", WIDTH_8, 0}}, 1073*de5d74c2SJerry Jelinek {{"_DPL", WIDTH_1, 0}}, /* Acpi 5.0 */ 1074*de5d74c2SJerry Jelinek {{"_DRS", WIDTH_16, 0}}, /* Acpi 5.0 */ 1075*de5d74c2SJerry Jelinek {{"_END", WIDTH_1, 0}}, /* Acpi 5.0 */ 1076*de5d74c2SJerry Jelinek {{"_FLC", WIDTH_2, 0}}, /* Acpi 5.0 */ 1077*de5d74c2SJerry Jelinek {{"_GRA", WIDTH_ADDRESS, 0}}, 1078*de5d74c2SJerry Jelinek {{"_HE_", WIDTH_1, 0}}, 1079*de5d74c2SJerry Jelinek {{"_INT", WIDTH_16 | WIDTH_32, 0}}, 1080*de5d74c2SJerry Jelinek {{"_IOR", WIDTH_2, 0}}, /* Acpi 5.0 */ 1081*de5d74c2SJerry Jelinek {{"_LEN", WIDTH_8 | WIDTH_ADDRESS, 0}}, 1082*de5d74c2SJerry Jelinek {{"_LIN", WIDTH_8, 0}}, /* Acpi 5.0 */ 1083*de5d74c2SJerry Jelinek {{"_LL_", WIDTH_1, 0}}, 1084*de5d74c2SJerry Jelinek {{"_MAF", WIDTH_1, 0}}, 1085*de5d74c2SJerry Jelinek {{"_MAX", WIDTH_ADDRESS, 0}}, 1086*de5d74c2SJerry Jelinek {{"_MEM", WIDTH_2, 0}}, 1087*de5d74c2SJerry Jelinek {{"_MIF", WIDTH_1, 0}}, 1088*de5d74c2SJerry Jelinek {{"_MIN", WIDTH_ADDRESS, 0}}, 1089*de5d74c2SJerry Jelinek {{"_MOD", WIDTH_1, 0}}, /* Acpi 5.0 */ 1090*de5d74c2SJerry Jelinek {{"_MTP", WIDTH_2, 0}}, 1091*de5d74c2SJerry Jelinek {{"_PAR", WIDTH_8, 0}}, /* Acpi 5.0 */ 1092*de5d74c2SJerry Jelinek {{"_PHA", WIDTH_1, 0}}, /* Acpi 5.0 */ 1093*de5d74c2SJerry Jelinek {{"_PIN", WIDTH_16, 0}}, /* Acpi 5.0 */ 1094*de5d74c2SJerry Jelinek {{"_PPI", WIDTH_8, 0}}, /* Acpi 5.0 */ 1095*de5d74c2SJerry Jelinek {{"_POL", WIDTH_1 | WIDTH_2, 0}}, /* Acpi 5.0 */ 1096*de5d74c2SJerry Jelinek {{"_RBO", WIDTH_8, 0}}, 1097*de5d74c2SJerry Jelinek {{"_RBW", WIDTH_8, 0}}, 1098*de5d74c2SJerry Jelinek {{"_RNG", WIDTH_1, 0}}, 1099*de5d74c2SJerry Jelinek {{"_RT_", WIDTH_8, 0}}, /* Acpi 3.0 */ 1100*de5d74c2SJerry Jelinek {{"_RW_", WIDTH_1, 0}}, 1101*de5d74c2SJerry Jelinek {{"_RXL", WIDTH_16, 0}}, /* Acpi 5.0 */ 1102*de5d74c2SJerry Jelinek {{"_SHR", WIDTH_2, 0}}, 1103*de5d74c2SJerry Jelinek {{"_SIZ", WIDTH_2, 0}}, 1104*de5d74c2SJerry Jelinek {{"_SLV", WIDTH_1, 0}}, /* Acpi 5.0 */ 1105*de5d74c2SJerry Jelinek {{"_SPE", WIDTH_32, 0}}, /* Acpi 5.0 */ 1106*de5d74c2SJerry Jelinek {{"_STB", WIDTH_2, 0}}, /* Acpi 5.0 */ 1107*de5d74c2SJerry Jelinek {{"_TRA", WIDTH_ADDRESS, 0}}, 1108*de5d74c2SJerry Jelinek {{"_TRS", WIDTH_1, 0}}, 1109*de5d74c2SJerry Jelinek {{"_TSF", WIDTH_8, 0}}, /* Acpi 3.0 */ 1110*de5d74c2SJerry Jelinek {{"_TTP", WIDTH_1, 0}}, 1111*de5d74c2SJerry Jelinek {{"_TXL", WIDTH_16, 0}}, /* Acpi 5.0 */ 1112*de5d74c2SJerry Jelinek {{"_TYP", WIDTH_2 | WIDTH_16, 0}}, 1113*de5d74c2SJerry Jelinek {{"_VEN", VARIABLE_DATA, 0}}, /* Acpi 5.0 */ 1114*de5d74c2SJerry Jelinek PACKAGE_INFO (0,0,0,0,0,0) /* Table terminator */ 1115aa2aa9a6SDana Myers }; 1116aa2aa9a6SDana Myers 1117*de5d74c2SJerry Jelinek const ACPI_PREDEFINED_INFO AcpiGbl_ScopeNames[] = { 1118*de5d74c2SJerry Jelinek {{"_GPE", 0, 0}}, 1119*de5d74c2SJerry Jelinek {{"_PR_", 0, 0}}, 1120*de5d74c2SJerry Jelinek {{"_SB_", 0, 0}}, 1121*de5d74c2SJerry Jelinek {{"_SI_", 0, 0}}, 1122*de5d74c2SJerry Jelinek {{"_TZ_", 0, 0}}, 1123*de5d74c2SJerry Jelinek PACKAGE_INFO (0,0,0,0,0,0) /* Table terminator */ 1124*de5d74c2SJerry Jelinek }; 1125*de5d74c2SJerry Jelinek #else 1126*de5d74c2SJerry Jelinek extern const ACPI_PREDEFINED_INFO AcpiGbl_ResourceNames[]; 1127aa2aa9a6SDana Myers #endif 1128*de5d74c2SJerry Jelinek 1129aa2aa9a6SDana Myers #endif 1130