1 /****************************************************************************** 2 * 3 * Name: acpredef - Information table for ACPI predefined methods and objects 4 * 5 *****************************************************************************/ 6 7 /****************************************************************************** 8 * 9 * 1. Copyright Notice 10 * 11 * Some or all of this work - Copyright (c) 1999 - 2012, Intel Corp. 12 * All rights reserved. 13 * 14 * 2. License 15 * 16 * 2.1. This is your license from Intel Corp. under its intellectual property 17 * rights. You may have additional license terms from the party that provided 18 * you this software, covering your right to use that party's intellectual 19 * property rights. 20 * 21 * 2.2. Intel grants, free of charge, to any person ("Licensee") obtaining a 22 * copy of the source code appearing in this file ("Covered Code") an 23 * irrevocable, perpetual, worldwide license under Intel's copyrights in the 24 * base code distributed originally by Intel ("Original Intel Code") to copy, 25 * make derivatives, distribute, use and display any portion of the Covered 26 * Code in any form, with the right to sublicense such rights; and 27 * 28 * 2.3. Intel grants Licensee a non-exclusive and non-transferable patent 29 * license (with the right to sublicense), under only those claims of Intel 30 * patents that are infringed by the Original Intel Code, to make, use, sell, 31 * offer to sell, and import the Covered Code and derivative works thereof 32 * solely to the minimum extent necessary to exercise the above copyright 33 * license, and in no event shall the patent license extend to any additions 34 * to or modifications of the Original Intel Code. No other license or right 35 * is granted directly or by implication, estoppel or otherwise; 36 * 37 * The above copyright and patent license is granted only if the following 38 * conditions are met: 39 * 40 * 3. Conditions 41 * 42 * 3.1. Redistribution of Source with Rights to Further Distribute Source. 43 * Redistribution of source code of any substantial portion of the Covered 44 * Code or modification with rights to further distribute source must include 45 * the above Copyright Notice, the above License, this list of Conditions, 46 * and the following Disclaimer and Export Compliance provision. In addition, 47 * Licensee must cause all Covered Code to which Licensee contributes to 48 * contain a file documenting the changes Licensee made to create that Covered 49 * Code and the date of any change. Licensee must include in that file the 50 * documentation of any changes made by any predecessor Licensee. Licensee 51 * must include a prominent statement that the modification is derived, 52 * directly or indirectly, from Original Intel Code. 53 * 54 * 3.2. Redistribution of Source with no Rights to Further Distribute Source. 55 * Redistribution of source code of any substantial portion of the Covered 56 * Code or modification without rights to further distribute source must 57 * include the following Disclaimer and Export Compliance provision in the 58 * documentation and/or other materials provided with distribution. In 59 * addition, Licensee may not authorize further sublicense of source of any 60 * portion of the Covered Code, and must include terms to the effect that the 61 * license from Licensee to its licensee is limited to the intellectual 62 * property embodied in the software Licensee provides to its licensee, and 63 * not to intellectual property embodied in modifications its licensee may 64 * make. 65 * 66 * 3.3. Redistribution of Executable. Redistribution in executable form of any 67 * substantial portion of the Covered Code or modification must reproduce the 68 * above Copyright Notice, and the following Disclaimer and Export Compliance 69 * provision in the documentation and/or other materials provided with the 70 * distribution. 71 * 72 * 3.4. Intel retains all right, title, and interest in and to the Original 73 * Intel Code. 74 * 75 * 3.5. Neither the name Intel nor any other trademark owned or controlled by 76 * Intel shall be used in advertising or otherwise to promote the sale, use or 77 * other dealings in products derived from or relating to the Covered Code 78 * without prior written authorization from Intel. 79 * 80 * 4. Disclaimer and Export Compliance 81 * 82 * 4.1. INTEL MAKES NO WARRANTY OF ANY KIND REGARDING ANY SOFTWARE PROVIDED 83 * HERE. ANY SOFTWARE ORIGINATING FROM INTEL OR DERIVED FROM INTEL SOFTWARE 84 * IS PROVIDED "AS IS," AND INTEL WILL NOT PROVIDE ANY SUPPORT, ASSISTANCE, 85 * INSTALLATION, TRAINING OR OTHER SERVICES. INTEL WILL NOT PROVIDE ANY 86 * UPDATES, ENHANCEMENTS OR EXTENSIONS. INTEL SPECIFICALLY DISCLAIMS ANY 87 * IMPLIED WARRANTIES OF MERCHANTABILITY, NONINFRINGEMENT AND FITNESS FOR A 88 * PARTICULAR PURPOSE. 89 * 90 * 4.2. IN NO EVENT SHALL INTEL HAVE ANY LIABILITY TO LICENSEE, ITS LICENSEES 91 * OR ANY OTHER THIRD PARTY, FOR ANY LOST PROFITS, LOST DATA, LOSS OF USE OR 92 * COSTS OF PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES, OR FOR ANY INDIRECT, 93 * SPECIAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THIS AGREEMENT, UNDER ANY 94 * CAUSE OF ACTION OR THEORY OF LIABILITY, AND IRRESPECTIVE OF WHETHER INTEL 95 * HAS ADVANCE NOTICE OF THE POSSIBILITY OF SUCH DAMAGES. THESE LIMITATIONS 96 * SHALL APPLY NOTWITHSTANDING THE FAILURE OF THE ESSENTIAL PURPOSE OF ANY 97 * LIMITED REMEDY. 98 * 99 * 4.3. Licensee shall not export, either directly or indirectly, any of this 100 * software or system incorporating such software without first obtaining any 101 * required license or other approval from the U. S. Department of Commerce or 102 * any other agency or department of the United States Government. In the 103 * event Licensee exports any such software from the United States or 104 * re-exports any such software from a foreign destination, Licensee shall 105 * ensure that the distribution and export/re-export of the software is in 106 * compliance with all laws, regulations, orders, or other restrictions of the 107 * U.S. Export Administration Regulations. Licensee agrees that neither it nor 108 * any of its subsidiaries will export/re-export any technical data, process, 109 * software, or service, directly or indirectly, to any country for which the 110 * United States government or any agency thereof requires an export license, 111 * other governmental approval, or letter of assurance, without first obtaining 112 * such license, approval or letter. 113 * 114 *****************************************************************************/ 115 116 #ifndef __ACPREDEF_H__ 117 #define __ACPREDEF_H__ 118 119 120 /****************************************************************************** 121 * 122 * Return Package types 123 * 124 * 1) PTYPE1 packages do not contain sub-packages. 125 * 126 * ACPI_PTYPE1_FIXED: Fixed-length length, 1 or 2 object types: 127 * object type 128 * count 129 * object type 130 * count 131 * 132 * ACPI_PTYPE1_VAR: Variable-length length: 133 * object type (Int/Buf/Ref) 134 * 135 * ACPI_PTYPE1_OPTION: Package has some required and some optional elements 136 * (Used for _PRW) 137 * 138 * 139 * 2) PTYPE2 packages contain a Variable-length number of sub-packages. Each 140 * of the different types describe the contents of each of the sub-packages. 141 * 142 * ACPI_PTYPE2: Each subpackage contains 1 or 2 object types: 143 * object type 144 * count 145 * object type 146 * count 147 * (Used for _ALR,_MLS,_PSS,_TRT,_TSS) 148 * 149 * ACPI_PTYPE2_COUNT: Each subpackage has a count as first element: 150 * object type 151 * (Used for _CSD,_PSD,_TSD) 152 * 153 * ACPI_PTYPE2_PKG_COUNT: Count of subpackages at start, 1 or 2 object types: 154 * object type 155 * count 156 * object type 157 * count 158 * (Used for _CST) 159 * 160 * ACPI_PTYPE2_FIXED: Each subpackage is of Fixed-length 161 * (Used for _PRT) 162 * 163 * ACPI_PTYPE2_MIN: Each subpackage has a Variable-length but minimum length 164 * (Used for _HPX) 165 * 166 * ACPI_PTYPE2_REV_FIXED: Revision at start, each subpackage is Fixed-length 167 * (Used for _ART, _FPS) 168 * 169 * ACPI_PTYPE2_FIX_VAR: Each subpackage consists of some fixed-length elements 170 * followed by an optional element 171 * object type 172 * count 173 * object type 174 * count = 0 (optional) 175 * (Used for _DLM) 176 * 177 *****************************************************************************/ 178 179 enum AcpiReturnPackageTypes 180 { 181 ACPI_PTYPE1_FIXED = 1, 182 ACPI_PTYPE1_VAR = 2, 183 ACPI_PTYPE1_OPTION = 3, 184 ACPI_PTYPE2 = 4, 185 ACPI_PTYPE2_COUNT = 5, 186 ACPI_PTYPE2_PKG_COUNT = 6, 187 ACPI_PTYPE2_FIXED = 7, 188 ACPI_PTYPE2_MIN = 8, 189 ACPI_PTYPE2_REV_FIXED = 9, 190 ACPI_PTYPE2_FIX_VAR = 10 191 }; 192 193 194 #ifdef ACPI_CREATE_PREDEFINED_TABLE 195 /* 196 * Predefined method/object information table. 197 * 198 * These are the names that can actually be evaluated via AcpiEvaluateObject. 199 * Not present in this table are the following: 200 * 201 * 1) Predefined/Reserved names that are never evaluated via 202 * AcpiEvaluateObject: 203 * _Lxx and _Exx GPE methods 204 * _Qxx EC methods 205 * _T_x compiler temporary variables 206 * 207 * 2) Predefined names that never actually exist within the AML code: 208 * Predefined resource descriptor field names 209 * 210 * 3) Predefined names that are implemented within ACPICA: 211 * _OSI 212 * 213 * 4) Some predefined names that are not documented within the ACPI spec. 214 * _WDG, _WED 215 * 216 * The main entries in the table each contain the following items: 217 * 218 * Name - The ACPI reserved name 219 * ParamCount - Number of arguments to the method 220 * ExpectedBtypes - Allowed type(s) for the return value. 221 * 0 means that no return value is expected. 222 * 223 * For methods that return packages, the next entry in the table contains 224 * information about the expected structure of the package. This information 225 * is saved here (rather than in a separate table) in order to minimize the 226 * overall size of the stored data. 227 * 228 * Note: The additional braces are intended to promote portability. 229 */ 230 static const ACPI_PREDEFINED_INFO PredefinedNames[] = 231 { 232 {{"_AC0", 0, ACPI_RTYPE_INTEGER}}, 233 {{"_AC1", 0, ACPI_RTYPE_INTEGER}}, 234 {{"_AC2", 0, ACPI_RTYPE_INTEGER}}, 235 {{"_AC3", 0, ACPI_RTYPE_INTEGER}}, 236 {{"_AC4", 0, ACPI_RTYPE_INTEGER}}, 237 {{"_AC5", 0, ACPI_RTYPE_INTEGER}}, 238 {{"_AC6", 0, ACPI_RTYPE_INTEGER}}, 239 {{"_AC7", 0, ACPI_RTYPE_INTEGER}}, 240 {{"_AC8", 0, ACPI_RTYPE_INTEGER}}, 241 {{"_AC9", 0, ACPI_RTYPE_INTEGER}}, 242 {{"_ADR", 0, ACPI_RTYPE_INTEGER}}, 243 {{"_AEI", 0, ACPI_RTYPE_BUFFER}}, 244 {{"_AL0", 0, ACPI_RTYPE_PACKAGE}}, /* Variable-length (Refs) */ 245 {{{ACPI_PTYPE1_VAR, ACPI_RTYPE_REFERENCE, 0,0}, 0,0}}, 246 247 {{"_AL1", 0, ACPI_RTYPE_PACKAGE}}, /* Variable-length (Refs) */ 248 {{{ACPI_PTYPE1_VAR, ACPI_RTYPE_REFERENCE, 0,0}, 0,0}}, 249 250 {{"_AL2", 0, ACPI_RTYPE_PACKAGE}}, /* Variable-length (Refs) */ 251 {{{ACPI_PTYPE1_VAR, ACPI_RTYPE_REFERENCE, 0,0}, 0,0}}, 252 253 {{"_AL3", 0, ACPI_RTYPE_PACKAGE}}, /* Variable-length (Refs) */ 254 {{{ACPI_PTYPE1_VAR, ACPI_RTYPE_REFERENCE, 0,0}, 0,0}}, 255 256 {{"_AL4", 0, ACPI_RTYPE_PACKAGE}}, /* Variable-length (Refs) */ 257 {{{ACPI_PTYPE1_VAR, ACPI_RTYPE_REFERENCE, 0,0}, 0,0}}, 258 259 {{"_AL5", 0, ACPI_RTYPE_PACKAGE}}, /* Variable-length (Refs) */ 260 {{{ACPI_PTYPE1_VAR, ACPI_RTYPE_REFERENCE, 0,0}, 0,0}}, 261 262 {{"_AL6", 0, ACPI_RTYPE_PACKAGE}}, /* Variable-length (Refs) */ 263 {{{ACPI_PTYPE1_VAR, ACPI_RTYPE_REFERENCE, 0,0}, 0,0}}, 264 265 {{"_AL7", 0, ACPI_RTYPE_PACKAGE}}, /* Variable-length (Refs) */ 266 {{{ACPI_PTYPE1_VAR, ACPI_RTYPE_REFERENCE, 0,0}, 0,0}}, 267 268 {{"_AL8", 0, ACPI_RTYPE_PACKAGE}}, /* Variable-length (Refs) */ 269 {{{ACPI_PTYPE1_VAR, ACPI_RTYPE_REFERENCE, 0,0}, 0,0}}, 270 271 {{"_AL9", 0, ACPI_RTYPE_PACKAGE}}, /* Variable-length (Refs) */ 272 {{{ACPI_PTYPE1_VAR, ACPI_RTYPE_REFERENCE, 0,0}, 0,0}}, 273 274 {{"_ALC", 0, ACPI_RTYPE_INTEGER}}, 275 {{"_ALI", 0, ACPI_RTYPE_INTEGER}}, 276 {{"_ALP", 0, ACPI_RTYPE_INTEGER}}, 277 {{"_ALR", 0, ACPI_RTYPE_PACKAGE}}, /* Variable-length (Pkgs) each 2 (Ints) */ 278 {{{ACPI_PTYPE2, ACPI_RTYPE_INTEGER, 2,0}, 0,0}}, 279 280 {{"_ALT", 0, ACPI_RTYPE_INTEGER}}, 281 {{"_ART", 0, ACPI_RTYPE_PACKAGE}}, /* Variable-length (1 Int(rev), n Pkg (2 Ref/11 Int) */ 282 {{{ACPI_PTYPE2_REV_FIXED,ACPI_RTYPE_REFERENCE, 2, ACPI_RTYPE_INTEGER}, 11,0}}, 283 284 {{"_BBN", 0, ACPI_RTYPE_INTEGER}}, 285 {{"_BCL", 0, ACPI_RTYPE_PACKAGE}}, /* Variable-length (Ints) */ 286 {{{ACPI_PTYPE1_VAR, ACPI_RTYPE_INTEGER, 0,0}, 0,0}}, 287 288 {{"_BCM", 1, 0}}, 289 {{"_BCT", 1, ACPI_RTYPE_INTEGER}}, 290 {{"_BDN", 0, ACPI_RTYPE_INTEGER}}, 291 {{"_BFS", 1, 0}}, 292 {{"_BIF", 0, ACPI_RTYPE_PACKAGE}}, /* Fixed-length (9 Int),(4 Str) */ 293 {{{ACPI_PTYPE1_FIXED, ACPI_RTYPE_INTEGER, 9, ACPI_RTYPE_STRING}, 4,0}}, 294 295 {{"_BIX", 0, ACPI_RTYPE_PACKAGE}}, /* Fixed-length (16 Int),(4 Str) */ 296 {{{ACPI_PTYPE1_FIXED, ACPI_RTYPE_INTEGER, 16, ACPI_RTYPE_STRING}, 4,0}}, 297 298 {{"_BLT", 3, 0}}, 299 {{"_BMA", 1, ACPI_RTYPE_INTEGER}}, 300 {{"_BMC", 1, 0}}, 301 {{"_BMD", 0, ACPI_RTYPE_PACKAGE}}, /* Fixed-length (5 Int) */ 302 {{{ACPI_PTYPE1_FIXED, ACPI_RTYPE_INTEGER, 5,0}, 0,0}}, 303 304 {{"_BMS", 1, ACPI_RTYPE_INTEGER}}, 305 {{"_BQC", 0, ACPI_RTYPE_INTEGER}}, 306 {{"_BST", 0, ACPI_RTYPE_PACKAGE}}, /* Fixed-length (4 Int) */ 307 {{{ACPI_PTYPE1_FIXED, ACPI_RTYPE_INTEGER, 4,0}, 0,0}}, 308 309 {{"_BTM", 1, ACPI_RTYPE_INTEGER}}, 310 {{"_BTP", 1, 0}}, 311 {{"_CBA", 0, ACPI_RTYPE_INTEGER}}, /* See PCI firmware spec 3.0 */ 312 {{"_CDM", 0, ACPI_RTYPE_INTEGER}}, 313 {{"_CID", 0, ACPI_RTYPE_INTEGER | ACPI_RTYPE_STRING | ACPI_RTYPE_PACKAGE}}, /* Variable-length (Ints/Strs) */ 314 {{{ACPI_PTYPE1_VAR, ACPI_RTYPE_INTEGER | ACPI_RTYPE_STRING, 0,0}, 0,0}}, 315 316 {{"_CLS", 0, ACPI_RTYPE_PACKAGE}}, /* Fixed-length (3 Int) */ 317 {{{ACPI_PTYPE1_FIXED, ACPI_RTYPE_INTEGER, 3,0}, 0,0}}, 318 319 {{"_CPC", 0, ACPI_RTYPE_PACKAGE}}, /* Variable-length (Ints/Bufs) */ 320 {{{ACPI_PTYPE1_VAR, ACPI_RTYPE_INTEGER | ACPI_RTYPE_BUFFER, 0,0}, 0,0}}, 321 322 {{"_CRS", 0, ACPI_RTYPE_BUFFER}}, 323 {{"_CRT", 0, ACPI_RTYPE_INTEGER}}, 324 {{"_CSD", 0, ACPI_RTYPE_PACKAGE}}, /* Variable-length (1 Int(n), n-1 Int) */ 325 {{{ACPI_PTYPE2_COUNT, ACPI_RTYPE_INTEGER, 0,0}, 0,0}}, 326 327 {{"_CST", 0, ACPI_RTYPE_PACKAGE}}, /* Variable-length (1 Int(n), n Pkg (1 Buf/3 Int) */ 328 {{{ACPI_PTYPE2_PKG_COUNT,ACPI_RTYPE_BUFFER, 1, ACPI_RTYPE_INTEGER}, 3,0}}, 329 330 {{"_CWS", 1, ACPI_RTYPE_INTEGER}}, 331 {{"_DCK", 1, ACPI_RTYPE_INTEGER}}, 332 {{"_DCS", 0, ACPI_RTYPE_INTEGER}}, 333 {{"_DDC", 1, ACPI_RTYPE_INTEGER | ACPI_RTYPE_BUFFER}}, 334 {{"_DDN", 0, ACPI_RTYPE_STRING}}, 335 {{"_DEP", 0, ACPI_RTYPE_PACKAGE}}, /* Variable-length (Refs) */ 336 {{{ACPI_PTYPE1_VAR, ACPI_RTYPE_REFERENCE, 0,0}, 0,0}}, 337 338 {{"_DGS", 0, ACPI_RTYPE_INTEGER}}, 339 {{"_DIS", 0, 0}}, 340 341 {{"_DLM", 0, ACPI_RTYPE_PACKAGE}}, /* Variable-length (Pkgs) each (1 Ref, 0/1 Optional Buf/Ref) */ 342 {{{ACPI_PTYPE2_FIX_VAR, ACPI_RTYPE_REFERENCE, 1, ACPI_RTYPE_REFERENCE | ACPI_RTYPE_BUFFER}, 0,0}}, 343 344 {{"_DMA", 0, ACPI_RTYPE_BUFFER}}, 345 {{"_DOD", 0, ACPI_RTYPE_PACKAGE}}, /* Variable-length (Ints) */ 346 {{{ACPI_PTYPE1_VAR, ACPI_RTYPE_INTEGER, 0,0}, 0,0}}, 347 348 {{"_DOS", 1, 0}}, 349 {{"_DSM", 4, ACPI_RTYPE_ALL}}, /* Must return a type, but it can be of any type */ 350 {{"_DSS", 1, 0}}, 351 {{"_DSW", 3, 0}}, 352 {{"_DTI", 1, 0}}, 353 {{"_EC_", 0, ACPI_RTYPE_INTEGER}}, 354 {{"_EDL", 0, ACPI_RTYPE_PACKAGE}}, /* Variable-length (Refs)*/ 355 {{{ACPI_PTYPE1_VAR, ACPI_RTYPE_REFERENCE, 0,0}, 0,0}}, 356 357 {{"_EJ0", 1, 0}}, 358 {{"_EJ1", 1, 0}}, 359 {{"_EJ2", 1, 0}}, 360 {{"_EJ3", 1, 0}}, 361 {{"_EJ4", 1, 0}}, 362 {{"_EJD", 0, ACPI_RTYPE_STRING}}, 363 {{"_ERR", 3, ACPI_RTYPE_INTEGER}}, /* Internal use only, used by ACPICA test suites */ 364 {{"_EVT", 1, 0}}, 365 {{"_FDE", 0, ACPI_RTYPE_BUFFER}}, 366 {{"_FDI", 0, ACPI_RTYPE_PACKAGE}}, /* Fixed-length (16 Int) */ 367 {{{ACPI_PTYPE1_FIXED, ACPI_RTYPE_INTEGER, 16,0}, 0,0}}, 368 369 {{"_FDM", 1, 0}}, 370 {{"_FIF", 0, ACPI_RTYPE_PACKAGE}}, /* Fixed-length (4 Int) */ 371 {{{ACPI_PTYPE1_FIXED, ACPI_RTYPE_INTEGER, 4,0}, 0,0}}, 372 373 {{"_FIX", 0, ACPI_RTYPE_PACKAGE}}, /* Variable-length (Ints) */ 374 {{{ACPI_PTYPE1_VAR, ACPI_RTYPE_INTEGER, 0,0}, 0,0}}, 375 376 {{"_FPS", 0, ACPI_RTYPE_PACKAGE}}, /* Variable-length (1 Int(rev), n Pkg (5 Int) */ 377 {{{ACPI_PTYPE2_REV_FIXED,ACPI_RTYPE_INTEGER, 5, 0}, 0,0}}, 378 379 {{"_FSL", 1, 0}}, 380 {{"_FST", 0, ACPI_RTYPE_PACKAGE}}, /* Fixed-length (3 Int) */ 381 {{{ACPI_PTYPE1_FIXED, ACPI_RTYPE_INTEGER, 3,0}, 0,0}}, 382 383 384 {{"_GAI", 0, ACPI_RTYPE_INTEGER}}, 385 {{"_GCP", 0, ACPI_RTYPE_INTEGER}}, 386 {{"_GHL", 0, ACPI_RTYPE_INTEGER}}, 387 {{"_GLK", 0, ACPI_RTYPE_INTEGER}}, 388 {{"_GPD", 0, ACPI_RTYPE_INTEGER}}, 389 {{"_GPE", 0, ACPI_RTYPE_INTEGER}}, /* _GPE method, not _GPE scope */ 390 {{"_GRT", 0, ACPI_RTYPE_BUFFER}}, 391 {{"_GSB", 0, ACPI_RTYPE_INTEGER}}, 392 {{"_GTF", 0, ACPI_RTYPE_BUFFER}}, 393 {{"_GTM", 0, ACPI_RTYPE_BUFFER}}, 394 {{"_GTS", 1, 0}}, 395 {{"_GWS", 1, ACPI_RTYPE_INTEGER}}, 396 {{"_HID", 0, ACPI_RTYPE_INTEGER | ACPI_RTYPE_STRING}}, 397 {{"_HOT", 0, ACPI_RTYPE_INTEGER}}, 398 {{"_HPP", 0, ACPI_RTYPE_PACKAGE}}, /* Fixed-length (4 Int) */ 399 {{{ACPI_PTYPE1_FIXED, ACPI_RTYPE_INTEGER, 4,0}, 0,0}}, 400 401 /* 402 * For _HPX, a single package is returned, containing a Variable-length number 403 * of sub-packages. Each sub-package contains a PCI record setting. 404 * There are several different type of record settings, of different 405 * lengths, but all elements of all settings are Integers. 406 */ 407 {{"_HPX", 0, ACPI_RTYPE_PACKAGE}}, /* Variable-length (Pkgs) each (var Ints) */ 408 {{{ACPI_PTYPE2_MIN, ACPI_RTYPE_INTEGER, 5,0}, 0,0}}, 409 410 {{"_HRV", 0, ACPI_RTYPE_INTEGER}}, 411 {{"_IFT", 0, ACPI_RTYPE_INTEGER}}, /* See IPMI spec */ 412 {{"_INI", 0, 0}}, 413 {{"_IRC", 0, 0}}, 414 {{"_LCK", 1, 0}}, 415 {{"_LID", 0, ACPI_RTYPE_INTEGER}}, 416 {{"_MAT", 0, ACPI_RTYPE_BUFFER}}, 417 {{"_MBM", 0, ACPI_RTYPE_PACKAGE}}, /* Fixed-length (8 Int) */ 418 {{{ACPI_PTYPE1_FIXED, ACPI_RTYPE_INTEGER, 8,0}, 0,0}}, 419 420 {{"_MLS", 0, ACPI_RTYPE_PACKAGE}}, /* Variable-length (Pkgs) each (2 Str) */ 421 {{{ACPI_PTYPE2, ACPI_RTYPE_STRING, 2,0}, 0,0}}, 422 423 {{"_MSG", 1, 0}}, 424 {{"_MSM", 4, ACPI_RTYPE_INTEGER}}, 425 {{"_NTT", 0, ACPI_RTYPE_INTEGER}}, 426 {{"_OFF", 0, 0}}, 427 {{"_ON_", 0, 0}}, 428 {{"_OS_", 0, ACPI_RTYPE_STRING}}, 429 {{"_OSC", 4, ACPI_RTYPE_BUFFER}}, 430 {{"_OST", 3, 0}}, 431 {{"_PAI", 1, ACPI_RTYPE_INTEGER}}, 432 {{"_PCL", 0, ACPI_RTYPE_PACKAGE}}, /* Variable-length (Refs) */ 433 {{{ACPI_PTYPE1_VAR, ACPI_RTYPE_REFERENCE, 0,0}, 0,0}}, 434 435 {{"_PCT", 0, ACPI_RTYPE_PACKAGE}}, /* Fixed-length (2 Buf) */ 436 {{{ACPI_PTYPE1_FIXED, ACPI_RTYPE_BUFFER, 2,0}, 0,0}}, 437 438 {{"_PDC", 1, 0}}, 439 {{"_PDL", 0, ACPI_RTYPE_INTEGER}}, 440 {{"_PIC", 1, 0}}, 441 {{"_PIF", 0, ACPI_RTYPE_PACKAGE}}, /* Fixed-length (3 Int),(3 Str) */ 442 {{{ACPI_PTYPE1_FIXED, ACPI_RTYPE_INTEGER, 3, ACPI_RTYPE_STRING}, 3,0}}, 443 444 {{"_PLD", 0, ACPI_RTYPE_PACKAGE}}, /* Variable-length (Bufs) */ 445 {{{ACPI_PTYPE1_VAR, ACPI_RTYPE_BUFFER, 0,0}, 0,0}}, 446 447 {{"_PMC", 0, ACPI_RTYPE_PACKAGE}}, /* Fixed-length (11 Int),(3 Str) */ 448 {{{ACPI_PTYPE1_FIXED, ACPI_RTYPE_INTEGER, 11, ACPI_RTYPE_STRING}, 3,0}}, 449 450 {{"_PMD", 0, ACPI_RTYPE_PACKAGE}}, /* Variable-length (Refs) */ 451 {{{ACPI_PTYPE1_VAR, ACPI_RTYPE_REFERENCE, 0,0}, 0,0}}, 452 453 {{"_PMM", 0, ACPI_RTYPE_INTEGER}}, 454 {{"_PPC", 0, ACPI_RTYPE_INTEGER}}, 455 {{"_PPE", 0, ACPI_RTYPE_INTEGER}}, /* See dig64 spec */ 456 {{"_PR0", 0, ACPI_RTYPE_PACKAGE}}, /* Variable-length (Refs) */ 457 {{{ACPI_PTYPE1_VAR, ACPI_RTYPE_REFERENCE, 0,0}, 0,0}}, 458 459 {{"_PR1", 0, ACPI_RTYPE_PACKAGE}}, /* Variable-length (Refs) */ 460 {{{ACPI_PTYPE1_VAR, ACPI_RTYPE_REFERENCE, 0,0}, 0,0}}, 461 462 {{"_PR2", 0, ACPI_RTYPE_PACKAGE}}, /* Variable-length (Refs) */ 463 {{{ACPI_PTYPE1_VAR, ACPI_RTYPE_REFERENCE, 0,0}, 0,0}}, 464 465 {{"_PR3", 0, ACPI_RTYPE_PACKAGE}}, /* Variable-length (Refs) */ 466 {{{ACPI_PTYPE1_VAR, ACPI_RTYPE_REFERENCE, 0,0}, 0,0}}, 467 468 {{"_PRE", 0, ACPI_RTYPE_PACKAGE}}, /* Variable-length (Refs) */ 469 {{{ACPI_PTYPE1_VAR, ACPI_RTYPE_REFERENCE, 0,0}, 0,0}}, 470 471 {{"_PRL", 0, ACPI_RTYPE_PACKAGE}}, /* Variable-length (Refs) */ 472 {{{ACPI_PTYPE1_VAR, ACPI_RTYPE_REFERENCE, 0,0}, 0,0}}, 473 474 {{"_PRS", 0, ACPI_RTYPE_BUFFER}}, 475 476 /* 477 * For _PRT, many BIOSs reverse the 3rd and 4th Package elements (Source 478 * and SourceIndex). This bug is so prevalent that there is code in the 479 * ACPICA Resource Manager to detect this and switch them back. For now, 480 * do not allow and issue a warning. To allow this and eliminate the 481 * warning, add the ACPI_RTYPE_REFERENCE type to the 4th element (index 3) 482 * in the statement below. 483 */ 484 {{"_PRT", 0, ACPI_RTYPE_PACKAGE}}, /* Variable-length (Pkgs) each (4): Int,Int,Int/Ref,Int */ 485 {{{ACPI_PTYPE2_FIXED, 4, ACPI_RTYPE_INTEGER,ACPI_RTYPE_INTEGER}, 486 ACPI_RTYPE_INTEGER | ACPI_RTYPE_REFERENCE, 487 ACPI_RTYPE_INTEGER}}, 488 489 {{"_PRW", 0, ACPI_RTYPE_PACKAGE}}, /* Variable-length (Pkgs) each: Pkg/Int,Int,[Variable-length Refs] (Pkg is Ref/Int) */ 490 {{{ACPI_PTYPE1_OPTION, 2, ACPI_RTYPE_INTEGER | ACPI_RTYPE_PACKAGE, 491 ACPI_RTYPE_INTEGER}, ACPI_RTYPE_REFERENCE,0}}, 492 493 {{"_PS0", 0, 0}}, 494 {{"_PS1", 0, 0}}, 495 {{"_PS2", 0, 0}}, 496 {{"_PS3", 0, 0}}, 497 {{"_PSC", 0, ACPI_RTYPE_INTEGER}}, 498 {{"_PSD", 0, ACPI_RTYPE_PACKAGE}}, /* Variable-length (Pkgs) each (5 Int) with count */ 499 {{{ACPI_PTYPE2_COUNT, ACPI_RTYPE_INTEGER,0,0}, 0,0}}, 500 501 {{"_PSE", 1, 0}}, 502 {{"_PSL", 0, ACPI_RTYPE_PACKAGE}}, /* Variable-length (Refs) */ 503 {{{ACPI_PTYPE1_VAR, ACPI_RTYPE_REFERENCE, 0,0}, 0,0}}, 504 505 {{"_PSR", 0, ACPI_RTYPE_INTEGER}}, 506 {{"_PSS", 0, ACPI_RTYPE_PACKAGE}}, /* Variable-length (Pkgs) each (6 Int) */ 507 {{{ACPI_PTYPE2, ACPI_RTYPE_INTEGER, 6,0}, 0,0}}, 508 509 {{"_PSV", 0, ACPI_RTYPE_INTEGER}}, 510 {{"_PSW", 1, 0}}, 511 {{"_PTC", 0, ACPI_RTYPE_PACKAGE}}, /* Fixed-length (2 Buf) */ 512 {{{ACPI_PTYPE1_FIXED, ACPI_RTYPE_BUFFER, 2,0}, 0,0}}, 513 514 {{"_PTP", 2, ACPI_RTYPE_INTEGER}}, 515 {{"_PTS", 1, 0}}, 516 {{"_PUR", 0, ACPI_RTYPE_PACKAGE}}, /* Fixed-length (2 Int) */ 517 {{{ACPI_PTYPE1_FIXED, ACPI_RTYPE_INTEGER, 2,0}, 0,0}}, 518 519 {{"_PXM", 0, ACPI_RTYPE_INTEGER}}, 520 {{"_REG", 2, 0}}, 521 {{"_REV", 0, ACPI_RTYPE_INTEGER}}, 522 {{"_RMV", 0, ACPI_RTYPE_INTEGER}}, 523 {{"_ROM", 2, ACPI_RTYPE_BUFFER}}, 524 {{"_RTV", 0, ACPI_RTYPE_INTEGER}}, 525 526 /* 527 * For _S0_ through _S5_, the ACPI spec defines a return Package 528 * containing 1 Integer, but most DSDTs have it wrong - 2,3, or 4 integers. 529 * Allow this by making the objects "Variable-length length", but all elements 530 * must be Integers. 531 */ 532 {{"_S0_", 0, ACPI_RTYPE_PACKAGE}}, /* Fixed-length (1 Int) */ 533 {{{ACPI_PTYPE1_VAR, ACPI_RTYPE_INTEGER, 1,0}, 0,0}}, 534 535 {{"_S1_", 0, ACPI_RTYPE_PACKAGE}}, /* Fixed-length (1 Int) */ 536 {{{ACPI_PTYPE1_VAR, ACPI_RTYPE_INTEGER, 1,0}, 0,0}}, 537 538 {{"_S2_", 0, ACPI_RTYPE_PACKAGE}}, /* Fixed-length (1 Int) */ 539 {{{ACPI_PTYPE1_VAR, ACPI_RTYPE_INTEGER, 1,0}, 0,0}}, 540 541 {{"_S3_", 0, ACPI_RTYPE_PACKAGE}}, /* Fixed-length (1 Int) */ 542 {{{ACPI_PTYPE1_VAR, ACPI_RTYPE_INTEGER, 1,0}, 0,0}}, 543 544 {{"_S4_", 0, ACPI_RTYPE_PACKAGE}}, /* Fixed-length (1 Int) */ 545 {{{ACPI_PTYPE1_VAR, ACPI_RTYPE_INTEGER, 1,0}, 0,0}}, 546 547 {{"_S5_", 0, ACPI_RTYPE_PACKAGE}}, /* Fixed-length (1 Int) */ 548 {{{ACPI_PTYPE1_VAR, ACPI_RTYPE_INTEGER, 1,0}, 0,0}}, 549 550 {{"_S1D", 0, ACPI_RTYPE_INTEGER}}, 551 {{"_S2D", 0, ACPI_RTYPE_INTEGER}}, 552 {{"_S3D", 0, ACPI_RTYPE_INTEGER}}, 553 {{"_S4D", 0, ACPI_RTYPE_INTEGER}}, 554 {{"_S0W", 0, ACPI_RTYPE_INTEGER}}, 555 {{"_S1W", 0, ACPI_RTYPE_INTEGER}}, 556 {{"_S2W", 0, ACPI_RTYPE_INTEGER}}, 557 {{"_S3W", 0, ACPI_RTYPE_INTEGER}}, 558 {{"_S4W", 0, ACPI_RTYPE_INTEGER}}, 559 {{"_SBS", 0, ACPI_RTYPE_INTEGER}}, 560 {{"_SCP", 0x13, 0}}, /* Acpi 1.0 allowed 1 arg. Acpi 3.0 expanded to 3 args. Allow both. */ 561 /* Note: the 3-arg definition may be removed for ACPI 4.0 */ 562 {{"_SDD", 1, 0}}, 563 {{"_SEG", 0, ACPI_RTYPE_INTEGER}}, 564 {{"_SHL", 1, ACPI_RTYPE_INTEGER}}, 565 {{"_SLI", 0, ACPI_RTYPE_BUFFER}}, 566 {{"_SPD", 1, ACPI_RTYPE_INTEGER}}, 567 {{"_SRS", 1, 0}}, 568 {{"_SRT", 1, ACPI_RTYPE_INTEGER}}, 569 {{"_SRV", 0, ACPI_RTYPE_INTEGER}}, /* See IPMI spec */ 570 {{"_SST", 1, 0}}, 571 {{"_STA", 0, ACPI_RTYPE_INTEGER}}, 572 {{"_STM", 3, 0}}, 573 {{"_STP", 2, ACPI_RTYPE_INTEGER}}, 574 {{"_STR", 0, ACPI_RTYPE_BUFFER}}, 575 {{"_STV", 2, ACPI_RTYPE_INTEGER}}, 576 {{"_SUB", 0, ACPI_RTYPE_STRING}}, 577 {{"_SUN", 0, ACPI_RTYPE_INTEGER}}, 578 {{"_SWS", 0, ACPI_RTYPE_INTEGER}}, 579 {{"_TC1", 0, ACPI_RTYPE_INTEGER}}, 580 {{"_TC2", 0, ACPI_RTYPE_INTEGER}}, 581 {{"_TDL", 0, ACPI_RTYPE_INTEGER}}, 582 {{"_TIP", 1, ACPI_RTYPE_INTEGER}}, 583 {{"_TIV", 1, ACPI_RTYPE_INTEGER}}, 584 {{"_TMP", 0, ACPI_RTYPE_INTEGER}}, 585 {{"_TPC", 0, ACPI_RTYPE_INTEGER}}, 586 {{"_TPT", 1, 0}}, 587 {{"_TRT", 0, ACPI_RTYPE_PACKAGE}}, /* Variable-length (Pkgs) each 2 Ref/6 Int */ 588 {{{ACPI_PTYPE2, ACPI_RTYPE_REFERENCE, 2, ACPI_RTYPE_INTEGER}, 6, 0}}, 589 590 {{"_TSD", 0, ACPI_RTYPE_PACKAGE}}, /* Variable-length (Pkgs) each 5 Int with count */ 591 {{{ACPI_PTYPE2_COUNT,ACPI_RTYPE_INTEGER, 5,0}, 0,0}}, 592 593 {{"_TSP", 0, ACPI_RTYPE_INTEGER}}, 594 {{"_TSS", 0, ACPI_RTYPE_PACKAGE}}, /* Variable-length (Pkgs) each 5 Int */ 595 {{{ACPI_PTYPE2, ACPI_RTYPE_INTEGER, 5,0}, 0,0}}, 596 597 {{"_TST", 0, ACPI_RTYPE_INTEGER}}, 598 {{"_TTS", 1, 0}}, 599 {{"_TZD", 0, ACPI_RTYPE_PACKAGE}}, /* Variable-length (Refs) */ 600 {{{ACPI_PTYPE1_VAR, ACPI_RTYPE_REFERENCE, 0,0}, 0,0}}, 601 602 {{"_TZM", 0, ACPI_RTYPE_REFERENCE}}, 603 {{"_TZP", 0, ACPI_RTYPE_INTEGER}}, 604 {{"_UID", 0, ACPI_RTYPE_INTEGER | ACPI_RTYPE_STRING}}, 605 {{"_UPC", 0, ACPI_RTYPE_PACKAGE}}, /* Fixed-length (4 Int) */ 606 {{{ACPI_PTYPE1_FIXED, ACPI_RTYPE_INTEGER, 4,0}, 0,0}}, 607 608 {{"_UPD", 0, ACPI_RTYPE_INTEGER}}, 609 {{"_UPP", 0, ACPI_RTYPE_INTEGER}}, 610 {{"_VPO", 0, ACPI_RTYPE_INTEGER}}, 611 612 /* Acpi 1.0 defined _WAK with no return value. Later, it was changed to return a package */ 613 614 {{"_WAK", 1, ACPI_RTYPE_NONE | ACPI_RTYPE_INTEGER | ACPI_RTYPE_PACKAGE}}, 615 {{{ACPI_PTYPE1_FIXED, ACPI_RTYPE_INTEGER, 2,0}, 0,0}}, /* Fixed-length (2 Int), but is optional */ 616 617 /* _WDG/_WED are MS extensions defined by "Windows Instrumentation" */ 618 619 {{"_WDG", 0, ACPI_RTYPE_BUFFER}}, 620 {{"_WED", 1, ACPI_RTYPE_INTEGER | ACPI_RTYPE_STRING | ACPI_RTYPE_BUFFER}}, 621 622 {{{0,0,0,0}, 0,0}} /* Table terminator */ 623 }; 624 625 #if 0 626 627 /* This is an internally implemented control method, no need to check */ 628 {{"_OSI", 1, ACPI_RTYPE_INTEGER}}, 629 630 /* TBD: */ 631 632 _PRT - currently ignore reversed entries. Attempt to fix here? 633 Think about possibly fixing package elements like _BIF, etc. 634 #endif 635 #endif 636 #endif 637