1 /******************************************************************************
3 * Name: acpredef - Information table for ACPI predefined methods and objects
5 *****************************************************************************/
8 * Copyright (C) 2000 - 2015, Intel Corp.
11 * Redistribution and use in source and binary forms, with or without
12 * modification, are permitted provided that the following conditions
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.
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.
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.
44 #ifndef __ACPREDEF_H__
45 #define __ACPREDEF_H__
47 /******************************************************************************
49 * Return Package types
51 * 1) PTYPE1 packages do not contain subpackages.
53 * ACPI_PTYPE1_FIXED: Fixed-length length, 1 or 2 object types:
59 * ACPI_PTYPE1_VAR: Variable-length length. Zero-length package is allowed:
60 * object type (Int/Buf/Ref)
62 * ACPI_PTYPE1_OPTION: Package has some required and some optional elements
66 * 2) PTYPE2 packages contain a Variable-length number of subpackages. Each
67 * of the different types describe the contents of each of the subpackages.
69 * ACPI_PTYPE2: Each subpackage contains 1 or 2 object types. Zero-length
70 * parent package is allowed:
75 * (Used for _ALR,_MLS,_PSS,_TRT,_TSS)
77 * ACPI_PTYPE2_COUNT: Each subpackage has a count as first element.
78 * Zero-length parent package is allowed:
80 * (Used for _CSD,_PSD,_TSD)
82 * ACPI_PTYPE2_PKG_COUNT: Count of subpackages at start, 1 or 2 object types:
89 * ACPI_PTYPE2_FIXED: Each subpackage is of Fixed-length. Zero-length
90 * parent package is allowed.
93 * ACPI_PTYPE2_MIN: Each subpackage has a Variable-length but minimum length.
94 * Zero-length parent package is allowed:
97 * ACPI_PTYPE2_REV_FIXED: Revision at start, each subpackage is Fixed-length
98 * (Used for _ART, _FPS)
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.
105 * count = 0 (optional)
108 * ACPI_PTYPE2_UUID_PAIR: Each subpackage is preceded by a UUID Buffer. The UUID
109 * defines the format of the package. Zero-length parent package is
113 *****************************************************************************/
115 enum acpi_return_package_types
{
116 ACPI_PTYPE1_FIXED
= 1,
118 ACPI_PTYPE1_OPTION
= 3,
120 ACPI_PTYPE2_COUNT
= 5,
121 ACPI_PTYPE2_PKG_COUNT
= 6,
122 ACPI_PTYPE2_FIXED
= 7,
124 ACPI_PTYPE2_REV_FIXED
= 9,
125 ACPI_PTYPE2_FIX_VAR
= 10,
126 ACPI_PTYPE2_UUID_PAIR
= 11
129 /* Support macros for users of the predefined info table */
131 #define METHOD_PREDEF_ARGS_MAX 4
132 #define METHOD_ARG_BIT_WIDTH 3
133 #define METHOD_ARG_MASK 0x0007
134 #define ARG_COUNT_IS_MINIMUM 0x8000
135 #define METHOD_MAX_ARG_TYPE ACPI_TYPE_PACKAGE
137 #define METHOD_GET_ARG_COUNT(arg_list) ((arg_list) & METHOD_ARG_MASK)
138 #define METHOD_GET_NEXT_TYPE(arg_list) (((arg_list) >>= METHOD_ARG_BIT_WIDTH) & METHOD_ARG_MASK)
140 /* Macros used to build the predefined info table */
142 #define METHOD_0ARGS 0
143 #define METHOD_1ARGS(a1) (1 | (a1 << 3))
144 #define METHOD_2ARGS(a1,a2) (2 | (a1 << 3) | (a2 << 6))
145 #define METHOD_3ARGS(a1,a2,a3) (3 | (a1 << 3) | (a2 << 6) | (a3 << 9))
146 #define METHOD_4ARGS(a1,a2,a3,a4) (4 | (a1 << 3) | (a2 << 6) | (a3 << 9) | (a4 << 12))
148 #define METHOD_RETURNS(type) (type)
149 #define METHOD_NO_RETURN_VALUE 0
151 #define PACKAGE_INFO(a,b,c,d,e,f) {{{(a),(b),(c),(d)}, ((((u16)(f)) << 8) | (e)), 0}}
153 /* Support macros for the resource descriptor info table */
155 #define WIDTH_1 0x0001
156 #define WIDTH_2 0x0002
157 #define WIDTH_3 0x0004
158 #define WIDTH_8 0x0008
159 #define WIDTH_16 0x0010
160 #define WIDTH_32 0x0020
161 #define WIDTH_64 0x0040
162 #define VARIABLE_DATA 0x0080
163 #define NUM_RESOURCE_WIDTHS 8
165 #define WIDTH_ADDRESS WIDTH_16 | WIDTH_32 | WIDTH_64
167 #ifdef ACPI_CREATE_PREDEFINED_TABLE
168 /******************************************************************************
170 * Predefined method/object information table.
172 * These are the names that can actually be evaluated via acpi_evaluate_object.
173 * Not present in this table are the following:
175 * 1) Predefined/Reserved names that are never evaluated via
176 * acpi_evaluate_object:
177 * _Lxx and _Exx GPE methods
179 * _T_x compiler temporary variables
182 * 2) Predefined names that never actually exist within the AML code:
183 * Predefined resource descriptor field names
185 * 3) Predefined names that are implemented within ACPICA:
188 * The main entries in the table each contain the following items:
190 * name - The ACPI reserved name
191 * argument_list - Contains (in 16 bits), the number of required
192 * arguments to the method (3 bits), and a 3-bit type
193 * field for each argument (up to 4 arguments). The
194 * METHOD_?ARGS macros generate the correct packed data.
195 * expected_btypes - Allowed type(s) for the return value.
196 * 0 means that no return value is expected.
198 * For methods that return packages, the next entry in the table contains
199 * information about the expected structure of the package. This information
200 * is saved here (rather than in a separate table) in order to minimize the
201 * overall size of the stored data.
203 * Note: The additional braces are intended to promote portability.
205 * Note2: Table is used by the kernel-resident subsystem, the iASL compiler,
206 * and the acpi_help utility.
208 * TBD: _PRT - currently ignore reversed entries. Attempt to fix in nsrepair.
209 * Possibly fixing package elements like _BIF, etc.
211 *****************************************************************************/
213 const union acpi_predefined_info acpi_gbl_predefined_methods
[] = {
214 {{"_AC0", METHOD_0ARGS
,
215 METHOD_RETURNS(ACPI_RTYPE_INTEGER
)}},
217 {{"_AC1", METHOD_0ARGS
,
218 METHOD_RETURNS(ACPI_RTYPE_INTEGER
)}},
220 {{"_AC2", METHOD_0ARGS
,
221 METHOD_RETURNS(ACPI_RTYPE_INTEGER
)}},
223 {{"_AC3", METHOD_0ARGS
,
224 METHOD_RETURNS(ACPI_RTYPE_INTEGER
)}},
226 {{"_AC4", METHOD_0ARGS
,
227 METHOD_RETURNS(ACPI_RTYPE_INTEGER
)}},
229 {{"_AC5", METHOD_0ARGS
,
230 METHOD_RETURNS(ACPI_RTYPE_INTEGER
)}},
232 {{"_AC6", METHOD_0ARGS
,
233 METHOD_RETURNS(ACPI_RTYPE_INTEGER
)}},
235 {{"_AC7", METHOD_0ARGS
,
236 METHOD_RETURNS(ACPI_RTYPE_INTEGER
)}},
238 {{"_AC8", METHOD_0ARGS
,
239 METHOD_RETURNS(ACPI_RTYPE_INTEGER
)}},
241 {{"_AC9", METHOD_0ARGS
,
242 METHOD_RETURNS(ACPI_RTYPE_INTEGER
)}},
244 {{"_ADR", METHOD_0ARGS
,
245 METHOD_RETURNS(ACPI_RTYPE_INTEGER
)}},
247 {{"_AEI", METHOD_0ARGS
,
248 METHOD_RETURNS(ACPI_RTYPE_BUFFER
)}},
250 {{"_AL0", METHOD_0ARGS
,
251 METHOD_RETURNS(ACPI_RTYPE_PACKAGE
)}}, /* Variable-length (Refs) */
252 PACKAGE_INFO(ACPI_PTYPE1_VAR
, ACPI_RTYPE_REFERENCE
, 0, 0, 0, 0),
254 {{"_AL1", METHOD_0ARGS
,
255 METHOD_RETURNS(ACPI_RTYPE_PACKAGE
)}}, /* Variable-length (Refs) */
256 PACKAGE_INFO(ACPI_PTYPE1_VAR
, ACPI_RTYPE_REFERENCE
, 0, 0, 0, 0),
258 {{"_AL2", METHOD_0ARGS
,
259 METHOD_RETURNS(ACPI_RTYPE_PACKAGE
)}}, /* Variable-length (Refs) */
260 PACKAGE_INFO(ACPI_PTYPE1_VAR
, ACPI_RTYPE_REFERENCE
, 0, 0, 0, 0),
262 {{"_AL3", METHOD_0ARGS
,
263 METHOD_RETURNS(ACPI_RTYPE_PACKAGE
)}}, /* Variable-length (Refs) */
264 PACKAGE_INFO(ACPI_PTYPE1_VAR
, ACPI_RTYPE_REFERENCE
, 0, 0, 0, 0),
266 {{"_AL4", METHOD_0ARGS
,
267 METHOD_RETURNS(ACPI_RTYPE_PACKAGE
)}}, /* Variable-length (Refs) */
268 PACKAGE_INFO(ACPI_PTYPE1_VAR
, ACPI_RTYPE_REFERENCE
, 0, 0, 0, 0),
270 {{"_AL5", METHOD_0ARGS
,
271 METHOD_RETURNS(ACPI_RTYPE_PACKAGE
)}}, /* Variable-length (Refs) */
272 PACKAGE_INFO(ACPI_PTYPE1_VAR
, ACPI_RTYPE_REFERENCE
, 0, 0, 0, 0),
274 {{"_AL6", METHOD_0ARGS
,
275 METHOD_RETURNS(ACPI_RTYPE_PACKAGE
)}}, /* Variable-length (Refs) */
276 PACKAGE_INFO(ACPI_PTYPE1_VAR
, ACPI_RTYPE_REFERENCE
, 0, 0, 0, 0),
278 {{"_AL7", METHOD_0ARGS
,
279 METHOD_RETURNS(ACPI_RTYPE_PACKAGE
)}}, /* Variable-length (Refs) */
280 PACKAGE_INFO(ACPI_PTYPE1_VAR
, ACPI_RTYPE_REFERENCE
, 0, 0, 0, 0),
282 {{"_AL8", METHOD_0ARGS
,
283 METHOD_RETURNS(ACPI_RTYPE_PACKAGE
)}}, /* Variable-length (Refs) */
284 PACKAGE_INFO(ACPI_PTYPE1_VAR
, ACPI_RTYPE_REFERENCE
, 0, 0, 0, 0),
286 {{"_AL9", METHOD_0ARGS
,
287 METHOD_RETURNS(ACPI_RTYPE_PACKAGE
)}}, /* Variable-length (Refs) */
288 PACKAGE_INFO(ACPI_PTYPE1_VAR
, ACPI_RTYPE_REFERENCE
, 0, 0, 0, 0),
290 {{"_ALC", METHOD_0ARGS
,
291 METHOD_RETURNS(ACPI_RTYPE_INTEGER
)}},
293 {{"_ALI", METHOD_0ARGS
,
294 METHOD_RETURNS(ACPI_RTYPE_INTEGER
)}},
296 {{"_ALP", METHOD_0ARGS
,
297 METHOD_RETURNS(ACPI_RTYPE_INTEGER
)}},
299 {{"_ALR", METHOD_0ARGS
,
300 METHOD_RETURNS(ACPI_RTYPE_PACKAGE
)}}, /* Variable-length (Pkgs) each 2 (Ints) */
301 PACKAGE_INFO(ACPI_PTYPE2
, ACPI_RTYPE_INTEGER
, 2, 0, 0, 0),
303 {{"_ALT", METHOD_0ARGS
,
304 METHOD_RETURNS(ACPI_RTYPE_INTEGER
)}},
306 {{"_ART", METHOD_0ARGS
,
307 METHOD_RETURNS(ACPI_RTYPE_PACKAGE
)}}, /* Variable-length (1 Int(rev), n Pkg (2 Ref/11 Int) */
308 PACKAGE_INFO(ACPI_PTYPE2_REV_FIXED
, ACPI_RTYPE_REFERENCE
, 2,
309 ACPI_RTYPE_INTEGER
, 11, 0),
311 {{"_BBN", METHOD_0ARGS
,
312 METHOD_RETURNS(ACPI_RTYPE_INTEGER
)}},
314 {{"_BCL", METHOD_0ARGS
,
315 METHOD_RETURNS(ACPI_RTYPE_PACKAGE
)}}, /* Variable-length (Ints) */
316 PACKAGE_INFO(ACPI_PTYPE1_VAR
, ACPI_RTYPE_INTEGER
, 0, 0, 0, 0),
318 {{"_BCM", METHOD_1ARGS(ACPI_TYPE_INTEGER
),
319 METHOD_NO_RETURN_VALUE
}},
321 {{"_BCT", METHOD_1ARGS(ACPI_TYPE_INTEGER
),
322 METHOD_RETURNS(ACPI_RTYPE_INTEGER
)}},
324 {{"_BDN", METHOD_0ARGS
,
325 METHOD_RETURNS(ACPI_RTYPE_INTEGER
)}},
327 {{"_BFS", METHOD_1ARGS(ACPI_TYPE_INTEGER
),
328 METHOD_NO_RETURN_VALUE
}},
330 {{"_BIF", METHOD_0ARGS
,
331 METHOD_RETURNS(ACPI_RTYPE_PACKAGE
)}}, /* Fixed-length (9 Int),(4 Str) */
332 PACKAGE_INFO(ACPI_PTYPE1_FIXED
, ACPI_RTYPE_INTEGER
, 9,
333 ACPI_RTYPE_STRING
, 4, 0),
335 {{"_BIX", METHOD_0ARGS
,
336 METHOD_RETURNS(ACPI_RTYPE_PACKAGE
)}}, /* Fixed-length (16 Int),(4 Str) */
337 PACKAGE_INFO(ACPI_PTYPE1_FIXED
, ACPI_RTYPE_INTEGER
, 16,
338 ACPI_RTYPE_STRING
, 4, 0),
341 METHOD_3ARGS(ACPI_TYPE_INTEGER
, ACPI_TYPE_INTEGER
, ACPI_TYPE_INTEGER
),
342 METHOD_NO_RETURN_VALUE
}},
344 {{"_BMA", METHOD_1ARGS(ACPI_TYPE_INTEGER
),
345 METHOD_RETURNS(ACPI_RTYPE_INTEGER
)}},
347 {{"_BMC", METHOD_1ARGS(ACPI_TYPE_INTEGER
),
348 METHOD_NO_RETURN_VALUE
}},
350 {{"_BMD", METHOD_0ARGS
,
351 METHOD_RETURNS(ACPI_RTYPE_PACKAGE
)}}, /* Fixed-length (5 Int) */
352 PACKAGE_INFO(ACPI_PTYPE1_FIXED
, ACPI_RTYPE_INTEGER
, 5, 0, 0, 0),
354 {{"_BMS", METHOD_1ARGS(ACPI_TYPE_INTEGER
),
355 METHOD_RETURNS(ACPI_RTYPE_INTEGER
)}},
357 {{"_BQC", METHOD_0ARGS
,
358 METHOD_RETURNS(ACPI_RTYPE_INTEGER
)}},
360 {{"_BST", METHOD_0ARGS
,
361 METHOD_RETURNS(ACPI_RTYPE_PACKAGE
)}}, /* Fixed-length (4 Int) */
362 PACKAGE_INFO(ACPI_PTYPE1_FIXED
, ACPI_RTYPE_INTEGER
, 4, 0, 0, 0),
364 {{"_BTM", METHOD_1ARGS(ACPI_TYPE_INTEGER
),
365 METHOD_RETURNS(ACPI_RTYPE_INTEGER
)}},
367 {{"_BTP", METHOD_1ARGS(ACPI_TYPE_INTEGER
),
368 METHOD_NO_RETURN_VALUE
}},
370 {{"_CBA", METHOD_0ARGS
,
371 METHOD_RETURNS(ACPI_RTYPE_INTEGER
)}}, /* See PCI firmware spec 3.0 */
373 {{"_CCA", METHOD_0ARGS
,
374 METHOD_RETURNS(ACPI_RTYPE_INTEGER
)}}, /* ACPI 5.1 */
376 {{"_CDM", METHOD_0ARGS
,
377 METHOD_RETURNS(ACPI_RTYPE_INTEGER
)}},
379 {{"_CID", METHOD_0ARGS
,
380 METHOD_RETURNS(ACPI_RTYPE_INTEGER
| ACPI_RTYPE_STRING
| ACPI_RTYPE_PACKAGE
)}}, /* Variable-length (Ints/Strs) */
381 PACKAGE_INFO(ACPI_PTYPE1_VAR
, ACPI_RTYPE_INTEGER
| ACPI_RTYPE_STRING
, 0,
384 {{"_CLS", METHOD_0ARGS
,
385 METHOD_RETURNS(ACPI_RTYPE_PACKAGE
)}}, /* Fixed-length (3 Int) */
386 PACKAGE_INFO(ACPI_PTYPE1_FIXED
, ACPI_RTYPE_INTEGER
, 3, 0, 0, 0),
388 {{"_CPC", METHOD_0ARGS
,
389 METHOD_RETURNS(ACPI_RTYPE_PACKAGE
)}}, /* Variable-length (Ints/Bufs) */
390 PACKAGE_INFO(ACPI_PTYPE1_VAR
, ACPI_RTYPE_INTEGER
| ACPI_RTYPE_BUFFER
, 0,
393 {{"_CRS", METHOD_0ARGS
,
394 METHOD_RETURNS(ACPI_RTYPE_BUFFER
)}},
396 {{"_CRT", METHOD_0ARGS
,
397 METHOD_RETURNS(ACPI_RTYPE_INTEGER
)}},
399 {{"_CSD", METHOD_0ARGS
,
400 METHOD_RETURNS(ACPI_RTYPE_PACKAGE
)}}, /* Variable-length (1 Int(n), n-1 Int) */
401 PACKAGE_INFO(ACPI_PTYPE2_COUNT
, ACPI_RTYPE_INTEGER
, 0, 0, 0, 0),
403 {{"_CST", METHOD_0ARGS
,
404 METHOD_RETURNS(ACPI_RTYPE_PACKAGE
)}}, /* Variable-length (1 Int(n), n Pkg (1 Buf/3 Int) */
405 PACKAGE_INFO(ACPI_PTYPE2_PKG_COUNT
, ACPI_RTYPE_BUFFER
, 1,
406 ACPI_RTYPE_INTEGER
, 3, 0),
408 {{"_CWS", METHOD_1ARGS(ACPI_TYPE_INTEGER
),
409 METHOD_RETURNS(ACPI_RTYPE_INTEGER
)}},
411 {{"_DCK", METHOD_1ARGS(ACPI_TYPE_INTEGER
),
412 METHOD_RETURNS(ACPI_RTYPE_INTEGER
)}},
414 {{"_DCS", METHOD_0ARGS
,
415 METHOD_RETURNS(ACPI_RTYPE_INTEGER
)}},
417 {{"_DDC", METHOD_1ARGS(ACPI_TYPE_INTEGER
),
418 METHOD_RETURNS(ACPI_RTYPE_INTEGER
| ACPI_RTYPE_BUFFER
)}},
420 {{"_DDN", METHOD_0ARGS
,
421 METHOD_RETURNS(ACPI_RTYPE_STRING
)}},
423 {{"_DEP", METHOD_0ARGS
,
424 METHOD_RETURNS(ACPI_RTYPE_PACKAGE
)}}, /* Variable-length (Refs) */
425 PACKAGE_INFO(ACPI_PTYPE1_VAR
, ACPI_RTYPE_REFERENCE
, 0, 0, 0, 0),
427 {{"_DGS", METHOD_0ARGS
,
428 METHOD_RETURNS(ACPI_RTYPE_INTEGER
)}},
430 {{"_DIS", METHOD_0ARGS
,
431 METHOD_NO_RETURN_VALUE
}},
433 {{"_DLM", METHOD_0ARGS
,
434 METHOD_RETURNS(ACPI_RTYPE_PACKAGE
)}}, /* Variable-length (Pkgs) each (1 Ref, 0/1 Optional Buf/Ref) */
435 PACKAGE_INFO(ACPI_PTYPE2_FIX_VAR
, ACPI_RTYPE_REFERENCE
, 1,
436 ACPI_RTYPE_REFERENCE
| ACPI_RTYPE_BUFFER
, 0, 0),
438 {{"_DMA", METHOD_0ARGS
,
439 METHOD_RETURNS(ACPI_RTYPE_BUFFER
)}},
441 {{"_DOD", METHOD_0ARGS
,
442 METHOD_RETURNS(ACPI_RTYPE_PACKAGE
)}}, /* Variable-length (Ints) */
443 PACKAGE_INFO(ACPI_PTYPE1_VAR
, ACPI_RTYPE_INTEGER
, 0, 0, 0, 0),
445 {{"_DOS", METHOD_1ARGS(ACPI_TYPE_INTEGER
),
446 METHOD_NO_RETURN_VALUE
}},
448 {{"_DSD", METHOD_0ARGS
,
449 METHOD_RETURNS(ACPI_RTYPE_PACKAGE
)}}, /* Variable-length (Pkgs) each: 1 Buf, 1 Pkg */
450 PACKAGE_INFO(ACPI_PTYPE2_UUID_PAIR
, ACPI_RTYPE_BUFFER
, 1,
451 ACPI_RTYPE_PACKAGE
, 1, 0),
454 METHOD_4ARGS(ACPI_TYPE_BUFFER
, ACPI_TYPE_INTEGER
, ACPI_TYPE_INTEGER
,
456 METHOD_RETURNS(ACPI_RTYPE_ALL
)}}, /* Must return a value, but it can be of any type */
458 {{"_DSS", METHOD_1ARGS(ACPI_TYPE_INTEGER
),
459 METHOD_NO_RETURN_VALUE
}},
462 METHOD_3ARGS(ACPI_TYPE_INTEGER
, ACPI_TYPE_INTEGER
, ACPI_TYPE_INTEGER
),
463 METHOD_NO_RETURN_VALUE
}},
465 {{"_DTI", METHOD_1ARGS(ACPI_TYPE_INTEGER
),
466 METHOD_NO_RETURN_VALUE
}},
468 {{"_EC_", METHOD_0ARGS
,
469 METHOD_RETURNS(ACPI_RTYPE_INTEGER
)}},
471 {{"_EDL", METHOD_0ARGS
,
472 METHOD_RETURNS(ACPI_RTYPE_PACKAGE
)}}, /* Variable-length (Refs) */
473 PACKAGE_INFO(ACPI_PTYPE1_VAR
, ACPI_RTYPE_REFERENCE
, 0, 0, 0, 0),
475 {{"_EJ0", METHOD_1ARGS(ACPI_TYPE_INTEGER
),
476 METHOD_NO_RETURN_VALUE
}},
478 {{"_EJ1", METHOD_1ARGS(ACPI_TYPE_INTEGER
),
479 METHOD_NO_RETURN_VALUE
}},
481 {{"_EJ2", METHOD_1ARGS(ACPI_TYPE_INTEGER
),
482 METHOD_NO_RETURN_VALUE
}},
484 {{"_EJ3", METHOD_1ARGS(ACPI_TYPE_INTEGER
),
485 METHOD_NO_RETURN_VALUE
}},
487 {{"_EJ4", METHOD_1ARGS(ACPI_TYPE_INTEGER
),
488 METHOD_NO_RETURN_VALUE
}},
490 {{"_EJD", METHOD_0ARGS
,
491 METHOD_RETURNS(ACPI_RTYPE_STRING
)}},
494 METHOD_3ARGS(ACPI_TYPE_INTEGER
, ACPI_TYPE_STRING
, ACPI_TYPE_INTEGER
),
495 METHOD_RETURNS(ACPI_RTYPE_INTEGER
)}}, /* Internal use only, used by ACPICA test suites */
497 {{"_EVT", METHOD_1ARGS(ACPI_TYPE_INTEGER
),
498 METHOD_NO_RETURN_VALUE
}},
500 {{"_FDE", METHOD_0ARGS
,
501 METHOD_RETURNS(ACPI_RTYPE_BUFFER
)}},
503 {{"_FDI", METHOD_0ARGS
,
504 METHOD_RETURNS(ACPI_RTYPE_PACKAGE
)}}, /* Fixed-length (16 Int) */
505 PACKAGE_INFO(ACPI_PTYPE1_FIXED
, ACPI_RTYPE_INTEGER
, 16, 0, 0, 0),
507 {{"_FDM", METHOD_1ARGS(ACPI_TYPE_INTEGER
),
508 METHOD_NO_RETURN_VALUE
}},
510 {{"_FIF", METHOD_0ARGS
,
511 METHOD_RETURNS(ACPI_RTYPE_PACKAGE
)}}, /* Fixed-length (4 Int) */
512 PACKAGE_INFO(ACPI_PTYPE1_FIXED
, ACPI_RTYPE_INTEGER
, 4, 0, 0, 0),
514 {{"_FIX", METHOD_0ARGS
,
515 METHOD_RETURNS(ACPI_RTYPE_PACKAGE
)}}, /* Variable-length (Ints) */
516 PACKAGE_INFO(ACPI_PTYPE1_VAR
, ACPI_RTYPE_INTEGER
, 0, 0, 0, 0),
518 {{"_FPS", METHOD_0ARGS
,
519 METHOD_RETURNS(ACPI_RTYPE_PACKAGE
)}}, /* Variable-length (1 Int(rev), n Pkg (5 Int) */
520 PACKAGE_INFO(ACPI_PTYPE2_REV_FIXED
, ACPI_RTYPE_INTEGER
, 5, 0, 0, 0),
522 {{"_FSL", METHOD_1ARGS(ACPI_TYPE_INTEGER
),
523 METHOD_NO_RETURN_VALUE
}},
525 {{"_FST", METHOD_0ARGS
,
526 METHOD_RETURNS(ACPI_RTYPE_PACKAGE
)}}, /* Fixed-length (3 Int) */
527 PACKAGE_INFO(ACPI_PTYPE1_FIXED
, ACPI_RTYPE_INTEGER
, 3, 0, 0, 0),
529 {{"_GAI", METHOD_0ARGS
,
530 METHOD_RETURNS(ACPI_RTYPE_INTEGER
)}},
532 {{"_GCP", METHOD_0ARGS
,
533 METHOD_RETURNS(ACPI_RTYPE_INTEGER
)}},
535 {{"_GHL", METHOD_0ARGS
,
536 METHOD_RETURNS(ACPI_RTYPE_INTEGER
)}},
538 {{"_GLK", METHOD_0ARGS
,
539 METHOD_RETURNS(ACPI_RTYPE_INTEGER
)}},
541 {{"_GPD", METHOD_0ARGS
,
542 METHOD_RETURNS(ACPI_RTYPE_INTEGER
)}},
544 {{"_GPE", METHOD_0ARGS
,
545 METHOD_RETURNS(ACPI_RTYPE_INTEGER
)}}, /* _GPE method, not _GPE scope */
547 {{"_GRT", METHOD_0ARGS
,
548 METHOD_RETURNS(ACPI_RTYPE_BUFFER
)}},
550 {{"_GSB", METHOD_0ARGS
,
551 METHOD_RETURNS(ACPI_RTYPE_INTEGER
)}},
553 {{"_GTF", METHOD_0ARGS
,
554 METHOD_RETURNS(ACPI_RTYPE_BUFFER
)}},
556 {{"_GTM", METHOD_0ARGS
,
557 METHOD_RETURNS(ACPI_RTYPE_BUFFER
)}},
559 {{"_GTS", METHOD_1ARGS(ACPI_TYPE_INTEGER
),
560 METHOD_NO_RETURN_VALUE
}},
562 {{"_GWS", METHOD_1ARGS(ACPI_TYPE_INTEGER
),
563 METHOD_RETURNS(ACPI_RTYPE_INTEGER
)}},
565 {{"_HID", METHOD_0ARGS
,
566 METHOD_RETURNS(ACPI_RTYPE_INTEGER
| ACPI_RTYPE_STRING
)}},
568 {{"_HOT", METHOD_0ARGS
,
569 METHOD_RETURNS(ACPI_RTYPE_INTEGER
)}},
571 {{"_HPP", METHOD_0ARGS
,
572 METHOD_RETURNS(ACPI_RTYPE_PACKAGE
)}}, /* Fixed-length (4 Int) */
573 PACKAGE_INFO(ACPI_PTYPE1_FIXED
, ACPI_RTYPE_INTEGER
, 4, 0, 0, 0),
576 * For _HPX, a single package is returned, containing a variable-length number
577 * of subpackages. Each subpackage contains a PCI record setting.
578 * There are several different type of record settings, of different
579 * lengths, but all elements of all settings are Integers.
581 {{"_HPX", METHOD_0ARGS
,
582 METHOD_RETURNS(ACPI_RTYPE_PACKAGE
)}}, /* Variable-length (Pkgs) each (var Ints) */
583 PACKAGE_INFO(ACPI_PTYPE2_MIN
, ACPI_RTYPE_INTEGER
, 5, 0, 0, 0),
585 {{"_HRV", METHOD_0ARGS
,
586 METHOD_RETURNS(ACPI_RTYPE_INTEGER
)}},
588 {{"_IFT", METHOD_0ARGS
,
589 METHOD_RETURNS(ACPI_RTYPE_INTEGER
)}}, /* See IPMI spec */
591 {{"_INI", METHOD_0ARGS
,
592 METHOD_NO_RETURN_VALUE
}},
594 {{"_IRC", METHOD_0ARGS
,
595 METHOD_NO_RETURN_VALUE
}},
597 {{"_LCK", METHOD_1ARGS(ACPI_TYPE_INTEGER
),
598 METHOD_NO_RETURN_VALUE
}},
600 {{"_LID", METHOD_0ARGS
,
601 METHOD_RETURNS(ACPI_RTYPE_INTEGER
)}},
603 {{"_LPD", METHOD_0ARGS
,
604 METHOD_RETURNS(ACPI_RTYPE_PACKAGE
)}}, /* Variable-length (1 Int(rev), n Pkg (2 Int) */
605 PACKAGE_INFO(ACPI_PTYPE2_REV_FIXED
, ACPI_RTYPE_INTEGER
, 2, 0, 0, 0),
607 {{"_MAT", METHOD_0ARGS
,
608 METHOD_RETURNS(ACPI_RTYPE_BUFFER
)}},
610 {{"_MBM", METHOD_0ARGS
,
611 METHOD_RETURNS(ACPI_RTYPE_PACKAGE
)}}, /* Fixed-length (8 Int) */
612 PACKAGE_INFO(ACPI_PTYPE1_FIXED
, ACPI_RTYPE_INTEGER
, 8, 0, 0, 0),
614 {{"_MLS", METHOD_0ARGS
,
615 METHOD_RETURNS(ACPI_RTYPE_PACKAGE
)}}, /* Variable-length (Pkgs) each (1 Str/1 Buf) */
616 PACKAGE_INFO(ACPI_PTYPE2
, ACPI_RTYPE_STRING
, 1, ACPI_RTYPE_BUFFER
, 1,
619 {{"_MSG", METHOD_1ARGS(ACPI_TYPE_INTEGER
),
620 METHOD_NO_RETURN_VALUE
}},
623 METHOD_4ARGS(ACPI_TYPE_INTEGER
, ACPI_TYPE_INTEGER
, ACPI_TYPE_INTEGER
,
625 METHOD_RETURNS(ACPI_RTYPE_INTEGER
)}},
627 {{"_NTT", METHOD_0ARGS
,
628 METHOD_RETURNS(ACPI_RTYPE_INTEGER
)}},
630 {{"_OFF", METHOD_0ARGS
,
631 METHOD_NO_RETURN_VALUE
}},
633 {{"_ON_", METHOD_0ARGS
,
634 METHOD_NO_RETURN_VALUE
}},
636 {{"_OS_", METHOD_0ARGS
,
637 METHOD_RETURNS(ACPI_RTYPE_STRING
)}},
640 METHOD_4ARGS(ACPI_TYPE_BUFFER
, ACPI_TYPE_INTEGER
, ACPI_TYPE_INTEGER
,
642 METHOD_RETURNS(ACPI_RTYPE_BUFFER
)}},
645 METHOD_3ARGS(ACPI_TYPE_INTEGER
, ACPI_TYPE_INTEGER
, ACPI_TYPE_BUFFER
),
646 METHOD_NO_RETURN_VALUE
}},
648 {{"_PAI", METHOD_1ARGS(ACPI_TYPE_INTEGER
),
649 METHOD_RETURNS(ACPI_RTYPE_INTEGER
)}},
651 {{"_PCL", METHOD_0ARGS
,
652 METHOD_RETURNS(ACPI_RTYPE_PACKAGE
)}}, /* Variable-length (Refs) */
653 PACKAGE_INFO(ACPI_PTYPE1_VAR
, ACPI_RTYPE_REFERENCE
, 0, 0, 0, 0),
655 {{"_PCT", METHOD_0ARGS
,
656 METHOD_RETURNS(ACPI_RTYPE_PACKAGE
)}}, /* Fixed-length (2 Buf) */
657 PACKAGE_INFO(ACPI_PTYPE1_FIXED
, ACPI_RTYPE_BUFFER
, 2, 0, 0, 0),
659 {{"_PDC", METHOD_1ARGS(ACPI_TYPE_BUFFER
),
660 METHOD_NO_RETURN_VALUE
}},
662 {{"_PDL", METHOD_0ARGS
,
663 METHOD_RETURNS(ACPI_RTYPE_INTEGER
)}},
665 {{"_PIC", METHOD_1ARGS(ACPI_TYPE_INTEGER
),
666 METHOD_NO_RETURN_VALUE
}},
668 {{"_PIF", METHOD_0ARGS
,
669 METHOD_RETURNS(ACPI_RTYPE_PACKAGE
)}}, /* Fixed-length (3 Int),(3 Str) */
670 PACKAGE_INFO(ACPI_PTYPE1_FIXED
, ACPI_RTYPE_INTEGER
, 3,
671 ACPI_RTYPE_STRING
, 3, 0),
673 {{"_PLD", METHOD_0ARGS
,
674 METHOD_RETURNS(ACPI_RTYPE_PACKAGE
)}}, /* Variable-length (Bufs) */
675 PACKAGE_INFO(ACPI_PTYPE1_VAR
, ACPI_RTYPE_BUFFER
, 0, 0, 0, 0),
677 {{"_PMC", METHOD_0ARGS
,
678 METHOD_RETURNS(ACPI_RTYPE_PACKAGE
)}}, /* Fixed-length (11 Int),(3 Str) */
679 PACKAGE_INFO(ACPI_PTYPE1_FIXED
, ACPI_RTYPE_INTEGER
, 11,
680 ACPI_RTYPE_STRING
, 3, 0),
682 {{"_PMD", METHOD_0ARGS
,
683 METHOD_RETURNS(ACPI_RTYPE_PACKAGE
)}}, /* Variable-length (Refs) */
684 PACKAGE_INFO(ACPI_PTYPE1_VAR
, ACPI_RTYPE_REFERENCE
, 0, 0, 0, 0),
686 {{"_PMM", METHOD_0ARGS
,
687 METHOD_RETURNS(ACPI_RTYPE_INTEGER
)}},
689 {{"_PPC", METHOD_0ARGS
,
690 METHOD_RETURNS(ACPI_RTYPE_INTEGER
)}},
692 {{"_PPE", METHOD_0ARGS
,
693 METHOD_RETURNS(ACPI_RTYPE_INTEGER
)}}, /* See dig64 spec */
695 {{"_PR0", METHOD_0ARGS
,
696 METHOD_RETURNS(ACPI_RTYPE_PACKAGE
)}}, /* Variable-length (Refs) */
697 PACKAGE_INFO(ACPI_PTYPE1_VAR
, ACPI_RTYPE_REFERENCE
, 0, 0, 0, 0),
699 {{"_PR1", METHOD_0ARGS
,
700 METHOD_RETURNS(ACPI_RTYPE_PACKAGE
)}}, /* Variable-length (Refs) */
701 PACKAGE_INFO(ACPI_PTYPE1_VAR
, ACPI_RTYPE_REFERENCE
, 0, 0, 0, 0),
703 {{"_PR2", METHOD_0ARGS
,
704 METHOD_RETURNS(ACPI_RTYPE_PACKAGE
)}}, /* Variable-length (Refs) */
705 PACKAGE_INFO(ACPI_PTYPE1_VAR
, ACPI_RTYPE_REFERENCE
, 0, 0, 0, 0),
707 {{"_PR3", METHOD_0ARGS
,
708 METHOD_RETURNS(ACPI_RTYPE_PACKAGE
)}}, /* Variable-length (Refs) */
709 PACKAGE_INFO(ACPI_PTYPE1_VAR
, ACPI_RTYPE_REFERENCE
, 0, 0, 0, 0),
711 {{"_PRE", METHOD_0ARGS
,
712 METHOD_RETURNS(ACPI_RTYPE_PACKAGE
)}}, /* Variable-length (Refs) */
713 PACKAGE_INFO(ACPI_PTYPE1_VAR
, ACPI_RTYPE_REFERENCE
, 0, 0, 0, 0),
715 {{"_PRL", METHOD_0ARGS
,
716 METHOD_RETURNS(ACPI_RTYPE_PACKAGE
)}}, /* Variable-length (Refs) */
717 PACKAGE_INFO(ACPI_PTYPE1_VAR
, ACPI_RTYPE_REFERENCE
, 0, 0, 0, 0),
719 {{"_PRS", METHOD_0ARGS
,
720 METHOD_RETURNS(ACPI_RTYPE_BUFFER
)}},
723 * For _PRT, many BIOSs reverse the 3rd and 4th Package elements (Source
724 * and source_index). This bug is so prevalent that there is code in the
725 * ACPICA Resource Manager to detect this and switch them back. For now,
726 * do not allow and issue a warning. To allow this and eliminate the
727 * warning, add the ACPI_RTYPE_REFERENCE type to the 4th element (index 3)
728 * in the statement below.
730 {{"_PRT", METHOD_0ARGS
,
731 METHOD_RETURNS(ACPI_RTYPE_PACKAGE
)}}, /* Variable-length (Pkgs) each (4): Int,Int,Int/Ref,Int */
732 PACKAGE_INFO(ACPI_PTYPE2_FIXED
, 4, ACPI_RTYPE_INTEGER
,
734 ACPI_RTYPE_INTEGER
| ACPI_RTYPE_REFERENCE
,
737 {{"_PRW", METHOD_0ARGS
,
738 METHOD_RETURNS(ACPI_RTYPE_PACKAGE
)}}, /* Variable-length (Pkgs) each: Pkg/Int,Int,[Variable-length Refs] (Pkg is Ref/Int) */
739 PACKAGE_INFO(ACPI_PTYPE1_OPTION
, 2,
740 ACPI_RTYPE_INTEGER
| ACPI_RTYPE_PACKAGE
,
741 ACPI_RTYPE_INTEGER
, ACPI_RTYPE_REFERENCE
, 0),
743 {{"_PS0", METHOD_0ARGS
,
744 METHOD_NO_RETURN_VALUE
}},
746 {{"_PS1", METHOD_0ARGS
,
747 METHOD_NO_RETURN_VALUE
}},
749 {{"_PS2", METHOD_0ARGS
,
750 METHOD_NO_RETURN_VALUE
}},
752 {{"_PS3", METHOD_0ARGS
,
753 METHOD_NO_RETURN_VALUE
}},
755 {{"_PSC", METHOD_0ARGS
,
756 METHOD_RETURNS(ACPI_RTYPE_INTEGER
)}},
758 {{"_PSD", METHOD_0ARGS
,
759 METHOD_RETURNS(ACPI_RTYPE_PACKAGE
)}}, /* Variable-length (Pkgs) each (5 Int) with count */
760 PACKAGE_INFO(ACPI_PTYPE2_COUNT
, ACPI_RTYPE_INTEGER
, 0, 0, 0, 0),
762 {{"_PSE", METHOD_1ARGS(ACPI_TYPE_INTEGER
),
763 METHOD_NO_RETURN_VALUE
}},
765 {{"_PSL", METHOD_0ARGS
,
766 METHOD_RETURNS(ACPI_RTYPE_PACKAGE
)}}, /* Variable-length (Refs) */
767 PACKAGE_INFO(ACPI_PTYPE1_VAR
, ACPI_RTYPE_REFERENCE
, 0, 0, 0, 0),
769 {{"_PSR", METHOD_0ARGS
,
770 METHOD_RETURNS(ACPI_RTYPE_INTEGER
)}},
772 {{"_PSS", METHOD_0ARGS
,
773 METHOD_RETURNS(ACPI_RTYPE_PACKAGE
)}}, /* Variable-length (Pkgs) each (6 Int) */
774 PACKAGE_INFO(ACPI_PTYPE2
, ACPI_RTYPE_INTEGER
, 6, 0, 0, 0),
776 {{"_PSV", METHOD_0ARGS
,
777 METHOD_RETURNS(ACPI_RTYPE_INTEGER
)}},
779 {{"_PSW", METHOD_1ARGS(ACPI_TYPE_INTEGER
),
780 METHOD_NO_RETURN_VALUE
}},
782 {{"_PTC", METHOD_0ARGS
,
783 METHOD_RETURNS(ACPI_RTYPE_PACKAGE
)}}, /* Fixed-length (2 Buf) */
784 PACKAGE_INFO(ACPI_PTYPE1_FIXED
, ACPI_RTYPE_BUFFER
, 2, 0, 0, 0),
786 {{"_PTP", METHOD_2ARGS(ACPI_TYPE_INTEGER
, ACPI_TYPE_INTEGER
),
787 METHOD_RETURNS(ACPI_RTYPE_INTEGER
)}},
789 {{"_PTS", METHOD_1ARGS(ACPI_TYPE_INTEGER
),
790 METHOD_NO_RETURN_VALUE
}},
792 {{"_PUR", METHOD_0ARGS
,
793 METHOD_RETURNS(ACPI_RTYPE_PACKAGE
)}}, /* Fixed-length (2 Int) */
794 PACKAGE_INFO(ACPI_PTYPE1_FIXED
, ACPI_RTYPE_INTEGER
, 2, 0, 0, 0),
796 {{"_PXM", METHOD_0ARGS
,
797 METHOD_RETURNS(ACPI_RTYPE_INTEGER
)}},
799 {{"_REG", METHOD_2ARGS(ACPI_TYPE_INTEGER
, ACPI_TYPE_INTEGER
),
800 METHOD_NO_RETURN_VALUE
}},
802 {{"_REV", METHOD_0ARGS
,
803 METHOD_RETURNS(ACPI_RTYPE_INTEGER
)}},
805 {{"_RMV", METHOD_0ARGS
,
806 METHOD_RETURNS(ACPI_RTYPE_INTEGER
)}},
808 {{"_ROM", METHOD_2ARGS(ACPI_TYPE_INTEGER
, ACPI_TYPE_INTEGER
),
809 METHOD_RETURNS(ACPI_RTYPE_BUFFER
)}},
811 {{"_RTV", METHOD_0ARGS
,
812 METHOD_RETURNS(ACPI_RTYPE_INTEGER
)}},
815 * For _S0_ through _S5_, the ACPI spec defines a return Package
816 * containing 1 Integer, but most DSDTs have it wrong - 2,3, or 4 integers.
817 * Allow this by making the objects "Variable-length length", but all elements
820 {{"_S0_", METHOD_0ARGS
,
821 METHOD_RETURNS(ACPI_RTYPE_PACKAGE
)}}, /* Fixed-length (1 Int) */
822 PACKAGE_INFO(ACPI_PTYPE1_VAR
, ACPI_RTYPE_INTEGER
, 1, 0, 0, 0),
824 {{"_S1_", METHOD_0ARGS
,
825 METHOD_RETURNS(ACPI_RTYPE_PACKAGE
)}}, /* Fixed-length (1 Int) */
826 PACKAGE_INFO(ACPI_PTYPE1_VAR
, ACPI_RTYPE_INTEGER
, 1, 0, 0, 0),
828 {{"_S2_", METHOD_0ARGS
,
829 METHOD_RETURNS(ACPI_RTYPE_PACKAGE
)}}, /* Fixed-length (1 Int) */
830 PACKAGE_INFO(ACPI_PTYPE1_VAR
, ACPI_RTYPE_INTEGER
, 1, 0, 0, 0),
832 {{"_S3_", METHOD_0ARGS
,
833 METHOD_RETURNS(ACPI_RTYPE_PACKAGE
)}}, /* Fixed-length (1 Int) */
834 PACKAGE_INFO(ACPI_PTYPE1_VAR
, ACPI_RTYPE_INTEGER
, 1, 0, 0, 0),
836 {{"_S4_", METHOD_0ARGS
,
837 METHOD_RETURNS(ACPI_RTYPE_PACKAGE
)}}, /* Fixed-length (1 Int) */
838 PACKAGE_INFO(ACPI_PTYPE1_VAR
, ACPI_RTYPE_INTEGER
, 1, 0, 0, 0),
840 {{"_S5_", METHOD_0ARGS
,
841 METHOD_RETURNS(ACPI_RTYPE_PACKAGE
)}}, /* Fixed-length (1 Int) */
842 PACKAGE_INFO(ACPI_PTYPE1_VAR
, ACPI_RTYPE_INTEGER
, 1, 0, 0, 0),
844 {{"_S1D", METHOD_0ARGS
,
845 METHOD_RETURNS(ACPI_RTYPE_INTEGER
)}},
847 {{"_S2D", METHOD_0ARGS
,
848 METHOD_RETURNS(ACPI_RTYPE_INTEGER
)}},
850 {{"_S3D", METHOD_0ARGS
,
851 METHOD_RETURNS(ACPI_RTYPE_INTEGER
)}},
853 {{"_S4D", METHOD_0ARGS
,
854 METHOD_RETURNS(ACPI_RTYPE_INTEGER
)}},
856 {{"_S0W", METHOD_0ARGS
,
857 METHOD_RETURNS(ACPI_RTYPE_INTEGER
)}},
859 {{"_S1W", METHOD_0ARGS
,
860 METHOD_RETURNS(ACPI_RTYPE_INTEGER
)}},
862 {{"_S2W", METHOD_0ARGS
,
863 METHOD_RETURNS(ACPI_RTYPE_INTEGER
)}},
865 {{"_S3W", METHOD_0ARGS
,
866 METHOD_RETURNS(ACPI_RTYPE_INTEGER
)}},
868 {{"_S4W", METHOD_0ARGS
,
869 METHOD_RETURNS(ACPI_RTYPE_INTEGER
)}},
871 {{"_SBS", METHOD_0ARGS
,
872 METHOD_RETURNS(ACPI_RTYPE_INTEGER
)}},
874 {{"_SCP", METHOD_1ARGS(ACPI_TYPE_INTEGER
) | ARG_COUNT_IS_MINIMUM
,
875 METHOD_NO_RETURN_VALUE
}}, /* Acpi 1.0 allowed 1 integer arg. Acpi 3.0 expanded to 3 args. Allow both. */
877 {{"_SDD", METHOD_1ARGS(ACPI_TYPE_BUFFER
),
878 METHOD_NO_RETURN_VALUE
}},
880 {{"_SEG", METHOD_0ARGS
,
881 METHOD_RETURNS(ACPI_RTYPE_INTEGER
)}},
883 {{"_SHL", METHOD_1ARGS(ACPI_TYPE_INTEGER
),
884 METHOD_RETURNS(ACPI_RTYPE_INTEGER
)}},
886 {{"_SLI", METHOD_0ARGS
,
887 METHOD_RETURNS(ACPI_RTYPE_BUFFER
)}},
889 {{"_SPD", METHOD_1ARGS(ACPI_TYPE_INTEGER
),
890 METHOD_RETURNS(ACPI_RTYPE_INTEGER
)}},
892 {{"_SRS", METHOD_1ARGS(ACPI_TYPE_BUFFER
),
893 METHOD_NO_RETURN_VALUE
}},
895 {{"_SRT", METHOD_1ARGS(ACPI_TYPE_BUFFER
),
896 METHOD_RETURNS(ACPI_RTYPE_INTEGER
)}},
898 {{"_SRV", METHOD_0ARGS
,
899 METHOD_RETURNS(ACPI_RTYPE_INTEGER
)}}, /* See IPMI spec */
901 {{"_SST", METHOD_1ARGS(ACPI_TYPE_INTEGER
),
902 METHOD_NO_RETURN_VALUE
}},
904 {{"_STA", METHOD_0ARGS
,
905 METHOD_RETURNS(ACPI_RTYPE_INTEGER
)}},
908 METHOD_3ARGS(ACPI_TYPE_BUFFER
, ACPI_TYPE_BUFFER
, ACPI_TYPE_BUFFER
),
909 METHOD_NO_RETURN_VALUE
}},
911 {{"_STP", METHOD_2ARGS(ACPI_TYPE_INTEGER
, ACPI_TYPE_INTEGER
),
912 METHOD_RETURNS(ACPI_RTYPE_INTEGER
)}},
914 {{"_STR", METHOD_0ARGS
,
915 METHOD_RETURNS(ACPI_RTYPE_BUFFER
)}},
917 {{"_STV", METHOD_2ARGS(ACPI_TYPE_INTEGER
, ACPI_TYPE_INTEGER
),
918 METHOD_RETURNS(ACPI_RTYPE_INTEGER
)}},
920 {{"_SUB", METHOD_0ARGS
,
921 METHOD_RETURNS(ACPI_RTYPE_STRING
)}},
923 {{"_SUN", METHOD_0ARGS
,
924 METHOD_RETURNS(ACPI_RTYPE_INTEGER
)}},
926 {{"_SWS", METHOD_0ARGS
,
927 METHOD_RETURNS(ACPI_RTYPE_INTEGER
)}},
929 {{"_TC1", METHOD_0ARGS
,
930 METHOD_RETURNS(ACPI_RTYPE_INTEGER
)}},
932 {{"_TC2", METHOD_0ARGS
,
933 METHOD_RETURNS(ACPI_RTYPE_INTEGER
)}},
935 {{"_TDL", METHOD_0ARGS
,
936 METHOD_RETURNS(ACPI_RTYPE_INTEGER
)}},
938 {{"_TIP", METHOD_1ARGS(ACPI_TYPE_INTEGER
),
939 METHOD_RETURNS(ACPI_RTYPE_INTEGER
)}},
941 {{"_TIV", METHOD_1ARGS(ACPI_TYPE_INTEGER
),
942 METHOD_RETURNS(ACPI_RTYPE_INTEGER
)}},
944 {{"_TMP", METHOD_0ARGS
,
945 METHOD_RETURNS(ACPI_RTYPE_INTEGER
)}},
947 {{"_TPC", METHOD_0ARGS
,
948 METHOD_RETURNS(ACPI_RTYPE_INTEGER
)}},
950 {{"_TPT", METHOD_1ARGS(ACPI_TYPE_INTEGER
),
951 METHOD_NO_RETURN_VALUE
}},
953 {{"_TRT", METHOD_0ARGS
,
954 METHOD_RETURNS(ACPI_RTYPE_PACKAGE
)}}, /* Variable-length (Pkgs) each 2 Ref/6 Int */
955 PACKAGE_INFO(ACPI_PTYPE2
, ACPI_RTYPE_REFERENCE
, 2, ACPI_RTYPE_INTEGER
,
958 {{"_TSD", METHOD_0ARGS
,
959 METHOD_RETURNS(ACPI_RTYPE_PACKAGE
)}}, /* Variable-length (Pkgs) each 5 Int with count */
960 PACKAGE_INFO(ACPI_PTYPE2_COUNT
, ACPI_RTYPE_INTEGER
, 5, 0, 0, 0),
962 {{"_TSP", METHOD_0ARGS
,
963 METHOD_RETURNS(ACPI_RTYPE_INTEGER
)}},
965 {{"_TSS", METHOD_0ARGS
,
966 METHOD_RETURNS(ACPI_RTYPE_PACKAGE
)}}, /* Variable-length (Pkgs) each 5 Int */
967 PACKAGE_INFO(ACPI_PTYPE2
, ACPI_RTYPE_INTEGER
, 5, 0, 0, 0),
969 {{"_TST", METHOD_0ARGS
,
970 METHOD_RETURNS(ACPI_RTYPE_INTEGER
)}},
972 {{"_TTS", METHOD_1ARGS(ACPI_TYPE_INTEGER
),
973 METHOD_NO_RETURN_VALUE
}},
975 {{"_TZD", METHOD_0ARGS
,
976 METHOD_RETURNS(ACPI_RTYPE_PACKAGE
)}}, /* Variable-length (Refs) */
977 PACKAGE_INFO(ACPI_PTYPE1_VAR
, ACPI_RTYPE_REFERENCE
, 0, 0, 0, 0),
979 {{"_TZM", METHOD_0ARGS
,
980 METHOD_RETURNS(ACPI_RTYPE_REFERENCE
)}},
982 {{"_TZP", METHOD_0ARGS
,
983 METHOD_RETURNS(ACPI_RTYPE_INTEGER
)}},
985 {{"_UID", METHOD_0ARGS
,
986 METHOD_RETURNS(ACPI_RTYPE_INTEGER
| ACPI_RTYPE_STRING
)}},
988 {{"_UPC", METHOD_0ARGS
,
989 METHOD_RETURNS(ACPI_RTYPE_PACKAGE
)}}, /* Fixed-length (4 Int) */
990 PACKAGE_INFO(ACPI_PTYPE1_FIXED
, ACPI_RTYPE_INTEGER
, 4, 0, 0, 0),
992 {{"_UPD", METHOD_0ARGS
,
993 METHOD_RETURNS(ACPI_RTYPE_INTEGER
)}},
995 {{"_UPP", METHOD_0ARGS
,
996 METHOD_RETURNS(ACPI_RTYPE_INTEGER
)}},
998 {{"_VPO", METHOD_0ARGS
,
999 METHOD_RETURNS(ACPI_RTYPE_INTEGER
)}},
1001 /* Acpi 1.0 defined _WAK with no return value. Later, it was changed to return a package */
1003 {{"_WAK", METHOD_1ARGS(ACPI_TYPE_INTEGER
),
1004 METHOD_RETURNS(ACPI_RTYPE_NONE
| ACPI_RTYPE_INTEGER
|
1005 ACPI_RTYPE_PACKAGE
)}},
1006 PACKAGE_INFO(ACPI_PTYPE1_FIXED
, ACPI_RTYPE_INTEGER
, 2, 0, 0, 0), /* Fixed-length (2 Int), but is optional */
1008 /* _WDG/_WED are MS extensions defined by "Windows Instrumentation" */
1010 {{"_WDG", METHOD_0ARGS
,
1011 METHOD_RETURNS(ACPI_RTYPE_BUFFER
)}},
1013 {{"_WED", METHOD_1ARGS(ACPI_TYPE_INTEGER
),
1014 METHOD_RETURNS(ACPI_RTYPE_INTEGER
| ACPI_RTYPE_STRING
|
1015 ACPI_RTYPE_BUFFER
)}},
1017 PACKAGE_INFO(0, 0, 0, 0, 0, 0) /* Table terminator */
1020 extern const union acpi_predefined_info acpi_gbl_predefined_methods
[];
1023 #if (defined ACPI_CREATE_RESOURCE_TABLE && defined ACPI_APPLICATION)
1024 /******************************************************************************
1026 * Predefined names for use in Resource Descriptors. These names do not
1027 * appear in the global Predefined Name table (since these names never
1028 * appear in actual AML byte code, only in the original ASL)
1030 * Note: Used by iASL compiler and acpi_help utility only.
1032 *****************************************************************************/
1034 const union acpi_predefined_info acpi_gbl_resource_names
[] = {
1035 {{"_ADR", WIDTH_16
| WIDTH_64
, 0}},
1036 {{"_ALN", WIDTH_8
| WIDTH_16
| WIDTH_32
, 0}},
1037 {{"_ASI", WIDTH_8
, 0}},
1038 {{"_ASZ", WIDTH_8
, 0}},
1039 {{"_ATT", WIDTH_64
, 0}},
1040 {{"_BAS", WIDTH_16
| WIDTH_32
, 0}},
1041 {{"_BM_", WIDTH_1
, 0}},
1042 {{"_DBT", WIDTH_16
, 0}}, /* Acpi 5.0 */
1043 {{"_DEC", WIDTH_1
, 0}},
1044 {{"_DMA", WIDTH_8
, 0}},
1045 {{"_DPL", WIDTH_1
, 0}}, /* Acpi 5.0 */
1046 {{"_DRS", WIDTH_16
, 0}}, /* Acpi 5.0 */
1047 {{"_END", WIDTH_1
, 0}}, /* Acpi 5.0 */
1048 {{"_FLC", WIDTH_2
, 0}}, /* Acpi 5.0 */
1049 {{"_GRA", WIDTH_ADDRESS
, 0}},
1050 {{"_HE_", WIDTH_1
, 0}},
1051 {{"_INT", WIDTH_16
| WIDTH_32
, 0}},
1052 {{"_IOR", WIDTH_2
, 0}}, /* Acpi 5.0 */
1053 {{"_LEN", WIDTH_8
| WIDTH_ADDRESS
, 0}},
1054 {{"_LIN", WIDTH_8
, 0}}, /* Acpi 5.0 */
1055 {{"_LL_", WIDTH_1
, 0}},
1056 {{"_MAF", WIDTH_1
, 0}},
1057 {{"_MAX", WIDTH_ADDRESS
, 0}},
1058 {{"_MEM", WIDTH_2
, 0}},
1059 {{"_MIF", WIDTH_1
, 0}},
1060 {{"_MIN", WIDTH_ADDRESS
, 0}},
1061 {{"_MOD", WIDTH_1
, 0}}, /* Acpi 5.0 */
1062 {{"_MTP", WIDTH_2
, 0}},
1063 {{"_PAR", WIDTH_8
, 0}}, /* Acpi 5.0 */
1064 {{"_PHA", WIDTH_1
, 0}}, /* Acpi 5.0 */
1065 {{"_PIN", WIDTH_16
, 0}}, /* Acpi 5.0 */
1066 {{"_PPI", WIDTH_8
, 0}}, /* Acpi 5.0 */
1067 {{"_POL", WIDTH_1
| WIDTH_2
, 0}}, /* Acpi 5.0 */
1068 {{"_RBO", WIDTH_8
, 0}},
1069 {{"_RBW", WIDTH_8
, 0}},
1070 {{"_RNG", WIDTH_1
, 0}},
1071 {{"_RT_", WIDTH_8
, 0}}, /* Acpi 3.0 */
1072 {{"_RW_", WIDTH_1
, 0}},
1073 {{"_RXL", WIDTH_16
, 0}}, /* Acpi 5.0 */
1074 {{"_SHR", WIDTH_2
, 0}},
1075 {{"_SIZ", WIDTH_2
, 0}},
1076 {{"_SLV", WIDTH_1
, 0}}, /* Acpi 5.0 */
1077 {{"_SPE", WIDTH_32
, 0}}, /* Acpi 5.0 */
1078 {{"_STB", WIDTH_2
, 0}}, /* Acpi 5.0 */
1079 {{"_TRA", WIDTH_ADDRESS
, 0}},
1080 {{"_TRS", WIDTH_1
, 0}},
1081 {{"_TSF", WIDTH_8
, 0}}, /* Acpi 3.0 */
1082 {{"_TTP", WIDTH_1
, 0}},
1083 {{"_TXL", WIDTH_16
, 0}}, /* Acpi 5.0 */
1084 {{"_TYP", WIDTH_2
| WIDTH_16
, 0}},
1085 {{"_VEN", VARIABLE_DATA
, 0}}, /* Acpi 5.0 */
1086 PACKAGE_INFO(0, 0, 0, 0, 0, 0) /* Table terminator */
1089 static const union acpi_predefined_info acpi_gbl_scope_names
[] = {
1095 PACKAGE_INFO(0, 0, 0, 0, 0, 0) /* Table terminator */
1098 extern const union acpi_predefined_info acpi_gbl_resource_names
[];