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