1 /******************************************************************************
3 * Name: acpredef - Information table for ACPI predefined methods and objects
5 *****************************************************************************/
8 * Copyright (C) 2000 - 2013, 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 sub-packages.
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 sub-packages. Each
67 * of the different types describe the contents of each of the sub-packages.
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 *****************************************************************************/
110 enum acpi_return_package_types
{
111 ACPI_PTYPE1_FIXED
= 1,
113 ACPI_PTYPE1_OPTION
= 3,
115 ACPI_PTYPE2_COUNT
= 5,
116 ACPI_PTYPE2_PKG_COUNT
= 6,
117 ACPI_PTYPE2_FIXED
= 7,
119 ACPI_PTYPE2_REV_FIXED
= 9,
120 ACPI_PTYPE2_FIX_VAR
= 10
123 /* Support macros for users of the predefined info table */
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
131 #define METHOD_GET_ARG_COUNT(arg_list) ((arg_list) & METHOD_ARG_MASK)
132 #define METHOD_GET_NEXT_TYPE(arg_list) (((arg_list) >>= METHOD_ARG_BIT_WIDTH) & METHOD_ARG_MASK)
134 /* Macros used to build the predefined info table */
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))
142 #define METHOD_RETURNS(type) (type)
143 #define METHOD_NO_RETURN_VALUE 0
145 #define PACKAGE_INFO(a,b,c,d,e,f) {{{(a),(b),(c),(d)}, ((((u16)(f)) << 8) | (e)), 0}}
147 /* Support macros for the resource descriptor info table */
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
159 #define WIDTH_ADDRESS WIDTH_16 | WIDTH_32 | WIDTH_64
161 #ifdef ACPI_CREATE_PREDEFINED_TABLE
162 /******************************************************************************
164 * Predefined method/object information table.
166 * These are the names that can actually be evaluated via acpi_evaluate_object.
167 * Not present in this table are the following:
169 * 1) Predefined/Reserved names that are never evaluated via
170 * acpi_evaluate_object:
171 * _Lxx and _Exx GPE methods
173 * _T_x compiler temporary variables
176 * 2) Predefined names that never actually exist within the AML code:
177 * Predefined resource descriptor field names
179 * 3) Predefined names that are implemented within ACPICA:
182 * The main entries in the table each contain the following items:
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.
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.
197 * Note: The additional braces are intended to promote portability.
199 * Note2: Table is used by the kernel-resident subsystem, the iASL compiler,
200 * and the acpi_help utility.
202 * TBD: _PRT - currently ignore reversed entries. Attempt to fix in nsrepair.
203 * Possibly fixing package elements like _BIF, etc.
205 *****************************************************************************/
207 const union acpi_predefined_info acpi_gbl_predefined_methods
[] = {
208 {{"_AC0", METHOD_0ARGS
,
209 METHOD_RETURNS(ACPI_RTYPE_INTEGER
)}},
211 {{"_AC1", METHOD_0ARGS
,
212 METHOD_RETURNS(ACPI_RTYPE_INTEGER
)}},
214 {{"_AC2", METHOD_0ARGS
,
215 METHOD_RETURNS(ACPI_RTYPE_INTEGER
)}},
217 {{"_AC3", METHOD_0ARGS
,
218 METHOD_RETURNS(ACPI_RTYPE_INTEGER
)}},
220 {{"_AC4", METHOD_0ARGS
,
221 METHOD_RETURNS(ACPI_RTYPE_INTEGER
)}},
223 {{"_AC5", METHOD_0ARGS
,
224 METHOD_RETURNS(ACPI_RTYPE_INTEGER
)}},
226 {{"_AC6", METHOD_0ARGS
,
227 METHOD_RETURNS(ACPI_RTYPE_INTEGER
)}},
229 {{"_AC7", METHOD_0ARGS
,
230 METHOD_RETURNS(ACPI_RTYPE_INTEGER
)}},
232 {{"_AC8", METHOD_0ARGS
,
233 METHOD_RETURNS(ACPI_RTYPE_INTEGER
)}},
235 {{"_AC9", METHOD_0ARGS
,
236 METHOD_RETURNS(ACPI_RTYPE_INTEGER
)}},
238 {{"_ADR", METHOD_0ARGS
,
239 METHOD_RETURNS(ACPI_RTYPE_INTEGER
)}},
241 {{"_AEI", METHOD_0ARGS
,
242 METHOD_RETURNS(ACPI_RTYPE_BUFFER
)}},
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),
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),
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),
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),
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),
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),
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),
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),
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),
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),
284 {{"_ALC", METHOD_0ARGS
,
285 METHOD_RETURNS(ACPI_RTYPE_INTEGER
)}},
287 {{"_ALI", METHOD_0ARGS
,
288 METHOD_RETURNS(ACPI_RTYPE_INTEGER
)}},
290 {{"_ALP", METHOD_0ARGS
,
291 METHOD_RETURNS(ACPI_RTYPE_INTEGER
)}},
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),
297 {{"_ALT", METHOD_0ARGS
,
298 METHOD_RETURNS(ACPI_RTYPE_INTEGER
)}},
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),
305 {{"_BBN", METHOD_0ARGS
,
306 METHOD_RETURNS(ACPI_RTYPE_INTEGER
)}},
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),
312 {{"_BCM", METHOD_1ARGS(ACPI_TYPE_INTEGER
),
313 METHOD_NO_RETURN_VALUE
}},
315 {{"_BCT", METHOD_1ARGS(ACPI_TYPE_INTEGER
),
316 METHOD_RETURNS(ACPI_RTYPE_INTEGER
)}},
318 {{"_BDN", METHOD_0ARGS
,
319 METHOD_RETURNS(ACPI_RTYPE_INTEGER
)}},
321 {{"_BFS", METHOD_1ARGS(ACPI_TYPE_INTEGER
),
322 METHOD_NO_RETURN_VALUE
}},
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),
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),
335 METHOD_3ARGS(ACPI_TYPE_INTEGER
, ACPI_TYPE_INTEGER
, ACPI_TYPE_INTEGER
),
336 METHOD_NO_RETURN_VALUE
}},
338 {{"_BMA", METHOD_1ARGS(ACPI_TYPE_INTEGER
),
339 METHOD_RETURNS(ACPI_RTYPE_INTEGER
)}},
341 {{"_BMC", METHOD_1ARGS(ACPI_TYPE_INTEGER
),
342 METHOD_NO_RETURN_VALUE
}},
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),
348 {{"_BMS", METHOD_1ARGS(ACPI_TYPE_INTEGER
),
349 METHOD_RETURNS(ACPI_RTYPE_INTEGER
)}},
351 {{"_BQC", METHOD_0ARGS
,
352 METHOD_RETURNS(ACPI_RTYPE_INTEGER
)}},
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),
358 {{"_BTM", METHOD_1ARGS(ACPI_TYPE_INTEGER
),
359 METHOD_RETURNS(ACPI_RTYPE_INTEGER
)}},
361 {{"_BTP", METHOD_1ARGS(ACPI_TYPE_INTEGER
),
362 METHOD_NO_RETURN_VALUE
}},
364 {{"_CBA", METHOD_0ARGS
,
365 METHOD_RETURNS(ACPI_RTYPE_INTEGER
)}}, /* See PCI firmware spec 3.0 */
367 {{"_CDM", METHOD_0ARGS
,
368 METHOD_RETURNS(ACPI_RTYPE_INTEGER
)}},
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,
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),
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,
384 {{"_CRS", METHOD_0ARGS
,
385 METHOD_RETURNS(ACPI_RTYPE_BUFFER
)}},
387 {{"_CRT", METHOD_0ARGS
,
388 METHOD_RETURNS(ACPI_RTYPE_INTEGER
)}},
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),
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),
399 {{"_CWS", METHOD_1ARGS(ACPI_TYPE_INTEGER
),
400 METHOD_RETURNS(ACPI_RTYPE_INTEGER
)}},
402 {{"_DCK", METHOD_1ARGS(ACPI_TYPE_INTEGER
),
403 METHOD_RETURNS(ACPI_RTYPE_INTEGER
)}},
405 {{"_DCS", METHOD_0ARGS
,
406 METHOD_RETURNS(ACPI_RTYPE_INTEGER
)}},
408 {{"_DDC", METHOD_1ARGS(ACPI_TYPE_INTEGER
),
409 METHOD_RETURNS(ACPI_RTYPE_INTEGER
| ACPI_RTYPE_BUFFER
)}},
411 {{"_DDN", METHOD_0ARGS
,
412 METHOD_RETURNS(ACPI_RTYPE_STRING
)}},
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),
418 {{"_DGS", METHOD_0ARGS
,
419 METHOD_RETURNS(ACPI_RTYPE_INTEGER
)}},
421 {{"_DIS", METHOD_0ARGS
,
422 METHOD_NO_RETURN_VALUE
}},
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),
429 {{"_DMA", METHOD_0ARGS
,
430 METHOD_RETURNS(ACPI_RTYPE_BUFFER
)}},
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),
436 {{"_DOS", METHOD_1ARGS(ACPI_TYPE_INTEGER
),
437 METHOD_NO_RETURN_VALUE
}},
440 METHOD_4ARGS(ACPI_TYPE_BUFFER
, ACPI_TYPE_INTEGER
, ACPI_TYPE_INTEGER
,
442 METHOD_RETURNS(ACPI_RTYPE_ALL
)}}, /* Must return a value, but it can be of any type */
444 {{"_DSS", METHOD_1ARGS(ACPI_TYPE_INTEGER
),
445 METHOD_NO_RETURN_VALUE
}},
448 METHOD_3ARGS(ACPI_TYPE_INTEGER
, ACPI_TYPE_INTEGER
, ACPI_TYPE_INTEGER
),
449 METHOD_NO_RETURN_VALUE
}},
451 {{"_DTI", METHOD_1ARGS(ACPI_TYPE_INTEGER
),
452 METHOD_NO_RETURN_VALUE
}},
454 {{"_EC_", METHOD_0ARGS
,
455 METHOD_RETURNS(ACPI_RTYPE_INTEGER
)}},
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),
461 {{"_EJ0", METHOD_1ARGS(ACPI_TYPE_INTEGER
),
462 METHOD_NO_RETURN_VALUE
}},
464 {{"_EJ1", METHOD_1ARGS(ACPI_TYPE_INTEGER
),
465 METHOD_NO_RETURN_VALUE
}},
467 {{"_EJ2", METHOD_1ARGS(ACPI_TYPE_INTEGER
),
468 METHOD_NO_RETURN_VALUE
}},
470 {{"_EJ3", METHOD_1ARGS(ACPI_TYPE_INTEGER
),
471 METHOD_NO_RETURN_VALUE
}},
473 {{"_EJ4", METHOD_1ARGS(ACPI_TYPE_INTEGER
),
474 METHOD_NO_RETURN_VALUE
}},
476 {{"_EJD", METHOD_0ARGS
,
477 METHOD_RETURNS(ACPI_RTYPE_STRING
)}},
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 */
483 {{"_EVT", METHOD_1ARGS(ACPI_TYPE_INTEGER
),
484 METHOD_NO_RETURN_VALUE
}},
486 {{"_FDE", METHOD_0ARGS
,
487 METHOD_RETURNS(ACPI_RTYPE_BUFFER
)}},
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),
493 {{"_FDM", METHOD_1ARGS(ACPI_TYPE_INTEGER
),
494 METHOD_NO_RETURN_VALUE
}},
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),
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),
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),
508 {{"_FSL", METHOD_1ARGS(ACPI_TYPE_INTEGER
),
509 METHOD_NO_RETURN_VALUE
}},
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),
515 {{"_GAI", METHOD_0ARGS
,
516 METHOD_RETURNS(ACPI_RTYPE_INTEGER
)}},
518 {{"_GCP", METHOD_0ARGS
,
519 METHOD_RETURNS(ACPI_RTYPE_INTEGER
)}},
521 {{"_GHL", METHOD_0ARGS
,
522 METHOD_RETURNS(ACPI_RTYPE_INTEGER
)}},
524 {{"_GLK", METHOD_0ARGS
,
525 METHOD_RETURNS(ACPI_RTYPE_INTEGER
)}},
527 {{"_GPD", METHOD_0ARGS
,
528 METHOD_RETURNS(ACPI_RTYPE_INTEGER
)}},
530 {{"_GPE", METHOD_0ARGS
,
531 METHOD_RETURNS(ACPI_RTYPE_INTEGER
)}}, /* _GPE method, not _GPE scope */
533 {{"_GRT", METHOD_0ARGS
,
534 METHOD_RETURNS(ACPI_RTYPE_BUFFER
)}},
536 {{"_GSB", METHOD_0ARGS
,
537 METHOD_RETURNS(ACPI_RTYPE_INTEGER
)}},
539 {{"_GTF", METHOD_0ARGS
,
540 METHOD_RETURNS(ACPI_RTYPE_BUFFER
)}},
542 {{"_GTM", METHOD_0ARGS
,
543 METHOD_RETURNS(ACPI_RTYPE_BUFFER
)}},
545 {{"_GTS", METHOD_1ARGS(ACPI_TYPE_INTEGER
),
546 METHOD_NO_RETURN_VALUE
}},
548 {{"_GWS", METHOD_1ARGS(ACPI_TYPE_INTEGER
),
549 METHOD_RETURNS(ACPI_RTYPE_INTEGER
)}},
551 {{"_HID", METHOD_0ARGS
,
552 METHOD_RETURNS(ACPI_RTYPE_INTEGER
| ACPI_RTYPE_STRING
)}},
554 {{"_HOT", METHOD_0ARGS
,
555 METHOD_RETURNS(ACPI_RTYPE_INTEGER
)}},
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),
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.
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),
571 {{"_HRV", METHOD_0ARGS
,
572 METHOD_RETURNS(ACPI_RTYPE_INTEGER
)}},
574 {{"_IFT", METHOD_0ARGS
,
575 METHOD_RETURNS(ACPI_RTYPE_INTEGER
)}}, /* See IPMI spec */
577 {{"_INI", METHOD_0ARGS
,
578 METHOD_NO_RETURN_VALUE
}},
580 {{"_IRC", METHOD_0ARGS
,
581 METHOD_NO_RETURN_VALUE
}},
583 {{"_LCK", METHOD_1ARGS(ACPI_TYPE_INTEGER
),
584 METHOD_NO_RETURN_VALUE
}},
586 {{"_LID", METHOD_0ARGS
,
587 METHOD_RETURNS(ACPI_RTYPE_INTEGER
)}},
589 {{"_MAT", METHOD_0ARGS
,
590 METHOD_RETURNS(ACPI_RTYPE_BUFFER
)}},
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),
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,
601 {{"_MSG", METHOD_1ARGS(ACPI_TYPE_INTEGER
),
602 METHOD_NO_RETURN_VALUE
}},
605 METHOD_4ARGS(ACPI_TYPE_INTEGER
, ACPI_TYPE_INTEGER
, ACPI_TYPE_INTEGER
,
607 METHOD_RETURNS(ACPI_RTYPE_INTEGER
)}},
609 {{"_NTT", METHOD_0ARGS
,
610 METHOD_RETURNS(ACPI_RTYPE_INTEGER
)}},
612 {{"_OFF", METHOD_0ARGS
,
613 METHOD_NO_RETURN_VALUE
}},
615 {{"_ON_", METHOD_0ARGS
,
616 METHOD_NO_RETURN_VALUE
}},
618 {{"_OS_", METHOD_0ARGS
,
619 METHOD_RETURNS(ACPI_RTYPE_STRING
)}},
622 METHOD_4ARGS(ACPI_TYPE_BUFFER
, ACPI_TYPE_INTEGER
, ACPI_TYPE_INTEGER
,
624 METHOD_RETURNS(ACPI_RTYPE_BUFFER
)}},
627 METHOD_3ARGS(ACPI_TYPE_INTEGER
, ACPI_TYPE_INTEGER
, ACPI_TYPE_BUFFER
),
628 METHOD_NO_RETURN_VALUE
}},
630 {{"_PAI", METHOD_1ARGS(ACPI_TYPE_INTEGER
),
631 METHOD_RETURNS(ACPI_RTYPE_INTEGER
)}},
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),
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),
641 {{"_PDC", METHOD_1ARGS(ACPI_TYPE_BUFFER
),
642 METHOD_NO_RETURN_VALUE
}},
644 {{"_PDL", METHOD_0ARGS
,
645 METHOD_RETURNS(ACPI_RTYPE_INTEGER
)}},
647 {{"_PIC", METHOD_1ARGS(ACPI_TYPE_INTEGER
),
648 METHOD_NO_RETURN_VALUE
}},
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),
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),
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),
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),
668 {{"_PMM", METHOD_0ARGS
,
669 METHOD_RETURNS(ACPI_RTYPE_INTEGER
)}},
671 {{"_PPC", METHOD_0ARGS
,
672 METHOD_RETURNS(ACPI_RTYPE_INTEGER
)}},
674 {{"_PPE", METHOD_0ARGS
,
675 METHOD_RETURNS(ACPI_RTYPE_INTEGER
)}}, /* See dig64 spec */
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),
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),
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),
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),
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),
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),
701 {{"_PRS", METHOD_0ARGS
,
702 METHOD_RETURNS(ACPI_RTYPE_BUFFER
)}},
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.
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
,
716 ACPI_RTYPE_INTEGER
| ACPI_RTYPE_REFERENCE
,
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),
725 {{"_PS0", METHOD_0ARGS
,
726 METHOD_NO_RETURN_VALUE
}},
728 {{"_PS1", METHOD_0ARGS
,
729 METHOD_NO_RETURN_VALUE
}},
731 {{"_PS2", METHOD_0ARGS
,
732 METHOD_NO_RETURN_VALUE
}},
734 {{"_PS3", METHOD_0ARGS
,
735 METHOD_NO_RETURN_VALUE
}},
737 {{"_PSC", METHOD_0ARGS
,
738 METHOD_RETURNS(ACPI_RTYPE_INTEGER
)}},
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),
744 {{"_PSE", METHOD_1ARGS(ACPI_TYPE_INTEGER
),
745 METHOD_NO_RETURN_VALUE
}},
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),
751 {{"_PSR", METHOD_0ARGS
,
752 METHOD_RETURNS(ACPI_RTYPE_INTEGER
)}},
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),
758 {{"_PSV", METHOD_0ARGS
,
759 METHOD_RETURNS(ACPI_RTYPE_INTEGER
)}},
761 {{"_PSW", METHOD_1ARGS(ACPI_TYPE_INTEGER
),
762 METHOD_NO_RETURN_VALUE
}},
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),
768 {{"_PTP", METHOD_2ARGS(ACPI_TYPE_INTEGER
, ACPI_TYPE_INTEGER
),
769 METHOD_RETURNS(ACPI_RTYPE_INTEGER
)}},
771 {{"_PTS", METHOD_1ARGS(ACPI_TYPE_INTEGER
),
772 METHOD_NO_RETURN_VALUE
}},
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),
778 {{"_PXM", METHOD_0ARGS
,
779 METHOD_RETURNS(ACPI_RTYPE_INTEGER
)}},
781 {{"_REG", METHOD_2ARGS(ACPI_TYPE_INTEGER
, ACPI_TYPE_INTEGER
),
782 METHOD_NO_RETURN_VALUE
}},
784 {{"_REV", METHOD_0ARGS
,
785 METHOD_RETURNS(ACPI_RTYPE_INTEGER
)}},
787 {{"_RMV", METHOD_0ARGS
,
788 METHOD_RETURNS(ACPI_RTYPE_INTEGER
)}},
790 {{"_ROM", METHOD_2ARGS(ACPI_TYPE_INTEGER
, ACPI_TYPE_INTEGER
),
791 METHOD_RETURNS(ACPI_RTYPE_BUFFER
)}},
793 {{"_RTV", METHOD_0ARGS
,
794 METHOD_RETURNS(ACPI_RTYPE_INTEGER
)}},
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
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),
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),
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),
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),
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),
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),
826 {{"_S1D", METHOD_0ARGS
,
827 METHOD_RETURNS(ACPI_RTYPE_INTEGER
)}},
829 {{"_S2D", METHOD_0ARGS
,
830 METHOD_RETURNS(ACPI_RTYPE_INTEGER
)}},
832 {{"_S3D", METHOD_0ARGS
,
833 METHOD_RETURNS(ACPI_RTYPE_INTEGER
)}},
835 {{"_S4D", METHOD_0ARGS
,
836 METHOD_RETURNS(ACPI_RTYPE_INTEGER
)}},
838 {{"_S0W", METHOD_0ARGS
,
839 METHOD_RETURNS(ACPI_RTYPE_INTEGER
)}},
841 {{"_S1W", METHOD_0ARGS
,
842 METHOD_RETURNS(ACPI_RTYPE_INTEGER
)}},
844 {{"_S2W", METHOD_0ARGS
,
845 METHOD_RETURNS(ACPI_RTYPE_INTEGER
)}},
847 {{"_S3W", METHOD_0ARGS
,
848 METHOD_RETURNS(ACPI_RTYPE_INTEGER
)}},
850 {{"_S4W", METHOD_0ARGS
,
851 METHOD_RETURNS(ACPI_RTYPE_INTEGER
)}},
853 {{"_SBS", METHOD_0ARGS
,
854 METHOD_RETURNS(ACPI_RTYPE_INTEGER
)}},
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. */
859 {{"_SDD", METHOD_1ARGS(ACPI_TYPE_BUFFER
),
860 METHOD_NO_RETURN_VALUE
}},
862 {{"_SEG", METHOD_0ARGS
,
863 METHOD_RETURNS(ACPI_RTYPE_INTEGER
)}},
865 {{"_SHL", METHOD_1ARGS(ACPI_TYPE_INTEGER
),
866 METHOD_RETURNS(ACPI_RTYPE_INTEGER
)}},
868 {{"_SLI", METHOD_0ARGS
,
869 METHOD_RETURNS(ACPI_RTYPE_BUFFER
)}},
871 {{"_SPD", METHOD_1ARGS(ACPI_TYPE_INTEGER
),
872 METHOD_RETURNS(ACPI_RTYPE_INTEGER
)}},
874 {{"_SRS", METHOD_1ARGS(ACPI_TYPE_BUFFER
),
875 METHOD_NO_RETURN_VALUE
}},
877 {{"_SRT", METHOD_1ARGS(ACPI_TYPE_BUFFER
),
878 METHOD_RETURNS(ACPI_RTYPE_INTEGER
)}},
880 {{"_SRV", METHOD_0ARGS
,
881 METHOD_RETURNS(ACPI_RTYPE_INTEGER
)}}, /* See IPMI spec */
883 {{"_SST", METHOD_1ARGS(ACPI_TYPE_INTEGER
),
884 METHOD_NO_RETURN_VALUE
}},
886 {{"_STA", METHOD_0ARGS
,
887 METHOD_RETURNS(ACPI_RTYPE_INTEGER
)}},
890 METHOD_3ARGS(ACPI_TYPE_BUFFER
, ACPI_TYPE_BUFFER
, ACPI_TYPE_BUFFER
),
891 METHOD_NO_RETURN_VALUE
}},
893 {{"_STP", METHOD_2ARGS(ACPI_TYPE_INTEGER
, ACPI_TYPE_INTEGER
),
894 METHOD_RETURNS(ACPI_RTYPE_INTEGER
)}},
896 {{"_STR", METHOD_0ARGS
,
897 METHOD_RETURNS(ACPI_RTYPE_BUFFER
)}},
899 {{"_STV", METHOD_2ARGS(ACPI_TYPE_INTEGER
, ACPI_TYPE_INTEGER
),
900 METHOD_RETURNS(ACPI_RTYPE_INTEGER
)}},
902 {{"_SUB", METHOD_0ARGS
,
903 METHOD_RETURNS(ACPI_RTYPE_STRING
)}},
905 {{"_SUN", METHOD_0ARGS
,
906 METHOD_RETURNS(ACPI_RTYPE_INTEGER
)}},
908 {{"_SWS", METHOD_0ARGS
,
909 METHOD_RETURNS(ACPI_RTYPE_INTEGER
)}},
911 {{"_TC1", METHOD_0ARGS
,
912 METHOD_RETURNS(ACPI_RTYPE_INTEGER
)}},
914 {{"_TC2", METHOD_0ARGS
,
915 METHOD_RETURNS(ACPI_RTYPE_INTEGER
)}},
917 {{"_TDL", METHOD_0ARGS
,
918 METHOD_RETURNS(ACPI_RTYPE_INTEGER
)}},
920 {{"_TIP", METHOD_1ARGS(ACPI_TYPE_INTEGER
),
921 METHOD_RETURNS(ACPI_RTYPE_INTEGER
)}},
923 {{"_TIV", METHOD_1ARGS(ACPI_TYPE_INTEGER
),
924 METHOD_RETURNS(ACPI_RTYPE_INTEGER
)}},
926 {{"_TMP", METHOD_0ARGS
,
927 METHOD_RETURNS(ACPI_RTYPE_INTEGER
)}},
929 {{"_TPC", METHOD_0ARGS
,
930 METHOD_RETURNS(ACPI_RTYPE_INTEGER
)}},
932 {{"_TPT", METHOD_1ARGS(ACPI_TYPE_INTEGER
),
933 METHOD_NO_RETURN_VALUE
}},
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
,
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),
944 {{"_TSP", METHOD_0ARGS
,
945 METHOD_RETURNS(ACPI_RTYPE_INTEGER
)}},
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),
951 {{"_TST", METHOD_0ARGS
,
952 METHOD_RETURNS(ACPI_RTYPE_INTEGER
)}},
954 {{"_TTS", METHOD_1ARGS(ACPI_TYPE_INTEGER
),
955 METHOD_NO_RETURN_VALUE
}},
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),
961 {{"_TZM", METHOD_0ARGS
,
962 METHOD_RETURNS(ACPI_RTYPE_REFERENCE
)}},
964 {{"_TZP", METHOD_0ARGS
,
965 METHOD_RETURNS(ACPI_RTYPE_INTEGER
)}},
967 {{"_UID", METHOD_0ARGS
,
968 METHOD_RETURNS(ACPI_RTYPE_INTEGER
| ACPI_RTYPE_STRING
)}},
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),
974 {{"_UPD", METHOD_0ARGS
,
975 METHOD_RETURNS(ACPI_RTYPE_INTEGER
)}},
977 {{"_UPP", METHOD_0ARGS
,
978 METHOD_RETURNS(ACPI_RTYPE_INTEGER
)}},
980 {{"_VPO", METHOD_0ARGS
,
981 METHOD_RETURNS(ACPI_RTYPE_INTEGER
)}},
983 /* Acpi 1.0 defined _WAK with no return value. Later, it was changed to return a package */
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 */
990 /* _WDG/_WED are MS extensions defined by "Windows Instrumentation" */
992 {{"_WDG", METHOD_0ARGS
,
993 METHOD_RETURNS(ACPI_RTYPE_BUFFER
)}},
995 {{"_WED", METHOD_1ARGS(ACPI_TYPE_INTEGER
),
996 METHOD_RETURNS(ACPI_RTYPE_INTEGER
| ACPI_RTYPE_STRING
|
997 ACPI_RTYPE_BUFFER
)}},
999 PACKAGE_INFO(0, 0, 0, 0, 0, 0) /* Table terminator */
1002 extern const union acpi_predefined_info acpi_gbl_predefined_methods
[];
1005 #if (defined ACPI_CREATE_RESOURCE_TABLE && defined ACPI_APPLICATION)
1006 /******************************************************************************
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)
1012 * Note: Used by iASL compiler and acpi_help utility only.
1014 *****************************************************************************/
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 */
1071 static const union acpi_predefined_info acpi_gbl_scope_names
[] = {
1077 PACKAGE_INFO(0, 0, 0, 0, 0, 0) /* Table terminator */
1080 extern const union acpi_predefined_info acpi_gbl_resource_names
[];