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