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