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