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