xref: /freebsd/sys/contrib/dev/acpica/include/acpredef.h (revision 59c8e88e72633afbc47a4ace0d2170d00d51f7dc)
1 /******************************************************************************
2  *
3  * Name: acpredef - Information table for ACPI predefined methods and objects
4  *
5  *****************************************************************************/
6 
7 /******************************************************************************
8  *
9  * 1. Copyright Notice
10  *
11  * Some or all of this work - Copyright (c) 1999 - 2023, Intel Corp.
12  * All rights reserved.
13  *
14  * 2. License
15  *
16  * 2.1. This is your license from Intel Corp. under its intellectual property
17  * rights. You may have additional license terms from the party that provided
18  * you this software, covering your right to use that party's intellectual
19  * property rights.
20  *
21  * 2.2. Intel grants, free of charge, to any person ("Licensee") obtaining a
22  * copy of the source code appearing in this file ("Covered Code") an
23  * irrevocable, perpetual, worldwide license under Intel's copyrights in the
24  * base code distributed originally by Intel ("Original Intel Code") to copy,
25  * make derivatives, distribute, use and display any portion of the Covered
26  * Code in any form, with the right to sublicense such rights; and
27  *
28  * 2.3. Intel grants Licensee a non-exclusive and non-transferable patent
29  * license (with the right to sublicense), under only those claims of Intel
30  * patents that are infringed by the Original Intel Code, to make, use, sell,
31  * offer to sell, and import the Covered Code and derivative works thereof
32  * solely to the minimum extent necessary to exercise the above copyright
33  * license, and in no event shall the patent license extend to any additions
34  * to or modifications of the Original Intel Code. No other license or right
35  * is granted directly or by implication, estoppel or otherwise;
36  *
37  * The above copyright and patent license is granted only if the following
38  * conditions are met:
39  *
40  * 3. Conditions
41  *
42  * 3.1. Redistribution of Source with Rights to Further Distribute Source.
43  * Redistribution of source code of any substantial portion of the Covered
44  * Code or modification with rights to further distribute source must include
45  * the above Copyright Notice, the above License, this list of Conditions,
46  * and the following Disclaimer and Export Compliance provision. In addition,
47  * Licensee must cause all Covered Code to which Licensee contributes to
48  * contain a file documenting the changes Licensee made to create that Covered
49  * Code and the date of any change. Licensee must include in that file the
50  * documentation of any changes made by any predecessor Licensee. Licensee
51  * must include a prominent statement that the modification is derived,
52  * directly or indirectly, from Original Intel Code.
53  *
54  * 3.2. Redistribution of Source with no Rights to Further Distribute Source.
55  * Redistribution of source code of any substantial portion of the Covered
56  * Code or modification without rights to further distribute source must
57  * include the following Disclaimer and Export Compliance provision in the
58  * documentation and/or other materials provided with distribution. In
59  * addition, Licensee may not authorize further sublicense of source of any
60  * portion of the Covered Code, and must include terms to the effect that the
61  * license from Licensee to its licensee is limited to the intellectual
62  * property embodied in the software Licensee provides to its licensee, and
63  * not to intellectual property embodied in modifications its licensee may
64  * make.
65  *
66  * 3.3. Redistribution of Executable. Redistribution in executable form of any
67  * substantial portion of the Covered Code or modification must reproduce the
68  * above Copyright Notice, and the following Disclaimer and Export Compliance
69  * provision in the documentation and/or other materials provided with the
70  * distribution.
71  *
72  * 3.4. Intel retains all right, title, and interest in and to the Original
73  * Intel Code.
74  *
75  * 3.5. Neither the name Intel nor any other trademark owned or controlled by
76  * Intel shall be used in advertising or otherwise to promote the sale, use or
77  * other dealings in products derived from or relating to the Covered Code
78  * without prior written authorization from Intel.
79  *
80  * 4. Disclaimer and Export Compliance
81  *
82  * 4.1. INTEL MAKES NO WARRANTY OF ANY KIND REGARDING ANY SOFTWARE PROVIDED
83  * HERE. ANY SOFTWARE ORIGINATING FROM INTEL OR DERIVED FROM INTEL SOFTWARE
84  * IS PROVIDED "AS IS," AND INTEL WILL NOT PROVIDE ANY SUPPORT, ASSISTANCE,
85  * INSTALLATION, TRAINING OR OTHER SERVICES. INTEL WILL NOT PROVIDE ANY
86  * UPDATES, ENHANCEMENTS OR EXTENSIONS. INTEL SPECIFICALLY DISCLAIMS ANY
87  * IMPLIED WARRANTIES OF MERCHANTABILITY, NONINFRINGEMENT AND FITNESS FOR A
88  * PARTICULAR PURPOSE.
89  *
90  * 4.2. IN NO EVENT SHALL INTEL HAVE ANY LIABILITY TO LICENSEE, ITS LICENSEES
91  * OR ANY OTHER THIRD PARTY, FOR ANY LOST PROFITS, LOST DATA, LOSS OF USE OR
92  * COSTS OF PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES, OR FOR ANY INDIRECT,
93  * SPECIAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THIS AGREEMENT, UNDER ANY
94  * CAUSE OF ACTION OR THEORY OF LIABILITY, AND IRRESPECTIVE OF WHETHER INTEL
95  * HAS ADVANCE NOTICE OF THE POSSIBILITY OF SUCH DAMAGES. THESE LIMITATIONS
96  * SHALL APPLY NOTWITHSTANDING THE FAILURE OF THE ESSENTIAL PURPOSE OF ANY
97  * LIMITED REMEDY.
98  *
99  * 4.3. Licensee shall not export, either directly or indirectly, any of this
100  * software or system incorporating such software without first obtaining any
101  * required license or other approval from the U. S. Department of Commerce or
102  * any other agency or department of the United States Government. In the
103  * event Licensee exports any such software from the United States or
104  * re-exports any such software from a foreign destination, Licensee shall
105  * ensure that the distribution and export/re-export of the software is in
106  * compliance with all laws, regulations, orders, or other restrictions of the
107  * U.S. Export Administration Regulations. Licensee agrees that neither it nor
108  * any of its subsidiaries will export/re-export any technical data, process,
109  * software, or service, directly or indirectly, to any country for which the
110  * United States government or any agency thereof requires an export license,
111  * other governmental approval, or letter of assurance, without first obtaining
112  * such license, approval or letter.
113  *
114  *****************************************************************************
115  *
116  * Alternatively, you may choose to be licensed under the terms of the
117  * following license:
118  *
119  * Redistribution and use in source and binary forms, with or without
120  * modification, are permitted provided that the following conditions
121  * are met:
122  * 1. Redistributions of source code must retain the above copyright
123  *    notice, this list of conditions, and the following disclaimer,
124  *    without modification.
125  * 2. Redistributions in binary form must reproduce at minimum a disclaimer
126  *    substantially similar to the "NO WARRANTY" disclaimer below
127  *    ("Disclaimer") and any redistribution must be conditioned upon
128  *    including a substantially similar Disclaimer requirement for further
129  *    binary redistribution.
130  * 3. Neither the names of the above-listed copyright holders nor the names
131  *    of any contributors may be used to endorse or promote products derived
132  *    from this software without specific prior written permission.
133  *
134  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
135  * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
136  * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
137  * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
138  * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
139  * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
140  * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
141  * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
142  * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
143  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
144  * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
145  *
146  * Alternatively, you may choose to be licensed under the terms of the
147  * GNU General Public License ("GPL") version 2 as published by the Free
148  * Software Foundation.
149  *
150  *****************************************************************************/
151 
152 #ifndef __ACPREDEF_H__
153 #define __ACPREDEF_H__
154 
155 
156 /******************************************************************************
157  *
158  * Return Package types
159  *
160  * 1) PTYPE1 packages do not contain subpackages.
161  *
162  * ACPI_PTYPE1_FIXED: Fixed-length length, 1 or 2 object types:
163  *      object type
164  *      count
165  *      object type
166  *      count
167  *
168  * ACPI_PTYPE1_VAR: Variable-length length. Zero-length package is allowed:
169  *      object type (Int/Buf/Ref)
170  *
171  * ACPI_PTYPE1_OPTION: Package has some required and some optional elements
172  *      (Used for _PRW)
173  *
174  *
175  * 2) PTYPE2 packages contain a Variable-length number of subpackages. Each
176  *    of the different types describe the contents of each of the subpackages.
177  *
178  * ACPI_PTYPE2: Each subpackage contains 1 or 2 object types. Zero-length
179  *      parent package is allowed:
180  *      object type
181  *      count
182  *      object type
183  *      count
184  *      (Used for _ALR,_MLS,_PSS,_TRT,_TSS)
185  *
186  * ACPI_PTYPE2_COUNT: Each subpackage has a count as first element.
187  *      Zero-length parent package is allowed:
188  *      object type
189  *      (Used for _CSD,_PSD,_TSD)
190  *
191  * ACPI_PTYPE2_PKG_COUNT: Count of subpackages at start, 1 or 2 object types:
192  *      object type
193  *      count
194  *      object type
195  *      count
196  *      (Used for _CST)
197  *
198  * ACPI_PTYPE2_FIXED: Each subpackage is of Fixed-length. Zero-length
199  *      parent package is allowed.
200  *      (Used for _PRT)
201  *
202  * ACPI_PTYPE2_MIN: Each subpackage has a Variable-length but minimum length.
203  *      Zero-length parent package is allowed:
204  *      (Used for _HPX)
205  *
206  * ACPI_PTYPE2_REV_FIXED: Revision at start, each subpackage is Fixed-length
207  *      (Used for _ART, _FPS)
208  *
209  * ACPI_PTYPE2_FIX_VAR: Each subpackage consists of some fixed-length elements
210  *      followed by an optional element. Zero-length parent package is allowed.
211  *      object type
212  *      count
213  *      object type
214  *      count = 0 (optional)
215  *      (Used for _DLM)
216  *
217  * ACPI_PTYPE2_VAR_VAR: Variable number of subpackages, each of either a
218  *      constant or variable length. The subpackages are preceded by a
219  *      constant number of objects.
220  *      (Used for _LPI, _RDI)
221  *
222  * ACPI_PTYPE2_UUID_PAIR: Each subpackage is preceded by a UUID Buffer. The UUID
223  *      defines the format of the package. Zero-length parent package is
224  *      allowed.
225  *      (Used for _DSD)
226  *
227  *****************************************************************************/
228 
229 enum AcpiReturnPackageTypes
230 {
231     ACPI_PTYPE1_FIXED       = 1,
232     ACPI_PTYPE1_VAR         = 2,
233     ACPI_PTYPE1_OPTION      = 3,
234     ACPI_PTYPE2             = 4,
235     ACPI_PTYPE2_COUNT       = 5,
236     ACPI_PTYPE2_PKG_COUNT   = 6,
237     ACPI_PTYPE2_FIXED       = 7,
238     ACPI_PTYPE2_MIN         = 8,
239     ACPI_PTYPE2_REV_FIXED   = 9,
240     ACPI_PTYPE2_FIX_VAR     = 10,
241     ACPI_PTYPE2_VAR_VAR     = 11,
242     ACPI_PTYPE2_UUID_PAIR   = 12,
243     ACPI_PTYPE_CUSTOM       = 13
244 };
245 
246 
247 /* Support macros for users of the predefined info table */
248 
249 #define METHOD_PREDEF_ARGS_MAX          5
250 #define METHOD_ARG_BIT_WIDTH            3
251 #define METHOD_ARG_MASK                 0x0007
252 #define ARG_COUNT_IS_MINIMUM            0x8000
253 #define METHOD_MAX_ARG_TYPE             ACPI_TYPE_PACKAGE
254 
255 #define METHOD_GET_ARG_COUNT(ArgList)   ((ArgList) & METHOD_ARG_MASK)
256 #define METHOD_GET_NEXT_TYPE(ArgList)   (((ArgList) >>= METHOD_ARG_BIT_WIDTH) & METHOD_ARG_MASK)
257 
258 /* Macros used to build the predefined info table */
259 
260 #define METHOD_0ARGS                    0
261 #define METHOD_1ARGS(a1)                (1 | (a1 << 3))
262 #define METHOD_2ARGS(a1,a2)             (2 | (a1 << 3) | (a2 << 6))
263 #define METHOD_3ARGS(a1,a2,a3)          (3 | (a1 << 3) | (a2 << 6) | (a3 << 9))
264 #define METHOD_4ARGS(a1,a2,a3,a4)       (4 | (a1 << 3) | (a2 << 6) | (a3 << 9) | (a4 << 12))
265 #define METHOD_5ARGS(a1,a2,a3,a4,a5)    (5 | (a1 << 3) | (a2 << 6) | (a3 << 9) | (a4 << 12) | (a5 << 15))
266 
267 #define METHOD_RETURNS(type)            (type)
268 #define METHOD_NO_RETURN_VALUE          0
269 
270 #define PACKAGE_INFO(a,b,c,d,e,f)       {{{(a),(b),(c),(d)}, ((((UINT16)(f)) << 8) | (e)), 0}}
271 
272 
273 /* Support macros for the resource descriptor info table */
274 
275 #define WIDTH_1                         0x0001
276 #define WIDTH_2                         0x0002
277 #define WIDTH_3                         0x0004
278 #define WIDTH_8                         0x0008
279 #define WIDTH_16                        0x0010
280 #define WIDTH_32                        0x0020
281 #define WIDTH_64                        0x0040
282 #define VARIABLE_DATA                   0x0080
283 #define NUM_RESOURCE_WIDTHS             8
284 
285 #define WIDTH_ADDRESS                   WIDTH_16 | WIDTH_32 | WIDTH_64
286 
287 
288 #ifdef ACPI_CREATE_PREDEFINED_TABLE
289 /******************************************************************************
290  *
291  * Predefined method/object information table.
292  *
293  * These are the names that can actually be evaluated via AcpiEvaluateObject.
294  * Not present in this table are the following:
295  *
296  *      1) Predefined/Reserved names that are not usually evaluated via
297  *         AcpiEvaluateObject:
298  *              _Lxx and _Exx GPE methods
299  *              _Qxx EC methods
300  *              _T_x compiler temporary variables
301  *              _Wxx wake events
302  *
303  *      2) Predefined names that never actually exist within the AML code:
304  *              Predefined resource descriptor field names
305  *
306  *      3) Predefined names that are implemented within ACPICA:
307  *              _OSI
308  *
309  * The main entries in the table each contain the following items:
310  *
311  * Name                 - The ACPI reserved name
312  * ArgumentList         - Contains (in 16 bits), the number of required
313  *                        arguments to the method (3 bits), and a 3-bit type
314  *                        field for each argument (up to 4 arguments). The
315  *                        METHOD_?ARGS macros generate the correct packed data.
316  * ExpectedBtypes       - Allowed type(s) for the return value.
317  *                        0 means that no return value is expected.
318  *
319  * For methods that return packages, the next entry in the table contains
320  * information about the expected structure of the package. This information
321  * is saved here (rather than in a separate table) in order to minimize the
322  * overall size of the stored data.
323  *
324  * Note: The additional braces are intended to promote portability.
325  *
326  * Note2: Table is used by the kernel-resident subsystem, the iASL compiler,
327  * and the AcpiHelp utility.
328  *
329  * TBD: _PRT - currently ignore reversed entries. Attempt to fix in nsrepair.
330  * Possibly fixing package elements like _BIF, etc.
331  *
332  *****************************************************************************/
333 
334 const ACPI_PREDEFINED_INFO          AcpiGbl_PredefinedMethods[] =
335 {
336     {{"_AC0",   METHOD_0ARGS,
337                 METHOD_RETURNS (ACPI_RTYPE_INTEGER)}},
338 
339     {{"_AC1",   METHOD_0ARGS,
340                 METHOD_RETURNS (ACPI_RTYPE_INTEGER)}},
341 
342     {{"_AC2",   METHOD_0ARGS,
343                 METHOD_RETURNS (ACPI_RTYPE_INTEGER)}},
344 
345     {{"_AC3",   METHOD_0ARGS,
346                 METHOD_RETURNS (ACPI_RTYPE_INTEGER)}},
347 
348     {{"_AC4",   METHOD_0ARGS,
349                 METHOD_RETURNS (ACPI_RTYPE_INTEGER)}},
350 
351     {{"_AC5",   METHOD_0ARGS,
352                 METHOD_RETURNS (ACPI_RTYPE_INTEGER)}},
353 
354     {{"_AC6",   METHOD_0ARGS,
355                 METHOD_RETURNS (ACPI_RTYPE_INTEGER)}},
356 
357     {{"_AC7",   METHOD_0ARGS,
358                 METHOD_RETURNS (ACPI_RTYPE_INTEGER)}},
359 
360     {{"_AC8",   METHOD_0ARGS,
361                 METHOD_RETURNS (ACPI_RTYPE_INTEGER)}},
362 
363     {{"_AC9",   METHOD_0ARGS,
364                 METHOD_RETURNS (ACPI_RTYPE_INTEGER)}},
365 
366     {{"_ADR",   METHOD_0ARGS,
367                 METHOD_RETURNS (ACPI_RTYPE_INTEGER)}},
368 
369     {{"_AEI",   METHOD_0ARGS,
370                 METHOD_RETURNS (ACPI_RTYPE_BUFFER)}},
371 
372     {{"_AL0",   METHOD_0ARGS,
373                 METHOD_RETURNS (ACPI_RTYPE_PACKAGE)}}, /* Variable-length (Refs) */
374                     PACKAGE_INFO (ACPI_PTYPE1_VAR, ACPI_RTYPE_REFERENCE, 0,0,0,0),
375 
376     {{"_AL1",   METHOD_0ARGS,
377                 METHOD_RETURNS (ACPI_RTYPE_PACKAGE)}}, /* Variable-length (Refs) */
378                     PACKAGE_INFO (ACPI_PTYPE1_VAR, ACPI_RTYPE_REFERENCE, 0,0,0,0),
379 
380     {{"_AL2",   METHOD_0ARGS,
381                 METHOD_RETURNS (ACPI_RTYPE_PACKAGE)}}, /* Variable-length (Refs) */
382                     PACKAGE_INFO (ACPI_PTYPE1_VAR, ACPI_RTYPE_REFERENCE, 0,0,0,0),
383 
384     {{"_AL3",   METHOD_0ARGS,
385                 METHOD_RETURNS (ACPI_RTYPE_PACKAGE)}}, /* Variable-length (Refs) */
386                     PACKAGE_INFO (ACPI_PTYPE1_VAR, ACPI_RTYPE_REFERENCE, 0,0,0,0),
387 
388     {{"_AL4",   METHOD_0ARGS,
389                 METHOD_RETURNS (ACPI_RTYPE_PACKAGE)}}, /* Variable-length (Refs) */
390                     PACKAGE_INFO (ACPI_PTYPE1_VAR, ACPI_RTYPE_REFERENCE, 0,0,0,0),
391 
392     {{"_AL5",   METHOD_0ARGS,
393                 METHOD_RETURNS (ACPI_RTYPE_PACKAGE)}}, /* Variable-length (Refs) */
394                     PACKAGE_INFO (ACPI_PTYPE1_VAR, ACPI_RTYPE_REFERENCE, 0,0,0,0),
395 
396     {{"_AL6",   METHOD_0ARGS,
397                 METHOD_RETURNS (ACPI_RTYPE_PACKAGE)}}, /* Variable-length (Refs) */
398                     PACKAGE_INFO (ACPI_PTYPE1_VAR, ACPI_RTYPE_REFERENCE, 0,0,0,0),
399 
400     {{"_AL7",   METHOD_0ARGS,
401                 METHOD_RETURNS (ACPI_RTYPE_PACKAGE)}}, /* Variable-length (Refs) */
402                     PACKAGE_INFO (ACPI_PTYPE1_VAR, ACPI_RTYPE_REFERENCE, 0,0,0,0),
403 
404     {{"_AL8",   METHOD_0ARGS,
405                 METHOD_RETURNS (ACPI_RTYPE_PACKAGE)}}, /* Variable-length (Refs) */
406                     PACKAGE_INFO (ACPI_PTYPE1_VAR, ACPI_RTYPE_REFERENCE, 0,0,0,0),
407 
408     {{"_AL9",   METHOD_0ARGS,
409                 METHOD_RETURNS (ACPI_RTYPE_PACKAGE)}}, /* Variable-length (Refs) */
410                     PACKAGE_INFO (ACPI_PTYPE1_VAR, ACPI_RTYPE_REFERENCE, 0,0,0,0),
411 
412     {{"_ALC",   METHOD_0ARGS,
413                 METHOD_RETURNS (ACPI_RTYPE_INTEGER)}},
414 
415     {{"_ALI",   METHOD_0ARGS,
416                 METHOD_RETURNS (ACPI_RTYPE_INTEGER)}},
417 
418     {{"_ALP",   METHOD_0ARGS,
419                 METHOD_RETURNS (ACPI_RTYPE_INTEGER)}},
420 
421     {{"_ALR",   METHOD_0ARGS,
422                 METHOD_RETURNS (ACPI_RTYPE_PACKAGE)}}, /* Variable-length (Pkgs) each 2 (Ints) */
423                     PACKAGE_INFO (ACPI_PTYPE2, ACPI_RTYPE_INTEGER, 2,0,0,0),
424 
425     {{"_ALT",   METHOD_0ARGS,
426                 METHOD_RETURNS (ACPI_RTYPE_INTEGER)}},
427 
428     {{"_ART",   METHOD_0ARGS,
429                 METHOD_RETURNS (ACPI_RTYPE_PACKAGE)}}, /* Variable-length (1 Int(rev), n Pkg (2 Ref/11 Int) */
430                     PACKAGE_INFO (ACPI_PTYPE2_REV_FIXED, ACPI_RTYPE_REFERENCE, 2, ACPI_RTYPE_INTEGER, 11,0),
431 
432     {{"_BBN",   METHOD_0ARGS,
433                 METHOD_RETURNS (ACPI_RTYPE_INTEGER)}},
434 
435     {{"_BCL",   METHOD_0ARGS,
436                 METHOD_RETURNS (ACPI_RTYPE_PACKAGE)}}, /* Variable-length (Ints) */
437                     PACKAGE_INFO (ACPI_PTYPE1_VAR, ACPI_RTYPE_INTEGER, 0,0,0,0),
438 
439     {{"_BCM",   METHOD_1ARGS (ACPI_TYPE_INTEGER),
440                 METHOD_NO_RETURN_VALUE}},
441 
442     {{"_BCT",   METHOD_1ARGS (ACPI_TYPE_INTEGER),
443                 METHOD_RETURNS (ACPI_RTYPE_INTEGER)}},
444 
445     {{"_BDN",   METHOD_0ARGS,
446                 METHOD_RETURNS (ACPI_RTYPE_INTEGER)}},
447 
448     {{"_BFS",   METHOD_1ARGS (ACPI_TYPE_INTEGER),
449                 METHOD_NO_RETURN_VALUE}},
450 
451     {{"_BIF",   METHOD_0ARGS,
452                 METHOD_RETURNS (ACPI_RTYPE_PACKAGE)}}, /* Fixed-length (9 Int),(4 Str) */
453                     PACKAGE_INFO (ACPI_PTYPE1_FIXED, ACPI_RTYPE_INTEGER, 9, ACPI_RTYPE_STRING, 4,0),
454 
455     {{"_BIX",   METHOD_0ARGS,
456                 METHOD_RETURNS (ACPI_RTYPE_PACKAGE)}}, /* Fixed-length (16 Int),(4 Str) */
457                     PACKAGE_INFO (ACPI_PTYPE_CUSTOM, ACPI_RTYPE_INTEGER, 16, ACPI_RTYPE_STRING, 4,0),
458 
459     {{"_BLT",   METHOD_3ARGS (ACPI_TYPE_INTEGER, ACPI_TYPE_INTEGER, ACPI_TYPE_INTEGER),
460                 METHOD_NO_RETURN_VALUE}},
461 
462     {{"_BMA",   METHOD_1ARGS (ACPI_TYPE_INTEGER),
463                 METHOD_RETURNS (ACPI_RTYPE_INTEGER)}},
464 
465     {{"_BMC",   METHOD_1ARGS (ACPI_TYPE_INTEGER),
466                 METHOD_NO_RETURN_VALUE}},
467 
468     {{"_BMD",   METHOD_0ARGS,
469                 METHOD_RETURNS (ACPI_RTYPE_PACKAGE)}}, /* Fixed-length (5 Int) */
470                     PACKAGE_INFO (ACPI_PTYPE1_FIXED, ACPI_RTYPE_INTEGER, 5,0,0,0),
471 
472     {{"_BMS",   METHOD_1ARGS (ACPI_TYPE_INTEGER),
473                 METHOD_RETURNS (ACPI_RTYPE_INTEGER)}},
474 
475     {{"_BPC",   METHOD_0ARGS,
476                 METHOD_RETURNS (ACPI_RTYPE_PACKAGE)}}, /* Fixed-length (4 Int) */
477                     PACKAGE_INFO (ACPI_PTYPE1_FIXED, ACPI_RTYPE_INTEGER, 4,0,0,0),
478 
479     {{"_BPS",   METHOD_0ARGS,
480                 METHOD_RETURNS (ACPI_RTYPE_PACKAGE)}}, /* Fixed-length (5 Int) */
481                     PACKAGE_INFO (ACPI_PTYPE1_FIXED, ACPI_RTYPE_INTEGER, 5,0,0,0),
482 
483     {{"_BPT",   METHOD_1ARGS (ACPI_TYPE_PACKAGE),
484                 METHOD_RETURNS (ACPI_RTYPE_INTEGER)}},
485 
486     {{"_BQC",   METHOD_0ARGS,
487                 METHOD_RETURNS (ACPI_RTYPE_INTEGER)}},
488 
489     {{"_BST",   METHOD_0ARGS,
490                 METHOD_RETURNS (ACPI_RTYPE_PACKAGE)}}, /* Fixed-length (4 Int) */
491                     PACKAGE_INFO (ACPI_PTYPE1_FIXED, ACPI_RTYPE_INTEGER, 4,0,0,0),
492 
493     {{"_BTH",   METHOD_1ARGS (ACPI_TYPE_INTEGER),      /* ACPI 6.0 */
494                 METHOD_NO_RETURN_VALUE}},
495 
496     {{"_BTM",   METHOD_1ARGS (ACPI_TYPE_INTEGER),
497                 METHOD_RETURNS (ACPI_RTYPE_INTEGER)}},
498 
499     {{"_BTP",   METHOD_1ARGS (ACPI_TYPE_INTEGER),
500                 METHOD_NO_RETURN_VALUE}},
501 
502     {{"_CBA",   METHOD_0ARGS,
503                 METHOD_RETURNS (ACPI_RTYPE_INTEGER)}}, /* See PCI firmware spec 3.0 */
504 
505     {{"_CBR",   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     {{"_CCA",   METHOD_0ARGS,
510                 METHOD_RETURNS (ACPI_RTYPE_INTEGER)}}, /* ACPI 5.1 */
511 
512     {{"_CDM",   METHOD_0ARGS,
513                 METHOD_RETURNS (ACPI_RTYPE_INTEGER)}},
514 
515     {{"_CID",   METHOD_0ARGS,
516                 METHOD_RETURNS (ACPI_RTYPE_INTEGER | ACPI_RTYPE_STRING | ACPI_RTYPE_PACKAGE)}}, /* Variable-length (Ints/Strs) */
517                     PACKAGE_INFO (ACPI_PTYPE1_VAR, ACPI_RTYPE_INTEGER | ACPI_RTYPE_STRING, 0,0,0,0),
518 
519     {{"_CLS",   METHOD_0ARGS,
520                 METHOD_RETURNS (ACPI_RTYPE_PACKAGE)}}, /* Fixed-length (3 Int) */
521                     PACKAGE_INFO (ACPI_PTYPE1_FIXED, ACPI_RTYPE_INTEGER, 3,0,0,0),
522 
523     {{"_CPC",   METHOD_0ARGS,
524                 METHOD_RETURNS (ACPI_RTYPE_PACKAGE)}}, /* Variable-length (Ints/Bufs) */
525                     PACKAGE_INFO (ACPI_PTYPE1_VAR, ACPI_RTYPE_INTEGER | ACPI_RTYPE_BUFFER, 0,0,0,0),
526 
527     {{"_CR3",   METHOD_0ARGS,                          /* ACPI 6.0 */
528                 METHOD_RETURNS (ACPI_RTYPE_INTEGER)}},
529 
530     {{"_CRS",   METHOD_0ARGS,
531                 METHOD_RETURNS (ACPI_RTYPE_BUFFER)}},
532 
533     {{"_CRT",   METHOD_0ARGS,
534                 METHOD_RETURNS (ACPI_RTYPE_INTEGER)}},
535 
536     {{"_CSD",   METHOD_0ARGS,
537                 METHOD_RETURNS (ACPI_RTYPE_PACKAGE)}}, /* Variable-length (1 Int(n), n-1 Int) */
538                     PACKAGE_INFO (ACPI_PTYPE2_COUNT, ACPI_RTYPE_INTEGER, 0,0,0,0),
539 
540     {{"_CST",   METHOD_0ARGS,
541                 METHOD_RETURNS (ACPI_RTYPE_PACKAGE)}}, /* Variable-length (1 Int(n), n Pkg (1 Buf/3 Int) */
542                     PACKAGE_INFO (ACPI_PTYPE2_PKG_COUNT,ACPI_RTYPE_BUFFER, 1, ACPI_RTYPE_INTEGER, 3,0),
543 
544     {{"_CWS",   METHOD_1ARGS (ACPI_TYPE_INTEGER),
545                 METHOD_RETURNS (ACPI_RTYPE_INTEGER)}},
546 
547     {{"_DCK",   METHOD_1ARGS (ACPI_TYPE_INTEGER),
548                 METHOD_RETURNS (ACPI_RTYPE_INTEGER)}},
549 
550     {{"_DCS",   METHOD_0ARGS,
551                 METHOD_RETURNS (ACPI_RTYPE_INTEGER)}},
552 
553     {{"_DDC",   METHOD_1ARGS (ACPI_TYPE_INTEGER),
554                 METHOD_RETURNS (ACPI_RTYPE_INTEGER | ACPI_RTYPE_BUFFER)}},
555 
556     {{"_DDN",   METHOD_0ARGS,
557                 METHOD_RETURNS (ACPI_RTYPE_STRING)}},
558 
559     {{"_DEP",   METHOD_0ARGS,
560                 METHOD_RETURNS (ACPI_RTYPE_PACKAGE)}}, /* Variable-length (Refs) */
561                     PACKAGE_INFO (ACPI_PTYPE1_VAR, ACPI_RTYPE_REFERENCE, 0,0,0,0),
562 
563     {{"_DGS",   METHOD_0ARGS,
564                 METHOD_RETURNS (ACPI_RTYPE_INTEGER)}},
565 
566     {{"_DIS",   METHOD_0ARGS,
567                 METHOD_NO_RETURN_VALUE}},
568 
569     {{"_DLM",   METHOD_0ARGS,
570                 METHOD_RETURNS (ACPI_RTYPE_PACKAGE)}}, /* Variable-length (Pkgs) each (1 Ref, 0/1 Optional Buf/Ref) */
571                     PACKAGE_INFO (ACPI_PTYPE2_FIX_VAR, ACPI_RTYPE_REFERENCE, 1, ACPI_RTYPE_REFERENCE | ACPI_RTYPE_BUFFER, 0,0),
572 
573     {{"_DMA",   METHOD_0ARGS,
574                 METHOD_RETURNS (ACPI_RTYPE_BUFFER)}},
575 
576     {{"_DOD",   METHOD_0ARGS,
577                 METHOD_RETURNS (ACPI_RTYPE_PACKAGE)}}, /* Variable-length (Ints) */
578                     PACKAGE_INFO (ACPI_PTYPE1_VAR, ACPI_RTYPE_INTEGER, 0,0,0,0),
579 
580     {{"_DOS",   METHOD_1ARGS (ACPI_TYPE_INTEGER),
581                 METHOD_NO_RETURN_VALUE}},
582 
583     { {"_DSC",   METHOD_0ARGS,
584                     METHOD_RETURNS (ACPI_RTYPE_INTEGER)}},
585 
586     {{"_DSD",   METHOD_0ARGS,                          /* ACPI 6.0 */
587                 METHOD_RETURNS (ACPI_RTYPE_PACKAGE)}}, /* Variable-length (Pkgs) each: 1 Buf, 1 Pkg */
588                     PACKAGE_INFO (ACPI_PTYPE2_UUID_PAIR, ACPI_RTYPE_BUFFER, 1, ACPI_RTYPE_PACKAGE, 1,0),
589 
590     {{"_DSM",   METHOD_4ARGS (ACPI_TYPE_BUFFER, ACPI_TYPE_INTEGER, ACPI_TYPE_INTEGER, ACPI_TYPE_PACKAGE),
591                 METHOD_RETURNS (ACPI_RTYPE_ALL)}}, /* Must return a value, but it can be of any type */
592 
593     {{"_DSS",   METHOD_1ARGS (ACPI_TYPE_INTEGER),
594                 METHOD_NO_RETURN_VALUE}},
595 
596     {{"_DSW",   METHOD_3ARGS (ACPI_TYPE_INTEGER, ACPI_TYPE_INTEGER, ACPI_TYPE_INTEGER),
597                 METHOD_NO_RETURN_VALUE}},
598 
599     {{"_DTI",   METHOD_1ARGS (ACPI_TYPE_INTEGER),
600                 METHOD_NO_RETURN_VALUE}},
601 
602     {{"_EC_",   METHOD_0ARGS,
603                 METHOD_RETURNS (ACPI_RTYPE_INTEGER)}},
604 
605     {{"_EDL",   METHOD_0ARGS,
606                 METHOD_RETURNS (ACPI_RTYPE_PACKAGE)}}, /* Variable-length (Refs)*/
607                     PACKAGE_INFO (ACPI_PTYPE1_VAR, ACPI_RTYPE_REFERENCE, 0,0,0,0),
608 
609     {{"_EJ0",   METHOD_1ARGS (ACPI_TYPE_INTEGER),
610                 METHOD_NO_RETURN_VALUE}},
611 
612     {{"_EJ1",   METHOD_1ARGS (ACPI_TYPE_INTEGER),
613                 METHOD_NO_RETURN_VALUE}},
614 
615     {{"_EJ2",   METHOD_1ARGS (ACPI_TYPE_INTEGER),
616                 METHOD_NO_RETURN_VALUE}},
617 
618     {{"_EJ3",   METHOD_1ARGS (ACPI_TYPE_INTEGER),
619                 METHOD_NO_RETURN_VALUE}},
620 
621     {{"_EJ4",   METHOD_1ARGS (ACPI_TYPE_INTEGER),
622                 METHOD_NO_RETURN_VALUE}},
623 
624     {{"_EJD",   METHOD_0ARGS,
625                 METHOD_RETURNS (ACPI_RTYPE_STRING)}},
626 
627     {{"_ERR",   METHOD_3ARGS (ACPI_TYPE_INTEGER, ACPI_TYPE_STRING, ACPI_TYPE_INTEGER),
628                 METHOD_RETURNS (ACPI_RTYPE_INTEGER)}}, /* Internal use only, used by ACPICA test suites */
629 
630     {{"_EVT",   METHOD_1ARGS (ACPI_TYPE_INTEGER),
631                 METHOD_NO_RETURN_VALUE}},
632 
633     {{"_FDE",   METHOD_0ARGS,
634                 METHOD_RETURNS (ACPI_RTYPE_BUFFER)}},
635 
636     {{"_FDI",   METHOD_0ARGS,
637                 METHOD_RETURNS (ACPI_RTYPE_PACKAGE)}}, /* Fixed-length (16 Int) */
638                     PACKAGE_INFO (ACPI_PTYPE1_FIXED, ACPI_RTYPE_INTEGER, 16,0,0,0),
639 
640     {{"_FDM",   METHOD_1ARGS (ACPI_TYPE_INTEGER),
641                 METHOD_NO_RETURN_VALUE}},
642 
643     {{"_FIF",   METHOD_0ARGS,
644                 METHOD_RETURNS (ACPI_RTYPE_PACKAGE)}}, /* Fixed-length (4 Int) */
645                     PACKAGE_INFO (ACPI_PTYPE1_FIXED, ACPI_RTYPE_INTEGER, 4,0,0,0),
646 
647     {{"_FIT",   METHOD_0ARGS,
648                 METHOD_RETURNS (ACPI_RTYPE_BUFFER)}},  /* ACPI 6.0 */
649 
650     {{"_FIX",   METHOD_0ARGS,
651                 METHOD_RETURNS (ACPI_RTYPE_PACKAGE)}}, /* Variable-length (Ints) */
652                     PACKAGE_INFO (ACPI_PTYPE1_VAR, ACPI_RTYPE_INTEGER, 0,0,0,0),
653 
654     {{"_FPS",   METHOD_0ARGS,
655                 METHOD_RETURNS (ACPI_RTYPE_PACKAGE)}}, /* Variable-length (1 Int(rev), n Pkg (5 Int) */
656                     PACKAGE_INFO (ACPI_PTYPE2_REV_FIXED,ACPI_RTYPE_INTEGER, 5, 0,0,0),
657 
658     {{"_FSL",   METHOD_1ARGS (ACPI_TYPE_INTEGER),
659                 METHOD_NO_RETURN_VALUE}},
660 
661     {{"_FST",   METHOD_0ARGS,
662                 METHOD_RETURNS (ACPI_RTYPE_PACKAGE)}}, /* Fixed-length (3 Int) */
663                     PACKAGE_INFO (ACPI_PTYPE1_FIXED, ACPI_RTYPE_INTEGER, 3,0,0,0),
664 
665     {{"_GAI",   METHOD_0ARGS,
666                 METHOD_RETURNS (ACPI_RTYPE_INTEGER)}},
667 
668     {{"_GCP",   METHOD_0ARGS,
669                 METHOD_RETURNS (ACPI_RTYPE_INTEGER)}},
670 
671     {{"_GHL",   METHOD_0ARGS,
672                 METHOD_RETURNS (ACPI_RTYPE_INTEGER)}},
673 
674     {{"_GLK",   METHOD_0ARGS,
675                 METHOD_RETURNS (ACPI_RTYPE_INTEGER)}},
676 
677     {{"_GPD",   METHOD_0ARGS,
678                 METHOD_RETURNS (ACPI_RTYPE_INTEGER)}},
679 
680     {{"_GPE",   METHOD_0ARGS,
681                 METHOD_RETURNS (ACPI_RTYPE_INTEGER)}}, /* _GPE method, not _GPE scope */
682 
683     {{"_GRT",   METHOD_0ARGS,
684                 METHOD_RETURNS (ACPI_RTYPE_BUFFER)}},
685 
686     {{"_GSB",   METHOD_0ARGS,
687                 METHOD_RETURNS (ACPI_RTYPE_INTEGER)}},
688 
689     {{"_GTF",   METHOD_0ARGS,
690                 METHOD_RETURNS (ACPI_RTYPE_BUFFER)}},
691 
692     {{"_GTM",   METHOD_0ARGS,
693                 METHOD_RETURNS (ACPI_RTYPE_BUFFER)}},
694 
695     {{"_GTS",   METHOD_1ARGS (ACPI_TYPE_INTEGER),
696                 METHOD_NO_RETURN_VALUE}},
697 
698     {{"_GWS",   METHOD_1ARGS (ACPI_TYPE_INTEGER),
699                 METHOD_RETURNS (ACPI_RTYPE_INTEGER)}},
700 
701     {{"_HID",   METHOD_0ARGS,
702                 METHOD_RETURNS (ACPI_RTYPE_INTEGER | ACPI_RTYPE_STRING)}},
703 
704     {{"_HMA",   METHOD_0ARGS,
705                 METHOD_RETURNS (ACPI_RTYPE_BUFFER)}},
706 
707     {{"_HOT",   METHOD_0ARGS,
708                 METHOD_RETURNS (ACPI_RTYPE_INTEGER)}},
709 
710     {{"_HPP",   METHOD_0ARGS,
711                 METHOD_RETURNS (ACPI_RTYPE_PACKAGE)}}, /* Fixed-length (4 Int) */
712                     PACKAGE_INFO (ACPI_PTYPE1_FIXED, ACPI_RTYPE_INTEGER, 4,0,0,0),
713 
714     /*
715      * For _HPX, a single package is returned, containing a variable-length number
716      * of subpackages. Each subpackage contains a PCI record setting.
717      * There are several different type of record settings, of different
718      * lengths, but all elements of all settings are Integers.
719      */
720     {{"_HPX",   METHOD_0ARGS,
721                 METHOD_RETURNS (ACPI_RTYPE_PACKAGE)}}, /* Variable-length (Pkgs) each (var Ints) */
722                     PACKAGE_INFO (ACPI_PTYPE2_MIN, ACPI_RTYPE_INTEGER, 5,0,0,0),
723 
724     {{"_HRV",   METHOD_0ARGS,
725                 METHOD_RETURNS (ACPI_RTYPE_INTEGER)}},
726 
727     {{"_IFT",   METHOD_0ARGS,
728                 METHOD_RETURNS (ACPI_RTYPE_INTEGER)}}, /* See IPMI spec */
729 
730     {{"_INI",   METHOD_0ARGS,
731                 METHOD_NO_RETURN_VALUE}},
732 
733     {{"_IRC",   METHOD_0ARGS,
734                 METHOD_NO_RETURN_VALUE}},
735 
736     {{"_LCK",   METHOD_1ARGS (ACPI_TYPE_INTEGER),
737                 METHOD_NO_RETURN_VALUE}},
738 
739     {{"_LID",   METHOD_0ARGS,
740                 METHOD_RETURNS (ACPI_RTYPE_INTEGER)}},
741 
742     {{"_LPD",   METHOD_0ARGS,
743                 METHOD_RETURNS (ACPI_RTYPE_PACKAGE)}}, /* Variable-length (1 Int(rev), n Pkg (2 Int) */
744                     PACKAGE_INFO (ACPI_PTYPE2_REV_FIXED, ACPI_RTYPE_INTEGER, 2,0,0,0),
745 
746     {{"_LPI",   METHOD_0ARGS,                          /* ACPI 6.0 */
747                 METHOD_RETURNS (ACPI_RTYPE_PACKAGE)}}, /* Variable-length (3 Int, n Pkg (10 Int/Buf) */
748                     PACKAGE_INFO (ACPI_PTYPE2_VAR_VAR, ACPI_RTYPE_INTEGER, 3,
749                     ACPI_RTYPE_INTEGER | ACPI_RTYPE_BUFFER | ACPI_RTYPE_STRING, 10,0),
750 
751     {{"_LSI",   METHOD_0ARGS,
752                 METHOD_RETURNS (ACPI_RTYPE_PACKAGE)}},
753                     PACKAGE_INFO (ACPI_PTYPE1_FIXED, ACPI_RTYPE_INTEGER, 3,0,0,0),
754 
755     {{"_LSR",   METHOD_2ARGS (ACPI_TYPE_INTEGER, ACPI_TYPE_INTEGER),
756                 METHOD_RETURNS (ACPI_RTYPE_PACKAGE)}},
757                     PACKAGE_INFO (ACPI_PTYPE1_FIXED, ACPI_RTYPE_INTEGER, 1, ACPI_RTYPE_BUFFER, 1,0),
758 
759     {{"_LSW",   METHOD_3ARGS (ACPI_TYPE_INTEGER, ACPI_TYPE_INTEGER, ACPI_TYPE_BUFFER),
760                 METHOD_RETURNS (ACPI_RTYPE_INTEGER)}},
761 
762     {{"_MAT",   METHOD_0ARGS,
763                 METHOD_RETURNS (ACPI_RTYPE_BUFFER)}},
764 
765     {{"_MBM",   METHOD_0ARGS,
766                 METHOD_RETURNS (ACPI_RTYPE_PACKAGE)}}, /* Fixed-length (8 Int) */
767                     PACKAGE_INFO (ACPI_PTYPE1_FIXED, ACPI_RTYPE_INTEGER, 8,0,0,0),
768 
769     {{"_MLS",   METHOD_0ARGS,
770                 METHOD_RETURNS (ACPI_RTYPE_PACKAGE)}}, /* Variable-length (Pkgs) each (1 Str/1 Buf) */
771                     PACKAGE_INFO (ACPI_PTYPE2, ACPI_RTYPE_STRING, 1, ACPI_RTYPE_BUFFER, 1,0),
772 
773     {{"_MSG",   METHOD_1ARGS (ACPI_TYPE_INTEGER),
774                 METHOD_NO_RETURN_VALUE}},
775 
776     {{"_MSM",   METHOD_4ARGS (ACPI_TYPE_INTEGER, ACPI_TYPE_INTEGER, ACPI_TYPE_INTEGER, ACPI_TYPE_INTEGER),
777                 METHOD_RETURNS (ACPI_RTYPE_INTEGER)}},
778 
779     {{"_MTL",   METHOD_0ARGS,                          /* ACPI 6.0 */
780                 METHOD_RETURNS (ACPI_RTYPE_INTEGER)}},
781 
782     {{"_NBS",   METHOD_0ARGS,                          /* ACPI 6.3 */
783                 METHOD_RETURNS (ACPI_RTYPE_BUFFER)}},
784 
785     {{"_NCH",   METHOD_0ARGS,                          /* ACPI 6.3 */
786                 METHOD_RETURNS (ACPI_RTYPE_BUFFER)}},
787 
788     {{"_NIC",   METHOD_0ARGS,                          /* ACPI 6.3 */
789                 METHOD_RETURNS (ACPI_RTYPE_BUFFER)}},
790 
791     {{"_NIG",   METHOD_0ARGS,                          /* ACPI 6.3 */
792                 METHOD_RETURNS (ACPI_RTYPE_BUFFER)}},
793 
794     {{"_NIH",   METHOD_1ARGS (ACPI_TYPE_BUFFER),       /* ACPI 6.3 */
795                 METHOD_RETURNS (ACPI_RTYPE_BUFFER)}},
796 
797     {{"_NTT",   METHOD_0ARGS,
798                 METHOD_RETURNS (ACPI_RTYPE_INTEGER)}},
799 
800     {{"_OFF",   METHOD_0ARGS,
801                 METHOD_NO_RETURN_VALUE}},
802 
803     {{"_ON_",   METHOD_0ARGS,
804                 METHOD_NO_RETURN_VALUE}},
805 
806     {{"_OS_",   METHOD_0ARGS,
807                 METHOD_RETURNS (ACPI_RTYPE_STRING)}},
808 
809     {{"_OSC",   METHOD_4ARGS (ACPI_TYPE_BUFFER, ACPI_TYPE_INTEGER, ACPI_TYPE_INTEGER, ACPI_TYPE_BUFFER),
810                 METHOD_RETURNS (ACPI_RTYPE_BUFFER)}},
811 
812     {{"_OST",   METHOD_3ARGS (ACPI_TYPE_INTEGER, ACPI_TYPE_INTEGER, ACPI_TYPE_BUFFER),
813                 METHOD_NO_RETURN_VALUE}},
814 
815     {{"_PAI",   METHOD_1ARGS (ACPI_TYPE_INTEGER),
816                 METHOD_RETURNS (ACPI_RTYPE_INTEGER)}},
817 
818     {{"_PCL",   METHOD_0ARGS,
819                 METHOD_RETURNS (ACPI_RTYPE_PACKAGE)}}, /* Variable-length (Refs) */
820                     PACKAGE_INFO (ACPI_PTYPE1_VAR, ACPI_RTYPE_REFERENCE, 0,0,0,0),
821 
822     {{"_PCT",   METHOD_0ARGS,
823                 METHOD_RETURNS (ACPI_RTYPE_PACKAGE)}}, /* Fixed-length (2 Buf) */
824                     PACKAGE_INFO (ACPI_PTYPE1_FIXED, ACPI_RTYPE_BUFFER, 2,0,0,0),
825 
826     {{"_PDC",   METHOD_1ARGS (ACPI_TYPE_BUFFER),
827                 METHOD_NO_RETURN_VALUE}},
828 
829     {{"_PDL",   METHOD_0ARGS,
830                 METHOD_RETURNS (ACPI_RTYPE_INTEGER)}},
831 
832     {{"_PIC",   METHOD_1ARGS (ACPI_TYPE_INTEGER),
833                 METHOD_NO_RETURN_VALUE}},
834 
835     {{"_PIF",   METHOD_0ARGS,
836                 METHOD_RETURNS (ACPI_RTYPE_PACKAGE)}}, /* Fixed-length (3 Int),(3 Str) */
837                     PACKAGE_INFO (ACPI_PTYPE1_FIXED, ACPI_RTYPE_INTEGER, 3, ACPI_RTYPE_STRING, 3,0),
838 
839     {{"_PLD",   METHOD_0ARGS,
840                 METHOD_RETURNS (ACPI_RTYPE_PACKAGE)}}, /* Variable-length (Bufs) */
841                     PACKAGE_INFO (ACPI_PTYPE1_VAR, ACPI_RTYPE_BUFFER, 0,0,0,0),
842 
843     {{"_PMC",   METHOD_0ARGS,
844                 METHOD_RETURNS (ACPI_RTYPE_PACKAGE)}}, /* Fixed-length (11 Int),(3 Str) */
845                     PACKAGE_INFO (ACPI_PTYPE1_FIXED, ACPI_RTYPE_INTEGER, 11, ACPI_RTYPE_STRING, 3,0),
846 
847     {{"_PMD",   METHOD_0ARGS,
848                 METHOD_RETURNS (ACPI_RTYPE_PACKAGE)}}, /* Variable-length (Refs) */
849                     PACKAGE_INFO (ACPI_PTYPE1_VAR, ACPI_RTYPE_REFERENCE, 0,0,0,0),
850 
851     {{"_PMM",   METHOD_0ARGS,
852                 METHOD_RETURNS (ACPI_RTYPE_INTEGER)}},
853 
854     {{"_PPC",   METHOD_0ARGS,
855                 METHOD_RETURNS (ACPI_RTYPE_INTEGER)}},
856 
857     {{"_PPE",   METHOD_0ARGS,
858                 METHOD_RETURNS (ACPI_RTYPE_INTEGER)}}, /* See dig64 spec */
859 
860     {{"_PR0",   METHOD_0ARGS,
861                 METHOD_RETURNS (ACPI_RTYPE_PACKAGE)}}, /* Variable-length (Refs) */
862                     PACKAGE_INFO (ACPI_PTYPE1_VAR, ACPI_RTYPE_REFERENCE, 0,0,0,0),
863 
864     {{"_PR1",   METHOD_0ARGS,
865                 METHOD_RETURNS (ACPI_RTYPE_PACKAGE)}}, /* Variable-length (Refs) */
866                     PACKAGE_INFO (ACPI_PTYPE1_VAR, ACPI_RTYPE_REFERENCE, 0,0,0,0),
867 
868     {{"_PR2",   METHOD_0ARGS,
869                 METHOD_RETURNS (ACPI_RTYPE_PACKAGE)}}, /* Variable-length (Refs) */
870                     PACKAGE_INFO (ACPI_PTYPE1_VAR, ACPI_RTYPE_REFERENCE, 0,0,0,0),
871 
872     {{"_PR3",   METHOD_0ARGS,
873                 METHOD_RETURNS (ACPI_RTYPE_PACKAGE)}}, /* Variable-length (Refs) */
874                     PACKAGE_INFO (ACPI_PTYPE1_VAR, ACPI_RTYPE_REFERENCE, 0,0,0,0),
875 
876     {{"_PRE",   METHOD_0ARGS,
877                 METHOD_RETURNS (ACPI_RTYPE_PACKAGE)}}, /* Variable-length (Refs) */
878                     PACKAGE_INFO (ACPI_PTYPE1_VAR, ACPI_RTYPE_REFERENCE, 0,0,0,0),
879 
880     {{"_PRL",   METHOD_0ARGS,
881                 METHOD_RETURNS (ACPI_RTYPE_PACKAGE)}}, /* Variable-length (Refs) */
882                     PACKAGE_INFO (ACPI_PTYPE1_VAR, ACPI_RTYPE_REFERENCE, 0,0,0,0),
883 
884     {{"_PRR",   METHOD_0ARGS,                          /* ACPI 6.0 */
885                 METHOD_RETURNS (ACPI_RTYPE_PACKAGE)}}, /* Fixed-length (1 Ref) */
886                     PACKAGE_INFO (ACPI_PTYPE1_FIXED, ACPI_RTYPE_REFERENCE, 1,0,0,0),
887 
888     {{"_PRS",   METHOD_0ARGS,
889                 METHOD_RETURNS (ACPI_RTYPE_BUFFER)}},
890 
891     /*
892      * For _PRT, many BIOSs reverse the 3rd and 4th Package elements (Source
893      * and SourceIndex). This bug is so prevalent that there is code in the
894      * ACPICA Resource Manager to detect this and switch them back. For now,
895      * do not allow and issue a warning. To allow this and eliminate the
896      * warning, add the ACPI_RTYPE_REFERENCE type to the 4th element (index 3)
897      * in the statement below.
898      */
899     {{"_PRT",   METHOD_0ARGS,
900                 METHOD_RETURNS (ACPI_RTYPE_PACKAGE)}}, /* Variable-length (Pkgs) each (4): Int,Int,Int/Ref,Int */
901                     PACKAGE_INFO (ACPI_PTYPE2_FIXED, 4, ACPI_RTYPE_INTEGER, ACPI_RTYPE_INTEGER,
902                                   ACPI_RTYPE_INTEGER | ACPI_RTYPE_REFERENCE, ACPI_RTYPE_INTEGER),
903 
904     {{"_PRW",   METHOD_0ARGS,
905                 METHOD_RETURNS (ACPI_RTYPE_PACKAGE)}}, /* Variable-length (Pkgs) each: Pkg/Int,Int,[Variable-length Refs] (Pkg is Ref/Int) */
906                     PACKAGE_INFO (ACPI_PTYPE1_OPTION, 2, ACPI_RTYPE_INTEGER | ACPI_RTYPE_PACKAGE,
907                                   ACPI_RTYPE_INTEGER, ACPI_RTYPE_REFERENCE, 0),
908 
909     {{"_PS0",   METHOD_0ARGS,
910                 METHOD_NO_RETURN_VALUE}},
911 
912     {{"_PS1",   METHOD_0ARGS,
913                 METHOD_NO_RETURN_VALUE}},
914 
915     {{"_PS2",   METHOD_0ARGS,
916                 METHOD_NO_RETURN_VALUE}},
917 
918     {{"_PS3",   METHOD_0ARGS,
919                 METHOD_NO_RETURN_VALUE}},
920 
921     {{"_PSC",   METHOD_0ARGS,
922                 METHOD_RETURNS (ACPI_RTYPE_INTEGER)}},
923 
924     {{"_PSD",   METHOD_0ARGS,
925                 METHOD_RETURNS (ACPI_RTYPE_PACKAGE)}}, /* Variable-length (Pkgs) each (5 Int) with count */
926                     PACKAGE_INFO (ACPI_PTYPE2_COUNT, ACPI_RTYPE_INTEGER, 0,0,0,0),
927 
928     {{"_PSE",   METHOD_1ARGS (ACPI_TYPE_INTEGER),
929                 METHOD_NO_RETURN_VALUE}},
930 
931     {{"_PSL",   METHOD_0ARGS,
932                 METHOD_RETURNS (ACPI_RTYPE_PACKAGE)}}, /* Variable-length (Refs) */
933                     PACKAGE_INFO (ACPI_PTYPE1_VAR, ACPI_RTYPE_REFERENCE, 0,0,0,0),
934 
935     {{"_PSR",   METHOD_0ARGS,
936                 METHOD_RETURNS (ACPI_RTYPE_INTEGER)}},
937 
938     {{"_PSS",   METHOD_0ARGS,
939                 METHOD_RETURNS (ACPI_RTYPE_PACKAGE)}}, /* Variable-length (Pkgs) each (6 Int) */
940                     PACKAGE_INFO (ACPI_PTYPE2, ACPI_RTYPE_INTEGER, 6,0,0,0),
941 
942     {{"_PSV",   METHOD_0ARGS,
943                 METHOD_RETURNS (ACPI_RTYPE_INTEGER)}},
944 
945     {{"_PSW",   METHOD_1ARGS (ACPI_TYPE_INTEGER),
946                 METHOD_NO_RETURN_VALUE}},
947 
948     {{"_PTC",   METHOD_0ARGS,
949                 METHOD_RETURNS (ACPI_RTYPE_PACKAGE)}}, /* Fixed-length (2 Buf) */
950                     PACKAGE_INFO (ACPI_PTYPE1_FIXED, ACPI_RTYPE_BUFFER, 2,0,0,0),
951 
952     {{"_PTP",   METHOD_2ARGS (ACPI_TYPE_INTEGER, ACPI_TYPE_INTEGER),
953                 METHOD_RETURNS (ACPI_RTYPE_INTEGER)}},
954 
955     {{"_PTS",   METHOD_1ARGS (ACPI_TYPE_INTEGER),
956                 METHOD_NO_RETURN_VALUE}},
957 
958     {{"_PUR",   METHOD_0ARGS,
959                 METHOD_RETURNS (ACPI_RTYPE_PACKAGE)}}, /* Fixed-length (2 Int) */
960                     PACKAGE_INFO (ACPI_PTYPE1_FIXED, ACPI_RTYPE_INTEGER, 2,0,0,0),
961 
962     {{"_PXM",   METHOD_0ARGS,
963                 METHOD_RETURNS (ACPI_RTYPE_INTEGER)}},
964 
965     {{"_RDI",   METHOD_0ARGS,                          /* ACPI 6.0 */
966                 METHOD_RETURNS (ACPI_RTYPE_PACKAGE)}}, /* Variable-length (1 Int, n Pkg (m Ref)) */
967                     PACKAGE_INFO (ACPI_PTYPE2_VAR_VAR, ACPI_RTYPE_INTEGER, 1,
968                     ACPI_RTYPE_REFERENCE,0,0),
969 
970     {{"_REG",   METHOD_2ARGS (ACPI_TYPE_INTEGER, ACPI_TYPE_INTEGER),
971                 METHOD_NO_RETURN_VALUE}},
972 
973     {{"_REV",   METHOD_0ARGS,
974                 METHOD_RETURNS (ACPI_RTYPE_INTEGER)}},
975 
976     {{"_RMV",   METHOD_0ARGS,
977                 METHOD_RETURNS (ACPI_RTYPE_INTEGER)}},
978 
979     {{"_ROM",   METHOD_2ARGS (ACPI_TYPE_INTEGER, ACPI_TYPE_INTEGER),
980                 METHOD_RETURNS (ACPI_RTYPE_BUFFER)}},
981 
982     {{"_RST",   METHOD_0ARGS,                          /* ACPI 6.0 */
983                 METHOD_NO_RETURN_VALUE}},
984 
985     {{"_RTV",   METHOD_0ARGS,
986                 METHOD_RETURNS (ACPI_RTYPE_INTEGER)}},
987 
988     /*
989      * For _S0_ through _S5_, the ACPI spec defines a return Package
990      * containing 1 Integer, but most DSDTs have it wrong - 2,3, or 4 integers.
991      * Allow this by making the objects "Variable-length length", but all elements
992      * must be Integers.
993      */
994     {{"_S0_",   METHOD_0ARGS,
995                 METHOD_RETURNS (ACPI_RTYPE_PACKAGE)}}, /* Fixed-length (1 Int) */
996                     PACKAGE_INFO (ACPI_PTYPE1_VAR, ACPI_RTYPE_INTEGER, 1,0,0,0),
997 
998     {{"_S1_",   METHOD_0ARGS,
999                 METHOD_RETURNS (ACPI_RTYPE_PACKAGE)}}, /* Fixed-length (1 Int) */
1000                     PACKAGE_INFO (ACPI_PTYPE1_VAR, ACPI_RTYPE_INTEGER, 1,0,0,0),
1001 
1002     {{"_S2_",   METHOD_0ARGS,
1003                 METHOD_RETURNS (ACPI_RTYPE_PACKAGE)}}, /* Fixed-length (1 Int) */
1004                     PACKAGE_INFO (ACPI_PTYPE1_VAR, ACPI_RTYPE_INTEGER, 1,0,0,0),
1005 
1006     {{"_S3_",   METHOD_0ARGS,
1007                 METHOD_RETURNS (ACPI_RTYPE_PACKAGE)}}, /* Fixed-length (1 Int) */
1008                     PACKAGE_INFO (ACPI_PTYPE1_VAR, ACPI_RTYPE_INTEGER, 1,0,0,0),
1009 
1010     {{"_S4_",   METHOD_0ARGS,
1011                 METHOD_RETURNS (ACPI_RTYPE_PACKAGE)}}, /* Fixed-length (1 Int) */
1012                     PACKAGE_INFO (ACPI_PTYPE1_VAR, ACPI_RTYPE_INTEGER, 1,0,0,0),
1013 
1014     {{"_S5_",   METHOD_0ARGS,
1015                 METHOD_RETURNS (ACPI_RTYPE_PACKAGE)}}, /* Fixed-length (1 Int) */
1016                     PACKAGE_INFO (ACPI_PTYPE1_VAR, ACPI_RTYPE_INTEGER, 1,0,0,0),
1017 
1018     {{"_S1D",   METHOD_0ARGS,
1019                 METHOD_RETURNS (ACPI_RTYPE_INTEGER)}},
1020 
1021     {{"_S2D",   METHOD_0ARGS,
1022                 METHOD_RETURNS (ACPI_RTYPE_INTEGER)}},
1023 
1024     {{"_S3D",   METHOD_0ARGS,
1025                 METHOD_RETURNS (ACPI_RTYPE_INTEGER)}},
1026 
1027     {{"_S4D",   METHOD_0ARGS,
1028                 METHOD_RETURNS (ACPI_RTYPE_INTEGER)}},
1029 
1030     {{"_S0W",   METHOD_0ARGS,
1031                 METHOD_RETURNS (ACPI_RTYPE_INTEGER)}},
1032 
1033     {{"_S1W",   METHOD_0ARGS,
1034                 METHOD_RETURNS (ACPI_RTYPE_INTEGER)}},
1035 
1036     {{"_S2W",   METHOD_0ARGS,
1037                 METHOD_RETURNS (ACPI_RTYPE_INTEGER)}},
1038 
1039     {{"_S3W",   METHOD_0ARGS,
1040                 METHOD_RETURNS (ACPI_RTYPE_INTEGER)}},
1041 
1042     {{"_S4W",   METHOD_0ARGS,
1043                 METHOD_RETURNS (ACPI_RTYPE_INTEGER)}},
1044 
1045     {{"_SBA",   METHOD_0ARGS,
1046                 METHOD_RETURNS (ACPI_RTYPE_PACKAGE)}}, /* Fixed-length (4 Int) */
1047                     PACKAGE_INFO (ACPI_PTYPE1_FIXED, ACPI_RTYPE_INTEGER, 4,0,0,0),
1048 
1049     {{"_SBI",   METHOD_0ARGS,
1050                 METHOD_RETURNS (ACPI_RTYPE_PACKAGE)}}, /* Fixed-length (1 Int, 1 Buf) */
1051                     PACKAGE_INFO (ACPI_PTYPE1_FIXED, ACPI_RTYPE_INTEGER, 1, ACPI_RTYPE_BUFFER,1,0),
1052 
1053     {{"_SBR",   METHOD_3ARGS (ACPI_TYPE_INTEGER, ACPI_TYPE_INTEGER, ACPI_TYPE_INTEGER),
1054                 METHOD_RETURNS (ACPI_RTYPE_PACKAGE)}}, /* Fixed-length (2 Int) */
1055                     PACKAGE_INFO (ACPI_PTYPE1_FIXED, ACPI_RTYPE_INTEGER, 2, ACPI_RTYPE_BUFFER | ACPI_RTYPE_INTEGER, 1,0),
1056 
1057     {{"_SBS",   METHOD_0ARGS,
1058                 METHOD_RETURNS (ACPI_RTYPE_INTEGER)}},
1059 
1060     {{"_SBT",   METHOD_4ARGS (ACPI_TYPE_INTEGER, ACPI_TYPE_INTEGER, ACPI_TYPE_INTEGER, ACPI_TYPE_ANY),
1061                 METHOD_RETURNS (ACPI_RTYPE_PACKAGE)}}, /* Fixed-length (2 Int, 1 Buf | Int) */
1062                     PACKAGE_INFO (ACPI_PTYPE1_FIXED, ACPI_RTYPE_INTEGER, 2, ACPI_RTYPE_BUFFER | ACPI_RTYPE_INTEGER, 1,0),
1063 
1064     {{"_SBW",   METHOD_5ARGS (ACPI_TYPE_INTEGER, ACPI_TYPE_INTEGER, ACPI_TYPE_INTEGER, ACPI_TYPE_INTEGER, ACPI_TYPE_ANY),
1065                 METHOD_RETURNS (ACPI_RTYPE_PACKAGE)}},
1066                     PACKAGE_INFO (ACPI_PTYPE1_FIXED, ACPI_RTYPE_BUFFER | ACPI_RTYPE_INTEGER, 1, 0,0,0),
1067 
1068     {{"_SCP",   METHOD_1ARGS (ACPI_TYPE_INTEGER) | ARG_COUNT_IS_MINIMUM,
1069                 METHOD_NO_RETURN_VALUE}},   /* Acpi 1.0 allowed 1 integer arg. Acpi 3.0 expanded to 3 args. Allow both. */
1070 
1071     {{"_SDD",   METHOD_1ARGS (ACPI_TYPE_BUFFER),
1072                 METHOD_NO_RETURN_VALUE}},
1073 
1074     {{"_SEG",   METHOD_0ARGS,
1075                 METHOD_RETURNS (ACPI_RTYPE_INTEGER)}},
1076 
1077     {{"_SHL",   METHOD_1ARGS (ACPI_TYPE_INTEGER),
1078                 METHOD_RETURNS (ACPI_RTYPE_INTEGER)}},
1079 
1080     {{"_SLI",   METHOD_0ARGS,
1081                 METHOD_RETURNS (ACPI_RTYPE_BUFFER)}},
1082 
1083     {{"_SPD",   METHOD_1ARGS (ACPI_TYPE_INTEGER),
1084                 METHOD_RETURNS (ACPI_RTYPE_INTEGER)}},
1085 
1086     {{"_SRS",   METHOD_1ARGS (ACPI_TYPE_BUFFER),
1087                 METHOD_NO_RETURN_VALUE}},
1088 
1089     {{"_SRT",   METHOD_1ARGS (ACPI_TYPE_BUFFER),
1090                 METHOD_RETURNS (ACPI_RTYPE_INTEGER)}},
1091 
1092     {{"_SRV",   METHOD_0ARGS,
1093                 METHOD_RETURNS (ACPI_RTYPE_INTEGER)}}, /* See IPMI spec */
1094 
1095     {{"_SST",   METHOD_1ARGS (ACPI_TYPE_INTEGER),
1096                 METHOD_NO_RETURN_VALUE}},
1097 
1098     {{"_STA",   METHOD_0ARGS,
1099                 METHOD_RETURNS (ACPI_RTYPE_INTEGER)}},
1100 
1101     {{"_STM",   METHOD_3ARGS (ACPI_TYPE_BUFFER, ACPI_TYPE_BUFFER, ACPI_TYPE_BUFFER),
1102                 METHOD_NO_RETURN_VALUE}},
1103 
1104     {{"_STP",   METHOD_2ARGS (ACPI_TYPE_INTEGER, ACPI_TYPE_INTEGER),
1105                 METHOD_RETURNS (ACPI_RTYPE_INTEGER)}},
1106 
1107     {{"_STR",   METHOD_0ARGS,
1108                 METHOD_RETURNS (ACPI_RTYPE_BUFFER)}},
1109 
1110     {{"_STV",   METHOD_2ARGS (ACPI_TYPE_INTEGER, ACPI_TYPE_INTEGER),
1111                 METHOD_RETURNS (ACPI_RTYPE_INTEGER)}},
1112 
1113     {{"_SUB",   METHOD_0ARGS,
1114                 METHOD_RETURNS (ACPI_RTYPE_STRING)}},
1115 
1116     {{"_SUN",   METHOD_0ARGS,
1117                 METHOD_RETURNS (ACPI_RTYPE_INTEGER)}},
1118 
1119     {{"_SWS",   METHOD_0ARGS,
1120                 METHOD_RETURNS (ACPI_RTYPE_INTEGER)}},
1121 
1122     {{"_TC1",   METHOD_0ARGS,
1123                 METHOD_RETURNS (ACPI_RTYPE_INTEGER)}},
1124 
1125     {{"_TC2",   METHOD_0ARGS,
1126                 METHOD_RETURNS (ACPI_RTYPE_INTEGER)}},
1127 
1128     {{"_TDL",   METHOD_0ARGS,
1129                 METHOD_RETURNS (ACPI_RTYPE_INTEGER)}},
1130 
1131     {{"_TFP",   METHOD_0ARGS,                          /* ACPI 6.0 */
1132                 METHOD_RETURNS (ACPI_RTYPE_INTEGER)}},
1133 
1134     {{"_TIP",   METHOD_1ARGS (ACPI_TYPE_INTEGER),
1135                 METHOD_RETURNS (ACPI_RTYPE_INTEGER)}},
1136 
1137     {{"_TIV",   METHOD_1ARGS (ACPI_TYPE_INTEGER),
1138                 METHOD_RETURNS (ACPI_RTYPE_INTEGER)}},
1139 
1140     {{"_TMP",   METHOD_0ARGS,
1141                 METHOD_RETURNS (ACPI_RTYPE_INTEGER)}},
1142 
1143     {{"_TPC",   METHOD_0ARGS,
1144                 METHOD_RETURNS (ACPI_RTYPE_INTEGER)}},
1145 
1146     {{"_TPT",   METHOD_1ARGS (ACPI_TYPE_INTEGER),
1147                 METHOD_NO_RETURN_VALUE}},
1148 
1149     {{"_TRT",   METHOD_0ARGS,
1150                 METHOD_RETURNS (ACPI_RTYPE_PACKAGE)}}, /* Variable-length (Pkgs) each 2 Ref/6 Int */
1151                     PACKAGE_INFO (ACPI_PTYPE2, ACPI_RTYPE_REFERENCE, 2, ACPI_RTYPE_INTEGER, 6, 0),
1152 
1153     {{"_TSD",   METHOD_0ARGS,
1154                 METHOD_RETURNS (ACPI_RTYPE_PACKAGE)}}, /* Variable-length (Pkgs) each 5 Int with count */
1155                     PACKAGE_INFO (ACPI_PTYPE2_COUNT,ACPI_RTYPE_INTEGER, 5,0,0,0),
1156 
1157     {{"_TSN",   METHOD_0ARGS,                          /* ACPI 6.0 */
1158                 METHOD_RETURNS (ACPI_RTYPE_REFERENCE)}},
1159 
1160     {{"_TSP",   METHOD_0ARGS,
1161                 METHOD_RETURNS (ACPI_RTYPE_INTEGER)}},
1162 
1163     {{"_TSS",   METHOD_0ARGS,
1164                 METHOD_RETURNS (ACPI_RTYPE_PACKAGE)}}, /* Variable-length (Pkgs) each 5 Int */
1165                     PACKAGE_INFO (ACPI_PTYPE2, ACPI_RTYPE_INTEGER, 5,0,0,0),
1166 
1167     {{"_TST",   METHOD_0ARGS,
1168                 METHOD_RETURNS (ACPI_RTYPE_INTEGER)}},
1169 
1170     {{"_TTS",   METHOD_1ARGS (ACPI_TYPE_INTEGER),
1171                 METHOD_NO_RETURN_VALUE}},
1172 
1173     {{"_TZD",   METHOD_0ARGS,
1174                 METHOD_RETURNS (ACPI_RTYPE_PACKAGE)}}, /* Variable-length (Refs) */
1175                     PACKAGE_INFO (ACPI_PTYPE1_VAR, ACPI_RTYPE_REFERENCE, 0,0,0,0),
1176 
1177     {{"_TZM",   METHOD_0ARGS,
1178                 METHOD_RETURNS (ACPI_RTYPE_REFERENCE)}},
1179 
1180     {{"_TZP",   METHOD_0ARGS,
1181                 METHOD_RETURNS (ACPI_RTYPE_INTEGER)}},
1182 
1183     {{"_UID",   METHOD_0ARGS,
1184                 METHOD_RETURNS (ACPI_RTYPE_INTEGER | ACPI_RTYPE_STRING)}},
1185 
1186     {{"_UPC",   METHOD_0ARGS,
1187                 METHOD_RETURNS (ACPI_RTYPE_PACKAGE)}}, /* Fixed-length (4 Int) */
1188                     PACKAGE_INFO (ACPI_PTYPE1_FIXED, ACPI_RTYPE_INTEGER, 4,0,0,0),
1189 
1190     {{"_UPD",   METHOD_0ARGS,
1191                 METHOD_RETURNS (ACPI_RTYPE_INTEGER)}},
1192 
1193     {{"_UPP",   METHOD_0ARGS,
1194                 METHOD_RETURNS (ACPI_RTYPE_INTEGER)}},
1195 
1196     {{"_VPO",   METHOD_0ARGS,
1197                 METHOD_RETURNS (ACPI_RTYPE_INTEGER)}},
1198 
1199     /* Acpi 1.0 defined _WAK with no return value. Later, it was changed to return a package */
1200 
1201     {{"_WAK",   METHOD_1ARGS (ACPI_TYPE_INTEGER),
1202                 METHOD_RETURNS (ACPI_RTYPE_NONE | ACPI_RTYPE_INTEGER | ACPI_RTYPE_PACKAGE)}},
1203                     PACKAGE_INFO (ACPI_PTYPE1_FIXED, ACPI_RTYPE_INTEGER, 2,0,0,0), /* Fixed-length (2 Int), but is optional */
1204 
1205     /* _WDG/_WED are MS extensions defined by "Windows Instrumentation" */
1206 
1207     {{"_WDG",   METHOD_0ARGS,
1208                 METHOD_RETURNS (ACPI_RTYPE_BUFFER)}},
1209 
1210     {{"_WED",   METHOD_1ARGS (ACPI_TYPE_INTEGER),
1211                 METHOD_RETURNS (ACPI_RTYPE_INTEGER | ACPI_RTYPE_STRING | ACPI_RTYPE_BUFFER)}},
1212 
1213     {{"_WPC",   METHOD_0ARGS,
1214                 METHOD_RETURNS (ACPI_RTYPE_INTEGER)}},  /* ACPI 6.1 */
1215 
1216     {{"_WPP",   METHOD_0ARGS,
1217                 METHOD_RETURNS (ACPI_RTYPE_INTEGER)}},  /* ACPI 6.1 */
1218 
1219     PACKAGE_INFO (0,0,0,0,0,0) /* Table terminator */
1220 };
1221 #else
1222 extern const ACPI_PREDEFINED_INFO       AcpiGbl_PredefinedMethods[];
1223 #endif
1224 
1225 
1226 #if (defined ACPI_CREATE_RESOURCE_TABLE && defined ACPI_APPLICATION)
1227 /******************************************************************************
1228  *
1229  * Predefined names for use in Resource Descriptors. These names do not
1230  * appear in the global Predefined Name table (since these names never
1231  * appear in actual AML byte code, only in the original ASL)
1232  *
1233  * Note: Used by iASL compiler and AcpiHelp utility only.
1234  *
1235  *****************************************************************************/
1236 
1237 const ACPI_PREDEFINED_INFO      AcpiGbl_ResourceNames[] =
1238 {
1239     {{"_ADR",   WIDTH_16 | WIDTH_64,            0}},
1240     {{"_ALN",   WIDTH_8 | WIDTH_16 | WIDTH_32,  0}},
1241     {{"_ASI",   WIDTH_8,                        0}},
1242     {{"_ASZ",   WIDTH_8,                        0}},
1243     {{"_ATT",   WIDTH_64,                       0}},
1244     {{"_BAS",   WIDTH_16 | WIDTH_32,            0}},
1245     {{"_BM_",   WIDTH_1,                        0}},
1246     {{"_DBT",   WIDTH_16,                       0}},  /* Acpi 5.0 */
1247     {{"_DEC",   WIDTH_1,                        0}},
1248     {{"_DMA",   WIDTH_8,                        0}},
1249     {{"_DPL",   WIDTH_1,                        0}},  /* Acpi 5.0 */
1250     {{"_DRS",   WIDTH_16,                       0}},  /* Acpi 5.0 */
1251     {{"_END",   WIDTH_1,                        0}},  /* Acpi 5.0 */
1252     {{"_FLC",   WIDTH_2,                        0}},  /* Acpi 5.0 */
1253     {{"_GRA",   WIDTH_ADDRESS,                  0}},
1254     {{"_HE_",   WIDTH_1,                        0}},
1255     {{"_INT",   WIDTH_16 | WIDTH_32,            0}},
1256     {{"_IOR",   WIDTH_2,                        0}},  /* Acpi 5.0 */
1257     {{"_LEN",   WIDTH_8 | WIDTH_ADDRESS,        0}},
1258     {{"_LIN",   WIDTH_8,                        0}},  /* Acpi 5.0 */
1259     {{"_LL_",   WIDTH_1,                        0}},
1260     {{"_MAF",   WIDTH_1,                        0}},
1261     {{"_MAX",   WIDTH_ADDRESS,                  0}},
1262     {{"_MEM",   WIDTH_2,                        0}},
1263     {{"_MIF",   WIDTH_1,                        0}},
1264     {{"_MIN",   WIDTH_ADDRESS,                  0}},
1265     {{"_MOD",   WIDTH_1,                        0}},  /* Acpi 5.0 */
1266     {{"_MTP",   WIDTH_2,                        0}},
1267     {{"_PAR",   WIDTH_8,                        0}},  /* Acpi 5.0 */
1268     {{"_PHA",   WIDTH_1,                        0}},  /* Acpi 5.0 */
1269     {{"_PIN",   WIDTH_16,                       0}},  /* Acpi 5.0 */
1270     {{"_PPI",   WIDTH_8,                        0}},  /* Acpi 5.0 */
1271     {{"_POL",   WIDTH_1 | WIDTH_2,              0}},  /* Acpi 5.0 */
1272     {{"_RBO",   WIDTH_8,                        0}},
1273     {{"_RBW",   WIDTH_8,                        0}},
1274     {{"_RNG",   WIDTH_1,                        0}},
1275     {{"_RT_",   WIDTH_8,                        0}},  /* Acpi 3.0 */
1276     {{"_RW_",   WIDTH_1,                        0}},
1277     {{"_RXL",   WIDTH_16,                       0}},  /* Acpi 5.0 */
1278     {{"_SHR",   WIDTH_2,                        0}},
1279     {{"_SIZ",   WIDTH_2,                        0}},
1280     {{"_SLV",   WIDTH_1,                        0}},  /* Acpi 5.0 */
1281     {{"_SPE",   WIDTH_32,                       0}},  /* Acpi 5.0 */
1282     {{"_STB",   WIDTH_2,                        0}},  /* Acpi 5.0 */
1283     {{"_TRA",   WIDTH_ADDRESS,                  0}},
1284     {{"_TRS",   WIDTH_1,                        0}},
1285     {{"_TSF",   WIDTH_8,                        0}},  /* Acpi 3.0 */
1286     {{"_TTP",   WIDTH_1,                        0}},
1287     {{"_TXL",   WIDTH_16,                       0}},  /* Acpi 5.0 */
1288     {{"_TYP",   WIDTH_2 | WIDTH_16,             0}},
1289     {{"_VEN",   VARIABLE_DATA,                  0}},  /* Acpi 5.0 */
1290     PACKAGE_INFO (0,0,0,0,0,0) /* Table terminator */
1291 };
1292 
1293 const ACPI_PREDEFINED_INFO              AcpiGbl_ScopeNames[] = {
1294     {{"_GPE",     0,      0}},
1295     {{"_PR_",     0,      0}},
1296     {{"_SB_",     0,      0}},
1297     {{"_SI_",     0,      0}},
1298     {{"_TZ_",     0,      0}},
1299     PACKAGE_INFO (0,0,0,0,0,0) /* Table terminator */
1300 };
1301 #else
1302 extern const ACPI_PREDEFINED_INFO       AcpiGbl_ResourceNames[];
1303 #endif
1304 
1305 #endif
1306