acpredef.h revision 245582
1117756Sdeischen/****************************************************************************** 2117756Sdeischen * 3117756Sdeischen * Name: acpredef - Information table for ACPI predefined methods and objects 4117756Sdeischen * 5117756Sdeischen *****************************************************************************/ 6117756Sdeischen 7117756Sdeischen/* 8117756Sdeischen * Copyright (C) 2000 - 2013, Intel Corp. 9117756Sdeischen * All rights reserved. 10117756Sdeischen * 11117756Sdeischen * Redistribution and use in source and binary forms, with or without 12117756Sdeischen * modification, are permitted provided that the following conditions 13117756Sdeischen * are met: 14117756Sdeischen * 1. Redistributions of source code must retain the above copyright 15117756Sdeischen * notice, this list of conditions, and the following disclaimer, 16117756Sdeischen * without modification. 17117756Sdeischen * 2. Redistributions in binary form must reproduce at minimum a disclaimer 18117756Sdeischen * substantially similar to the "NO WARRANTY" disclaimer below 19117756Sdeischen * ("Disclaimer") and any redistribution must be conditioned upon 20117756Sdeischen * including a substantially similar Disclaimer requirement for further 21117756Sdeischen * binary redistribution. 22117756Sdeischen * 3. Neither the names of the above-listed copyright holders nor the names 23117756Sdeischen * of any contributors may be used to endorse or promote products derived 24117756Sdeischen * from this software without specific prior written permission. 25117756Sdeischen * 26117756Sdeischen * Alternatively, this software may be distributed under the terms of the 27117756Sdeischen * GNU General Public License ("GPL") version 2 as published by the Free 28117756Sdeischen * Software Foundation. 29117756Sdeischen * 30117756Sdeischen * NO WARRANTY 31117756Sdeischen * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 32117756Sdeischen * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 33117756Sdeischen * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR 34117756Sdeischen * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT 35117756Sdeischen * HOLDERS OR CONTRIBUTORS BE LIABLE FOR SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 36117756Sdeischen * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 37117756Sdeischen * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 38117756Sdeischen * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, 39117756Sdeischen * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING 40117756Sdeischen * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 41117756Sdeischen * POSSIBILITY OF SUCH DAMAGES. 42117756Sdeischen */ 43117756Sdeischen 44117756Sdeischen#ifndef __ACPREDEF_H__ 45117756Sdeischen#define __ACPREDEF_H__ 46117756Sdeischen 47117756Sdeischen 48117756Sdeischen/****************************************************************************** 49117756Sdeischen * 50117756Sdeischen * Return Package types 51117756Sdeischen * 52117756Sdeischen * 1) PTYPE1 packages do not contain sub-packages. 53117756Sdeischen * 54117756Sdeischen * ACPI_PTYPE1_FIXED: Fixed-length length, 1 or 2 object types: 55117756Sdeischen * object type 56117756Sdeischen * count 57117756Sdeischen * object type 58117756Sdeischen * count 59117756Sdeischen * 60117756Sdeischen * ACPI_PTYPE1_VAR: Variable-length length: 61117756Sdeischen * object type (Int/Buf/Ref) 62117756Sdeischen * 63117756Sdeischen * ACPI_PTYPE1_OPTION: Package has some required and some optional elements 64117756Sdeischen * (Used for _PRW) 65117756Sdeischen * 66117756Sdeischen * 67117756Sdeischen * 2) PTYPE2 packages contain a Variable-length number of sub-packages. Each 68117756Sdeischen * of the different types describe the contents of each of the sub-packages. 69117756Sdeischen * 70117756Sdeischen * ACPI_PTYPE2: Each subpackage contains 1 or 2 object types: 71117756Sdeischen * object type 72117756Sdeischen * count 73117756Sdeischen * object type 74117756Sdeischen * count 75117756Sdeischen * (Used for _ALR,_MLS,_PSS,_TRT,_TSS) 76117756Sdeischen * 77117756Sdeischen * ACPI_PTYPE2_COUNT: Each subpackage has a count as first element: 78117756Sdeischen * object type 79117756Sdeischen * (Used for _CSD,_PSD,_TSD) 80117756Sdeischen * 81117756Sdeischen * ACPI_PTYPE2_PKG_COUNT: Count of subpackages at start, 1 or 2 object types: 82117756Sdeischen * object type 83117756Sdeischen * count 84117756Sdeischen * object type 85117756Sdeischen * count 86117756Sdeischen * (Used for _CST) 87117756Sdeischen * 88117756Sdeischen * ACPI_PTYPE2_FIXED: Each subpackage is of Fixed-length 89117756Sdeischen * (Used for _PRT) 90117756Sdeischen * 91117756Sdeischen * ACPI_PTYPE2_MIN: Each subpackage has a Variable-length but minimum length 92117756Sdeischen * (Used for _HPX) 93117756Sdeischen * 94117756Sdeischen * ACPI_PTYPE2_REV_FIXED: Revision at start, each subpackage is Fixed-length 95117756Sdeischen * (Used for _ART, _FPS) 96117756Sdeischen * 97117756Sdeischen * ACPI_PTYPE2_FIX_VAR: Each subpackage consists of some fixed-length elements 98117756Sdeischen * followed by an optional element 99117756Sdeischen * object type 100117756Sdeischen * count 101117756Sdeischen * object type 102117756Sdeischen * count = 0 (optional) 103117756Sdeischen * (Used for _DLM) 104117756Sdeischen * 105117756Sdeischen *****************************************************************************/ 106117756Sdeischen 107117756Sdeischenenum AcpiReturnPackageTypes 108117756Sdeischen{ 109117756Sdeischen ACPI_PTYPE1_FIXED = 1, 110117756Sdeischen ACPI_PTYPE1_VAR = 2, 111117756Sdeischen ACPI_PTYPE1_OPTION = 3, 112117756Sdeischen ACPI_PTYPE2 = 4, 113117756Sdeischen ACPI_PTYPE2_COUNT = 5, 114117756Sdeischen ACPI_PTYPE2_PKG_COUNT = 6, 115117756Sdeischen ACPI_PTYPE2_FIXED = 7, 116117756Sdeischen ACPI_PTYPE2_MIN = 8, 117117756Sdeischen ACPI_PTYPE2_REV_FIXED = 9, 118117756Sdeischen ACPI_PTYPE2_FIX_VAR = 10 119117756Sdeischen}; 120117756Sdeischen 121117756Sdeischen 122117756Sdeischen#ifdef ACPI_CREATE_PREDEFINED_TABLE 123117756Sdeischen/* 124117756Sdeischen * Predefined method/object information table. 125117756Sdeischen * 126117756Sdeischen * These are the names that can actually be evaluated via AcpiEvaluateObject. 127117756Sdeischen * Not present in this table are the following: 128117756Sdeischen * 129117756Sdeischen * 1) Predefined/Reserved names that are never evaluated via 130117756Sdeischen * AcpiEvaluateObject: 131117756Sdeischen * _Lxx and _Exx GPE methods 132117756Sdeischen * _Qxx EC methods 133117756Sdeischen * _T_x compiler temporary variables 134117756Sdeischen * 135117756Sdeischen * 2) Predefined names that never actually exist within the AML code: 136117756Sdeischen * Predefined resource descriptor field names 137117756Sdeischen * 138117756Sdeischen * 3) Predefined names that are implemented within ACPICA: 139117756Sdeischen * _OSI 140117756Sdeischen * 141117756Sdeischen * 4) Some predefined names that are not documented within the ACPI spec. 142117756Sdeischen * _WDG, _WED 143117756Sdeischen * 144117756Sdeischen * The main entries in the table each contain the following items: 145117756Sdeischen * 146117756Sdeischen * Name - The ACPI reserved name 147117756Sdeischen * ParamCount - Number of arguments to the method 148117756Sdeischen * ExpectedBtypes - Allowed type(s) for the return value. 149117756Sdeischen * 0 means that no return value is expected. 150117756Sdeischen * 151117756Sdeischen * For methods that return packages, the next entry in the table contains 152117756Sdeischen * information about the expected structure of the package. This information 153117756Sdeischen * is saved here (rather than in a separate table) in order to minimize the 154117756Sdeischen * overall size of the stored data. 155117756Sdeischen * 156117756Sdeischen * Note: The additional braces are intended to promote portability. 157117756Sdeischen */ 158117756Sdeischenstatic const ACPI_PREDEFINED_INFO PredefinedNames[] = 159117756Sdeischen{ 160117756Sdeischen {{"_AC0", 0, ACPI_RTYPE_INTEGER}}, 161117756Sdeischen {{"_AC1", 0, ACPI_RTYPE_INTEGER}}, 162117756Sdeischen {{"_AC2", 0, ACPI_RTYPE_INTEGER}}, 163117756Sdeischen {{"_AC3", 0, ACPI_RTYPE_INTEGER}}, 164117756Sdeischen {{"_AC4", 0, ACPI_RTYPE_INTEGER}}, 165117756Sdeischen {{"_AC5", 0, ACPI_RTYPE_INTEGER}}, 166117756Sdeischen {{"_AC6", 0, ACPI_RTYPE_INTEGER}}, 167117756Sdeischen {{"_AC7", 0, ACPI_RTYPE_INTEGER}}, 168117756Sdeischen {{"_AC8", 0, ACPI_RTYPE_INTEGER}}, 169117756Sdeischen {{"_AC9", 0, ACPI_RTYPE_INTEGER}}, 170117756Sdeischen {{"_ADR", 0, ACPI_RTYPE_INTEGER}}, 171117756Sdeischen {{"_AEI", 0, ACPI_RTYPE_BUFFER}}, 172117756Sdeischen {{"_AL0", 0, ACPI_RTYPE_PACKAGE}}, /* Variable-length (Refs) */ 173117756Sdeischen {{{ACPI_PTYPE1_VAR, ACPI_RTYPE_REFERENCE, 0,0}, 0,0}}, 174117756Sdeischen 175117756Sdeischen {{"_AL1", 0, ACPI_RTYPE_PACKAGE}}, /* Variable-length (Refs) */ 176117756Sdeischen {{{ACPI_PTYPE1_VAR, ACPI_RTYPE_REFERENCE, 0,0}, 0,0}}, 177117756Sdeischen 178117756Sdeischen {{"_AL2", 0, ACPI_RTYPE_PACKAGE}}, /* Variable-length (Refs) */ 179117756Sdeischen {{{ACPI_PTYPE1_VAR, ACPI_RTYPE_REFERENCE, 0,0}, 0,0}}, 180117756Sdeischen 181117756Sdeischen {{"_AL3", 0, ACPI_RTYPE_PACKAGE}}, /* Variable-length (Refs) */ 182117756Sdeischen {{{ACPI_PTYPE1_VAR, ACPI_RTYPE_REFERENCE, 0,0}, 0,0}}, 183117756Sdeischen 184117756Sdeischen {{"_AL4", 0, ACPI_RTYPE_PACKAGE}}, /* Variable-length (Refs) */ 185117756Sdeischen {{{ACPI_PTYPE1_VAR, ACPI_RTYPE_REFERENCE, 0,0}, 0,0}}, 186117756Sdeischen 187117756Sdeischen {{"_AL5", 0, ACPI_RTYPE_PACKAGE}}, /* Variable-length (Refs) */ 188117756Sdeischen {{{ACPI_PTYPE1_VAR, ACPI_RTYPE_REFERENCE, 0,0}, 0,0}}, 189117756Sdeischen 190117756Sdeischen {{"_AL6", 0, ACPI_RTYPE_PACKAGE}}, /* Variable-length (Refs) */ 191117756Sdeischen {{{ACPI_PTYPE1_VAR, ACPI_RTYPE_REFERENCE, 0,0}, 0,0}}, 192117756Sdeischen 193117756Sdeischen {{"_AL7", 0, ACPI_RTYPE_PACKAGE}}, /* Variable-length (Refs) */ 194117756Sdeischen {{{ACPI_PTYPE1_VAR, ACPI_RTYPE_REFERENCE, 0,0}, 0,0}}, 195117756Sdeischen 196117756Sdeischen {{"_AL8", 0, ACPI_RTYPE_PACKAGE}}, /* Variable-length (Refs) */ 197117756Sdeischen {{{ACPI_PTYPE1_VAR, ACPI_RTYPE_REFERENCE, 0,0}, 0,0}}, 198117756Sdeischen 199117756Sdeischen {{"_AL9", 0, ACPI_RTYPE_PACKAGE}}, /* Variable-length (Refs) */ 200117756Sdeischen {{{ACPI_PTYPE1_VAR, ACPI_RTYPE_REFERENCE, 0,0}, 0,0}}, 201117756Sdeischen 202117756Sdeischen {{"_ALC", 0, ACPI_RTYPE_INTEGER}}, 203117756Sdeischen {{"_ALI", 0, ACPI_RTYPE_INTEGER}}, 204117756Sdeischen {{"_ALP", 0, ACPI_RTYPE_INTEGER}}, 205117756Sdeischen {{"_ALR", 0, ACPI_RTYPE_PACKAGE}}, /* Variable-length (Pkgs) each 2 (Ints) */ 206117756Sdeischen {{{ACPI_PTYPE2, ACPI_RTYPE_INTEGER, 2,0}, 0,0}}, 207117756Sdeischen 208117756Sdeischen {{"_ALT", 0, ACPI_RTYPE_INTEGER}}, 209117756Sdeischen {{"_ART", 0, ACPI_RTYPE_PACKAGE}}, /* Variable-length (1 Int(rev), n Pkg (2 Ref/11 Int) */ 210117756Sdeischen {{{ACPI_PTYPE2_REV_FIXED,ACPI_RTYPE_REFERENCE, 2, ACPI_RTYPE_INTEGER}, 11,0}}, 211117756Sdeischen 212117756Sdeischen {{"_BBN", 0, ACPI_RTYPE_INTEGER}}, 213117756Sdeischen {{"_BCL", 0, ACPI_RTYPE_PACKAGE}}, /* Variable-length (Ints) */ 214117756Sdeischen {{{ACPI_PTYPE1_VAR, ACPI_RTYPE_INTEGER, 0,0}, 0,0}}, 215117756Sdeischen 216117756Sdeischen {{"_BCM", 1, 0}}, 217117756Sdeischen {{"_BCT", 1, ACPI_RTYPE_INTEGER}}, 218117756Sdeischen {{"_BDN", 0, ACPI_RTYPE_INTEGER}}, 219 {{"_BFS", 1, 0}}, 220 {{"_BIF", 0, ACPI_RTYPE_PACKAGE}}, /* Fixed-length (9 Int),(4 Str) */ 221 {{{ACPI_PTYPE1_FIXED, ACPI_RTYPE_INTEGER, 9, ACPI_RTYPE_STRING}, 4,0}}, 222 223 {{"_BIX", 0, ACPI_RTYPE_PACKAGE}}, /* Fixed-length (16 Int),(4 Str) */ 224 {{{ACPI_PTYPE1_FIXED, ACPI_RTYPE_INTEGER, 16, ACPI_RTYPE_STRING}, 4,0}}, 225 226 {{"_BLT", 3, 0}}, 227 {{"_BMA", 1, ACPI_RTYPE_INTEGER}}, 228 {{"_BMC", 1, 0}}, 229 {{"_BMD", 0, ACPI_RTYPE_PACKAGE}}, /* Fixed-length (5 Int) */ 230 {{{ACPI_PTYPE1_FIXED, ACPI_RTYPE_INTEGER, 5,0}, 0,0}}, 231 232 {{"_BMS", 1, ACPI_RTYPE_INTEGER}}, 233 {{"_BQC", 0, ACPI_RTYPE_INTEGER}}, 234 {{"_BST", 0, ACPI_RTYPE_PACKAGE}}, /* Fixed-length (4 Int) */ 235 {{{ACPI_PTYPE1_FIXED, ACPI_RTYPE_INTEGER, 4,0}, 0,0}}, 236 237 {{"_BTM", 1, ACPI_RTYPE_INTEGER}}, 238 {{"_BTP", 1, 0}}, 239 {{"_CBA", 0, ACPI_RTYPE_INTEGER}}, /* See PCI firmware spec 3.0 */ 240 {{"_CDM", 0, ACPI_RTYPE_INTEGER}}, 241 {{"_CID", 0, ACPI_RTYPE_INTEGER | ACPI_RTYPE_STRING | ACPI_RTYPE_PACKAGE}}, /* Variable-length (Ints/Strs) */ 242 {{{ACPI_PTYPE1_VAR, ACPI_RTYPE_INTEGER | ACPI_RTYPE_STRING, 0,0}, 0,0}}, 243 244 {{"_CLS", 0, ACPI_RTYPE_PACKAGE}}, /* Fixed-length (3 Int) */ 245 {{{ACPI_PTYPE1_FIXED, ACPI_RTYPE_INTEGER, 3,0}, 0,0}}, 246 247 {{"_CPC", 0, ACPI_RTYPE_PACKAGE}}, /* Variable-length (Ints/Bufs) */ 248 {{{ACPI_PTYPE1_VAR, ACPI_RTYPE_INTEGER | ACPI_RTYPE_BUFFER, 0,0}, 0,0}}, 249 250 {{"_CRS", 0, ACPI_RTYPE_BUFFER}}, 251 {{"_CRT", 0, ACPI_RTYPE_INTEGER}}, 252 {{"_CSD", 0, ACPI_RTYPE_PACKAGE}}, /* Variable-length (1 Int(n), n-1 Int) */ 253 {{{ACPI_PTYPE2_COUNT, ACPI_RTYPE_INTEGER, 0,0}, 0,0}}, 254 255 {{"_CST", 0, ACPI_RTYPE_PACKAGE}}, /* Variable-length (1 Int(n), n Pkg (1 Buf/3 Int) */ 256 {{{ACPI_PTYPE2_PKG_COUNT,ACPI_RTYPE_BUFFER, 1, ACPI_RTYPE_INTEGER}, 3,0}}, 257 258 {{"_CWS", 1, ACPI_RTYPE_INTEGER}}, 259 {{"_DCK", 1, ACPI_RTYPE_INTEGER}}, 260 {{"_DCS", 0, ACPI_RTYPE_INTEGER}}, 261 {{"_DDC", 1, ACPI_RTYPE_INTEGER | ACPI_RTYPE_BUFFER}}, 262 {{"_DDN", 0, ACPI_RTYPE_STRING}}, 263 {{"_DEP", 0, ACPI_RTYPE_PACKAGE}}, /* Variable-length (Refs) */ 264 {{{ACPI_PTYPE1_VAR, ACPI_RTYPE_REFERENCE, 0,0}, 0,0}}, 265 266 {{"_DGS", 0, ACPI_RTYPE_INTEGER}}, 267 {{"_DIS", 0, 0}}, 268 269 {{"_DLM", 0, ACPI_RTYPE_PACKAGE}}, /* Variable-length (Pkgs) each (1 Ref, 0/1 Optional Buf/Ref) */ 270 {{{ACPI_PTYPE2_FIX_VAR, ACPI_RTYPE_REFERENCE, 1, ACPI_RTYPE_REFERENCE | ACPI_RTYPE_BUFFER}, 0,0}}, 271 272 {{"_DMA", 0, ACPI_RTYPE_BUFFER}}, 273 {{"_DOD", 0, ACPI_RTYPE_PACKAGE}}, /* Variable-length (Ints) */ 274 {{{ACPI_PTYPE1_VAR, ACPI_RTYPE_INTEGER, 0,0}, 0,0}}, 275 276 {{"_DOS", 1, 0}}, 277 {{"_DSM", 4, ACPI_RTYPE_ALL}}, /* Must return a type, but it can be of any type */ 278 {{"_DSS", 1, 0}}, 279 {{"_DSW", 3, 0}}, 280 {{"_DTI", 1, 0}}, 281 {{"_EC_", 0, ACPI_RTYPE_INTEGER}}, 282 {{"_EDL", 0, ACPI_RTYPE_PACKAGE}}, /* Variable-length (Refs)*/ 283 {{{ACPI_PTYPE1_VAR, ACPI_RTYPE_REFERENCE, 0,0}, 0,0}}, 284 285 {{"_EJ0", 1, 0}}, 286 {{"_EJ1", 1, 0}}, 287 {{"_EJ2", 1, 0}}, 288 {{"_EJ3", 1, 0}}, 289 {{"_EJ4", 1, 0}}, 290 {{"_EJD", 0, ACPI_RTYPE_STRING}}, 291 {{"_ERR", 3, ACPI_RTYPE_INTEGER}}, /* Internal use only, used by ACPICA test suites */ 292 {{"_EVT", 1, 0}}, 293 {{"_FDE", 0, ACPI_RTYPE_BUFFER}}, 294 {{"_FDI", 0, ACPI_RTYPE_PACKAGE}}, /* Fixed-length (16 Int) */ 295 {{{ACPI_PTYPE1_FIXED, ACPI_RTYPE_INTEGER, 16,0}, 0,0}}, 296 297 {{"_FDM", 1, 0}}, 298 {{"_FIF", 0, ACPI_RTYPE_PACKAGE}}, /* Fixed-length (4 Int) */ 299 {{{ACPI_PTYPE1_FIXED, ACPI_RTYPE_INTEGER, 4,0}, 0,0}}, 300 301 {{"_FIX", 0, ACPI_RTYPE_PACKAGE}}, /* Variable-length (Ints) */ 302 {{{ACPI_PTYPE1_VAR, ACPI_RTYPE_INTEGER, 0,0}, 0,0}}, 303 304 {{"_FPS", 0, ACPI_RTYPE_PACKAGE}}, /* Variable-length (1 Int(rev), n Pkg (5 Int) */ 305 {{{ACPI_PTYPE2_REV_FIXED,ACPI_RTYPE_INTEGER, 5, 0}, 0,0}}, 306 307 {{"_FSL", 1, 0}}, 308 {{"_FST", 0, ACPI_RTYPE_PACKAGE}}, /* Fixed-length (3 Int) */ 309 {{{ACPI_PTYPE1_FIXED, ACPI_RTYPE_INTEGER, 3,0}, 0,0}}, 310 311 312 {{"_GAI", 0, ACPI_RTYPE_INTEGER}}, 313 {{"_GCP", 0, ACPI_RTYPE_INTEGER}}, 314 {{"_GHL", 0, ACPI_RTYPE_INTEGER}}, 315 {{"_GLK", 0, ACPI_RTYPE_INTEGER}}, 316 {{"_GPD", 0, ACPI_RTYPE_INTEGER}}, 317 {{"_GPE", 0, ACPI_RTYPE_INTEGER}}, /* _GPE method, not _GPE scope */ 318 {{"_GRT", 0, ACPI_RTYPE_BUFFER}}, 319 {{"_GSB", 0, ACPI_RTYPE_INTEGER}}, 320 {{"_GTF", 0, ACPI_RTYPE_BUFFER}}, 321 {{"_GTM", 0, ACPI_RTYPE_BUFFER}}, 322 {{"_GTS", 1, 0}}, 323 {{"_GWS", 1, ACPI_RTYPE_INTEGER}}, 324 {{"_HID", 0, ACPI_RTYPE_INTEGER | ACPI_RTYPE_STRING}}, 325 {{"_HOT", 0, ACPI_RTYPE_INTEGER}}, 326 {{"_HPP", 0, ACPI_RTYPE_PACKAGE}}, /* Fixed-length (4 Int) */ 327 {{{ACPI_PTYPE1_FIXED, ACPI_RTYPE_INTEGER, 4,0}, 0,0}}, 328 329 /* 330 * For _HPX, a single package is returned, containing a Variable-length number 331 * of sub-packages. Each sub-package contains a PCI record setting. 332 * There are several different type of record settings, of different 333 * lengths, but all elements of all settings are Integers. 334 */ 335 {{"_HPX", 0, ACPI_RTYPE_PACKAGE}}, /* Variable-length (Pkgs) each (var Ints) */ 336 {{{ACPI_PTYPE2_MIN, ACPI_RTYPE_INTEGER, 5,0}, 0,0}}, 337 338 {{"_HRV", 0, ACPI_RTYPE_INTEGER}}, 339 {{"_IFT", 0, ACPI_RTYPE_INTEGER}}, /* See IPMI spec */ 340 {{"_INI", 0, 0}}, 341 {{"_IRC", 0, 0}}, 342 {{"_LCK", 1, 0}}, 343 {{"_LID", 0, ACPI_RTYPE_INTEGER}}, 344 {{"_MAT", 0, ACPI_RTYPE_BUFFER}}, 345 {{"_MBM", 0, ACPI_RTYPE_PACKAGE}}, /* Fixed-length (8 Int) */ 346 {{{ACPI_PTYPE1_FIXED, ACPI_RTYPE_INTEGER, 8,0}, 0,0}}, 347 348 {{"_MLS", 0, ACPI_RTYPE_PACKAGE}}, /* Variable-length (Pkgs) each (1 Str/1 Buf) */ 349 {{{ACPI_PTYPE2, ACPI_RTYPE_STRING, 1, ACPI_RTYPE_BUFFER}, 1,0}}, 350 351 {{"_MSG", 1, 0}}, 352 {{"_MSM", 4, ACPI_RTYPE_INTEGER}}, 353 {{"_NTT", 0, ACPI_RTYPE_INTEGER}}, 354 {{"_OFF", 0, 0}}, 355 {{"_ON_", 0, 0}}, 356 {{"_OS_", 0, ACPI_RTYPE_STRING}}, 357 {{"_OSC", 4, ACPI_RTYPE_BUFFER}}, 358 {{"_OST", 3, 0}}, 359 {{"_PAI", 1, ACPI_RTYPE_INTEGER}}, 360 {{"_PCL", 0, ACPI_RTYPE_PACKAGE}}, /* Variable-length (Refs) */ 361 {{{ACPI_PTYPE1_VAR, ACPI_RTYPE_REFERENCE, 0,0}, 0,0}}, 362 363 {{"_PCT", 0, ACPI_RTYPE_PACKAGE}}, /* Fixed-length (2 Buf) */ 364 {{{ACPI_PTYPE1_FIXED, ACPI_RTYPE_BUFFER, 2,0}, 0,0}}, 365 366 {{"_PDC", 1, 0}}, 367 {{"_PDL", 0, ACPI_RTYPE_INTEGER}}, 368 {{"_PIC", 1, 0}}, 369 {{"_PIF", 0, ACPI_RTYPE_PACKAGE}}, /* Fixed-length (3 Int),(3 Str) */ 370 {{{ACPI_PTYPE1_FIXED, ACPI_RTYPE_INTEGER, 3, ACPI_RTYPE_STRING}, 3,0}}, 371 372 {{"_PLD", 0, ACPI_RTYPE_PACKAGE}}, /* Variable-length (Bufs) */ 373 {{{ACPI_PTYPE1_VAR, ACPI_RTYPE_BUFFER, 0,0}, 0,0}}, 374 375 {{"_PMC", 0, ACPI_RTYPE_PACKAGE}}, /* Fixed-length (11 Int),(3 Str) */ 376 {{{ACPI_PTYPE1_FIXED, ACPI_RTYPE_INTEGER, 11, ACPI_RTYPE_STRING}, 3,0}}, 377 378 {{"_PMD", 0, ACPI_RTYPE_PACKAGE}}, /* Variable-length (Refs) */ 379 {{{ACPI_PTYPE1_VAR, ACPI_RTYPE_REFERENCE, 0,0}, 0,0}}, 380 381 {{"_PMM", 0, ACPI_RTYPE_INTEGER}}, 382 {{"_PPC", 0, ACPI_RTYPE_INTEGER}}, 383 {{"_PPE", 0, ACPI_RTYPE_INTEGER}}, /* See dig64 spec */ 384 {{"_PR0", 0, ACPI_RTYPE_PACKAGE}}, /* Variable-length (Refs) */ 385 {{{ACPI_PTYPE1_VAR, ACPI_RTYPE_REFERENCE, 0,0}, 0,0}}, 386 387 {{"_PR1", 0, ACPI_RTYPE_PACKAGE}}, /* Variable-length (Refs) */ 388 {{{ACPI_PTYPE1_VAR, ACPI_RTYPE_REFERENCE, 0,0}, 0,0}}, 389 390 {{"_PR2", 0, ACPI_RTYPE_PACKAGE}}, /* Variable-length (Refs) */ 391 {{{ACPI_PTYPE1_VAR, ACPI_RTYPE_REFERENCE, 0,0}, 0,0}}, 392 393 {{"_PR3", 0, ACPI_RTYPE_PACKAGE}}, /* Variable-length (Refs) */ 394 {{{ACPI_PTYPE1_VAR, ACPI_RTYPE_REFERENCE, 0,0}, 0,0}}, 395 396 {{"_PRE", 0, ACPI_RTYPE_PACKAGE}}, /* Variable-length (Refs) */ 397 {{{ACPI_PTYPE1_VAR, ACPI_RTYPE_REFERENCE, 0,0}, 0,0}}, 398 399 {{"_PRL", 0, ACPI_RTYPE_PACKAGE}}, /* Variable-length (Refs) */ 400 {{{ACPI_PTYPE1_VAR, ACPI_RTYPE_REFERENCE, 0,0}, 0,0}}, 401 402 {{"_PRS", 0, ACPI_RTYPE_BUFFER}}, 403 404 /* 405 * For _PRT, many BIOSs reverse the 3rd and 4th Package elements (Source 406 * and SourceIndex). This bug is so prevalent that there is code in the 407 * ACPICA Resource Manager to detect this and switch them back. For now, 408 * do not allow and issue a warning. To allow this and eliminate the 409 * warning, add the ACPI_RTYPE_REFERENCE type to the 4th element (index 3) 410 * in the statement below. 411 */ 412 {{"_PRT", 0, ACPI_RTYPE_PACKAGE}}, /* Variable-length (Pkgs) each (4): Int,Int,Int/Ref,Int */ 413 {{{ACPI_PTYPE2_FIXED, 4, ACPI_RTYPE_INTEGER,ACPI_RTYPE_INTEGER}, 414 ACPI_RTYPE_INTEGER | ACPI_RTYPE_REFERENCE, 415 ACPI_RTYPE_INTEGER}}, 416 417 {{"_PRW", 0, ACPI_RTYPE_PACKAGE}}, /* Variable-length (Pkgs) each: Pkg/Int,Int,[Variable-length Refs] (Pkg is Ref/Int) */ 418 {{{ACPI_PTYPE1_OPTION, 2, ACPI_RTYPE_INTEGER | ACPI_RTYPE_PACKAGE, 419 ACPI_RTYPE_INTEGER}, ACPI_RTYPE_REFERENCE,0}}, 420 421 {{"_PS0", 0, 0}}, 422 {{"_PS1", 0, 0}}, 423 {{"_PS2", 0, 0}}, 424 {{"_PS3", 0, 0}}, 425 {{"_PSC", 0, ACPI_RTYPE_INTEGER}}, 426 {{"_PSD", 0, ACPI_RTYPE_PACKAGE}}, /* Variable-length (Pkgs) each (5 Int) with count */ 427 {{{ACPI_PTYPE2_COUNT, ACPI_RTYPE_INTEGER,0,0}, 0,0}}, 428 429 {{"_PSE", 1, 0}}, 430 {{"_PSL", 0, ACPI_RTYPE_PACKAGE}}, /* Variable-length (Refs) */ 431 {{{ACPI_PTYPE1_VAR, ACPI_RTYPE_REFERENCE, 0,0}, 0,0}}, 432 433 {{"_PSR", 0, ACPI_RTYPE_INTEGER}}, 434 {{"_PSS", 0, ACPI_RTYPE_PACKAGE}}, /* Variable-length (Pkgs) each (6 Int) */ 435 {{{ACPI_PTYPE2, ACPI_RTYPE_INTEGER, 6,0}, 0,0}}, 436 437 {{"_PSV", 0, ACPI_RTYPE_INTEGER}}, 438 {{"_PSW", 1, 0}}, 439 {{"_PTC", 0, ACPI_RTYPE_PACKAGE}}, /* Fixed-length (2 Buf) */ 440 {{{ACPI_PTYPE1_FIXED, ACPI_RTYPE_BUFFER, 2,0}, 0,0}}, 441 442 {{"_PTP", 2, ACPI_RTYPE_INTEGER}}, 443 {{"_PTS", 1, 0}}, 444 {{"_PUR", 0, ACPI_RTYPE_PACKAGE}}, /* Fixed-length (2 Int) */ 445 {{{ACPI_PTYPE1_FIXED, ACPI_RTYPE_INTEGER, 2,0}, 0,0}}, 446 447 {{"_PXM", 0, ACPI_RTYPE_INTEGER}}, 448 {{"_REG", 2, 0}}, 449 {{"_REV", 0, ACPI_RTYPE_INTEGER}}, 450 {{"_RMV", 0, ACPI_RTYPE_INTEGER}}, 451 {{"_ROM", 2, ACPI_RTYPE_BUFFER}}, 452 {{"_RTV", 0, ACPI_RTYPE_INTEGER}}, 453 454 /* 455 * For _S0_ through _S5_, the ACPI spec defines a return Package 456 * containing 1 Integer, but most DSDTs have it wrong - 2,3, or 4 integers. 457 * Allow this by making the objects "Variable-length length", but all elements 458 * must be Integers. 459 */ 460 {{"_S0_", 0, ACPI_RTYPE_PACKAGE}}, /* Fixed-length (1 Int) */ 461 {{{ACPI_PTYPE1_VAR, ACPI_RTYPE_INTEGER, 1,0}, 0,0}}, 462 463 {{"_S1_", 0, ACPI_RTYPE_PACKAGE}}, /* Fixed-length (1 Int) */ 464 {{{ACPI_PTYPE1_VAR, ACPI_RTYPE_INTEGER, 1,0}, 0,0}}, 465 466 {{"_S2_", 0, ACPI_RTYPE_PACKAGE}}, /* Fixed-length (1 Int) */ 467 {{{ACPI_PTYPE1_VAR, ACPI_RTYPE_INTEGER, 1,0}, 0,0}}, 468 469 {{"_S3_", 0, ACPI_RTYPE_PACKAGE}}, /* Fixed-length (1 Int) */ 470 {{{ACPI_PTYPE1_VAR, ACPI_RTYPE_INTEGER, 1,0}, 0,0}}, 471 472 {{"_S4_", 0, ACPI_RTYPE_PACKAGE}}, /* Fixed-length (1 Int) */ 473 {{{ACPI_PTYPE1_VAR, ACPI_RTYPE_INTEGER, 1,0}, 0,0}}, 474 475 {{"_S5_", 0, ACPI_RTYPE_PACKAGE}}, /* Fixed-length (1 Int) */ 476 {{{ACPI_PTYPE1_VAR, ACPI_RTYPE_INTEGER, 1,0}, 0,0}}, 477 478 {{"_S1D", 0, ACPI_RTYPE_INTEGER}}, 479 {{"_S2D", 0, ACPI_RTYPE_INTEGER}}, 480 {{"_S3D", 0, ACPI_RTYPE_INTEGER}}, 481 {{"_S4D", 0, ACPI_RTYPE_INTEGER}}, 482 {{"_S0W", 0, ACPI_RTYPE_INTEGER}}, 483 {{"_S1W", 0, ACPI_RTYPE_INTEGER}}, 484 {{"_S2W", 0, ACPI_RTYPE_INTEGER}}, 485 {{"_S3W", 0, ACPI_RTYPE_INTEGER}}, 486 {{"_S4W", 0, ACPI_RTYPE_INTEGER}}, 487 {{"_SBS", 0, ACPI_RTYPE_INTEGER}}, 488 {{"_SCP", 0x13, 0}}, /* Acpi 1.0 allowed 1 arg. Acpi 3.0 expanded to 3 args. Allow both. */ 489 /* Note: the 3-arg definition may be removed for ACPI 4.0 */ 490 {{"_SDD", 1, 0}}, 491 {{"_SEG", 0, ACPI_RTYPE_INTEGER}}, 492 {{"_SHL", 1, ACPI_RTYPE_INTEGER}}, 493 {{"_SLI", 0, ACPI_RTYPE_BUFFER}}, 494 {{"_SPD", 1, ACPI_RTYPE_INTEGER}}, 495 {{"_SRS", 1, 0}}, 496 {{"_SRT", 1, ACPI_RTYPE_INTEGER}}, 497 {{"_SRV", 0, ACPI_RTYPE_INTEGER}}, /* See IPMI spec */ 498 {{"_SST", 1, 0}}, 499 {{"_STA", 0, ACPI_RTYPE_INTEGER}}, 500 {{"_STM", 3, 0}}, 501 {{"_STP", 2, ACPI_RTYPE_INTEGER}}, 502 {{"_STR", 0, ACPI_RTYPE_BUFFER}}, 503 {{"_STV", 2, ACPI_RTYPE_INTEGER}}, 504 {{"_SUB", 0, ACPI_RTYPE_STRING}}, 505 {{"_SUN", 0, ACPI_RTYPE_INTEGER}}, 506 {{"_SWS", 0, ACPI_RTYPE_INTEGER}}, 507 {{"_TC1", 0, ACPI_RTYPE_INTEGER}}, 508 {{"_TC2", 0, ACPI_RTYPE_INTEGER}}, 509 {{"_TDL", 0, ACPI_RTYPE_INTEGER}}, 510 {{"_TIP", 1, ACPI_RTYPE_INTEGER}}, 511 {{"_TIV", 1, ACPI_RTYPE_INTEGER}}, 512 {{"_TMP", 0, ACPI_RTYPE_INTEGER}}, 513 {{"_TPC", 0, ACPI_RTYPE_INTEGER}}, 514 {{"_TPT", 1, 0}}, 515 {{"_TRT", 0, ACPI_RTYPE_PACKAGE}}, /* Variable-length (Pkgs) each 2 Ref/6 Int */ 516 {{{ACPI_PTYPE2, ACPI_RTYPE_REFERENCE, 2, ACPI_RTYPE_INTEGER}, 6, 0}}, 517 518 {{"_TSD", 0, ACPI_RTYPE_PACKAGE}}, /* Variable-length (Pkgs) each 5 Int with count */ 519 {{{ACPI_PTYPE2_COUNT,ACPI_RTYPE_INTEGER, 5,0}, 0,0}}, 520 521 {{"_TSP", 0, ACPI_RTYPE_INTEGER}}, 522 {{"_TSS", 0, ACPI_RTYPE_PACKAGE}}, /* Variable-length (Pkgs) each 5 Int */ 523 {{{ACPI_PTYPE2, ACPI_RTYPE_INTEGER, 5,0}, 0,0}}, 524 525 {{"_TST", 0, ACPI_RTYPE_INTEGER}}, 526 {{"_TTS", 1, 0}}, 527 {{"_TZD", 0, ACPI_RTYPE_PACKAGE}}, /* Variable-length (Refs) */ 528 {{{ACPI_PTYPE1_VAR, ACPI_RTYPE_REFERENCE, 0,0}, 0,0}}, 529 530 {{"_TZM", 0, ACPI_RTYPE_REFERENCE}}, 531 {{"_TZP", 0, ACPI_RTYPE_INTEGER}}, 532 {{"_UID", 0, ACPI_RTYPE_INTEGER | ACPI_RTYPE_STRING}}, 533 {{"_UPC", 0, ACPI_RTYPE_PACKAGE}}, /* Fixed-length (4 Int) */ 534 {{{ACPI_PTYPE1_FIXED, ACPI_RTYPE_INTEGER, 4,0}, 0,0}}, 535 536 {{"_UPD", 0, ACPI_RTYPE_INTEGER}}, 537 {{"_UPP", 0, ACPI_RTYPE_INTEGER}}, 538 {{"_VPO", 0, ACPI_RTYPE_INTEGER}}, 539 540 /* Acpi 1.0 defined _WAK with no return value. Later, it was changed to return a package */ 541 542 {{"_WAK", 1, ACPI_RTYPE_NONE | ACPI_RTYPE_INTEGER | ACPI_RTYPE_PACKAGE}}, 543 {{{ACPI_PTYPE1_FIXED, ACPI_RTYPE_INTEGER, 2,0}, 0,0}}, /* Fixed-length (2 Int), but is optional */ 544 545 /* _WDG/_WED are MS extensions defined by "Windows Instrumentation" */ 546 547 {{"_WDG", 0, ACPI_RTYPE_BUFFER}}, 548 {{"_WED", 1, ACPI_RTYPE_INTEGER | ACPI_RTYPE_STRING | ACPI_RTYPE_BUFFER}}, 549 550 {{{0,0,0,0}, 0,0}} /* Table terminator */ 551}; 552 553#if 0 554 555 /* This is an internally implemented control method, no need to check */ 556 {{"_OSI", 1, ACPI_RTYPE_INTEGER}}, 557 558 /* TBD: */ 559 560 _PRT - currently ignore reversed entries. Attempt to fix here? 561 Think about possibly fixing package elements like _BIF, etc. 562#endif 563#endif 564#endif 565