blob: f600aded7261cde6762b3fee5d9b9a6a790664b8 [file] [log] [blame]
Bob Mooree8707b32008-09-28 15:26:17 +08001/******************************************************************************
2 *
3 * Name: acpredef - Information table for ACPI predefined methods and objects
Bob Mooree8707b32008-09-28 15:26:17 +08004 *
5 *****************************************************************************/
6
7/*
Bob Moore25f044e2013-01-25 05:38:56 +00008 * Copyright (C) 2000 - 2013, Intel Corp.
Bob Mooree8707b32008-09-28 15:26:17 +08009 * All rights reserved.
10 *
11 * Redistribution and use in source and binary forms, with or without
12 * modification, are permitted provided that the following conditions
13 * are met:
14 * 1. Redistributions of source code must retain the above copyright
15 * notice, this list of conditions, and the following disclaimer,
16 * without modification.
17 * 2. Redistributions in binary form must reproduce at minimum a disclaimer
18 * substantially similar to the "NO WARRANTY" disclaimer below
19 * ("Disclaimer") and any redistribution must be conditioned upon
20 * including a substantially similar Disclaimer requirement for further
21 * binary redistribution.
22 * 3. Neither the names of the above-listed copyright holders nor the names
23 * of any contributors may be used to endorse or promote products derived
24 * from this software without specific prior written permission.
25 *
26 * Alternatively, this software may be distributed under the terms of the
27 * GNU General Public License ("GPL") version 2 as published by the Free
28 * Software Foundation.
29 *
30 * NO WARRANTY
31 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
32 * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
33 * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR
34 * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
35 * HOLDERS OR CONTRIBUTORS BE LIABLE FOR SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
36 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
37 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
38 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
39 * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING
40 * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
41 * POSSIBILITY OF SUCH DAMAGES.
42 */
43
44#ifndef __ACPREDEF_H__
45#define __ACPREDEF_H__
46
47/******************************************************************************
48 *
49 * Return Package types
50 *
51 * 1) PTYPE1 packages do not contain sub-packages.
52 *
Lv Zheng75c80442012-12-19 05:36:49 +000053 * ACPI_PTYPE1_FIXED: Fixed-length length, 1 or 2 object types:
Bob Moored3319d172009-02-18 14:07:58 +080054 * object type
55 * count
56 * object type
57 * count
Bob Mooree8707b32008-09-28 15:26:17 +080058 *
Bob Moorec34c82b2013-04-12 00:24:22 +000059 * ACPI_PTYPE1_VAR: Variable-length length. Zero-length package is allowed:
Bob Moored3319d172009-02-18 14:07:58 +080060 * object type (Int/Buf/Ref)
Bob Mooree8707b32008-09-28 15:26:17 +080061 *
Bob Moored3319d172009-02-18 14:07:58 +080062 * ACPI_PTYPE1_OPTION: Package has some required and some optional elements
63 * (Used for _PRW)
Bob Mooree8707b32008-09-28 15:26:17 +080064 *
65 *
Bob Moore999e08f2009-08-13 14:30:16 +080066 * 2) PTYPE2 packages contain a Variable-length number of sub-packages. Each
67 * of the different types describe the contents of each of the sub-packages.
Bob Mooree8707b32008-09-28 15:26:17 +080068 *
Bob Moorec34c82b2013-04-12 00:24:22 +000069 * ACPI_PTYPE2: Each subpackage contains 1 or 2 object types. Zero-length
70 * parent package is allowed:
Bob Moored3319d172009-02-18 14:07:58 +080071 * object type
72 * count
73 * object type
74 * count
75 * (Used for _ALR,_MLS,_PSS,_TRT,_TSS)
Bob Mooree8707b32008-09-28 15:26:17 +080076 *
Bob Moorec34c82b2013-04-12 00:24:22 +000077 * ACPI_PTYPE2_COUNT: Each subpackage has a count as first element.
78 * Zero-length parent package is allowed:
Bob Moored3319d172009-02-18 14:07:58 +080079 * object type
80 * (Used for _CSD,_PSD,_TSD)
Bob Mooree8707b32008-09-28 15:26:17 +080081 *
82 * ACPI_PTYPE2_PKG_COUNT: Count of subpackages at start, 1 or 2 object types:
Bob Moored3319d172009-02-18 14:07:58 +080083 * object type
84 * count
85 * object type
86 * count
87 * (Used for _CST)
Bob Mooree8707b32008-09-28 15:26:17 +080088 *
Bob Moorec34c82b2013-04-12 00:24:22 +000089 * ACPI_PTYPE2_FIXED: Each subpackage is of Fixed-length. Zero-length
90 * parent package is allowed.
Bob Moored3319d172009-02-18 14:07:58 +080091 * (Used for _PRT)
Bob Mooree8707b32008-09-28 15:26:17 +080092 *
Bob Moorec34c82b2013-04-12 00:24:22 +000093 * ACPI_PTYPE2_MIN: Each subpackage has a Variable-length but minimum length.
94 * Zero-length parent package is allowed:
Bob Moored3319d172009-02-18 14:07:58 +080095 * (Used for _HPX)
Bob Mooree8707b32008-09-28 15:26:17 +080096 *
Bob Moore53e93872009-07-24 11:22:11 +080097 * ACPI_PTYPE2_REV_FIXED: Revision at start, each subpackage is Fixed-length
Bob Moore999e08f2009-08-13 14:30:16 +080098 * (Used for _ART, _FPS)
Bob Moore53e93872009-07-24 11:22:11 +080099 *
Bob Moore7fce7a42011-11-16 14:59:17 +0800100 * ACPI_PTYPE2_FIX_VAR: Each subpackage consists of some fixed-length elements
Bob Moorec34c82b2013-04-12 00:24:22 +0000101 * followed by an optional element. Zero-length parent package is allowed.
Bob Moore7fce7a42011-11-16 14:59:17 +0800102 * object type
103 * count
104 * object type
105 * count = 0 (optional)
106 * (Used for _DLM)
107 *
Bob Mooree8707b32008-09-28 15:26:17 +0800108 *****************************************************************************/
109
110enum acpi_return_package_types {
111 ACPI_PTYPE1_FIXED = 1,
112 ACPI_PTYPE1_VAR = 2,
113 ACPI_PTYPE1_OPTION = 3,
114 ACPI_PTYPE2 = 4,
115 ACPI_PTYPE2_COUNT = 5,
116 ACPI_PTYPE2_PKG_COUNT = 6,
117 ACPI_PTYPE2_FIXED = 7,
Bob Moore53e93872009-07-24 11:22:11 +0800118 ACPI_PTYPE2_MIN = 8,
Bob Moore7fce7a42011-11-16 14:59:17 +0800119 ACPI_PTYPE2_REV_FIXED = 9,
120 ACPI_PTYPE2_FIX_VAR = 10
Bob Mooree8707b32008-09-28 15:26:17 +0800121};
122
Bob Moorec34c82b2013-04-12 00:24:22 +0000123/* Support macros for users of the predefined info table */
124
125#define METHOD_PREDEF_ARGS_MAX 4
126#define METHOD_ARG_BIT_WIDTH 3
127#define METHOD_ARG_MASK 0x0007
128#define ARG_COUNT_IS_MINIMUM 0x8000
129#define METHOD_MAX_ARG_TYPE ACPI_TYPE_PACKAGE
130
Bob Moore29a241c2013-05-30 10:00:01 +0800131#define METHOD_GET_ARG_COUNT(arg_list) ((arg_list) & METHOD_ARG_MASK)
132#define METHOD_GET_NEXT_TYPE(arg_list) (((arg_list) >>= METHOD_ARG_BIT_WIDTH) & METHOD_ARG_MASK)
Bob Moorec34c82b2013-04-12 00:24:22 +0000133
134/* Macros used to build the predefined info table */
135
136#define METHOD_0ARGS 0
137#define METHOD_1ARGS(a1) (1 | (a1 << 3))
138#define METHOD_2ARGS(a1,a2) (2 | (a1 << 3) | (a2 << 6))
139#define METHOD_3ARGS(a1,a2,a3) (3 | (a1 << 3) | (a2 << 6) | (a3 << 9))
140#define METHOD_4ARGS(a1,a2,a3,a4) (4 | (a1 << 3) | (a2 << 6) | (a3 << 9) | (a4 << 12))
141
142#define METHOD_RETURNS(type) (type)
143#define METHOD_NO_RETURN_VALUE 0
144
145#define PACKAGE_INFO(a,b,c,d,e,f) {{{(a),(b),(c),(d)}, ((((u16)(f)) << 8) | (e)), 0}}
146
147/* Support macros for the resource descriptor info table */
148
149#define WIDTH_1 0x0001
150#define WIDTH_2 0x0002
151#define WIDTH_3 0x0004
152#define WIDTH_8 0x0008
153#define WIDTH_16 0x0010
154#define WIDTH_32 0x0020
155#define WIDTH_64 0x0040
156#define VARIABLE_DATA 0x0080
157#define NUM_RESOURCE_WIDTHS 8
158
159#define WIDTH_ADDRESS WIDTH_16 | WIDTH_32 | WIDTH_64
160
Bob Moore999e08f2009-08-13 14:30:16 +0800161#ifdef ACPI_CREATE_PREDEFINED_TABLE
Bob Moorec34c82b2013-04-12 00:24:22 +0000162/******************************************************************************
163 *
Bob Mooree8707b32008-09-28 15:26:17 +0800164 * Predefined method/object information table.
165 *
166 * These are the names that can actually be evaluated via acpi_evaluate_object.
167 * Not present in this table are the following:
168 *
Lv Zheng75c80442012-12-19 05:36:49 +0000169 * 1) Predefined/Reserved names that are never evaluated via
170 * acpi_evaluate_object:
Bob Moorec34c82b2013-04-12 00:24:22 +0000171 * _Lxx and _Exx GPE methods
172 * _Qxx EC methods
173 * _T_x compiler temporary variables
174 * _Wxx wake events
Bob Mooree8707b32008-09-28 15:26:17 +0800175 *
176 * 2) Predefined names that never actually exist within the AML code:
Bob Moorec34c82b2013-04-12 00:24:22 +0000177 * Predefined resource descriptor field names
Bob Mooree8707b32008-09-28 15:26:17 +0800178 *
179 * 3) Predefined names that are implemented within ACPICA:
Bob Moorec34c82b2013-04-12 00:24:22 +0000180 * _OSI
Bob Mooree8707b32008-09-28 15:26:17 +0800181 *
182 * The main entries in the table each contain the following items:
183 *
Bob Mooreba494be2012-07-12 09:40:10 +0800184 * name - The ACPI reserved name
Bob Moorec34c82b2013-04-12 00:24:22 +0000185 * argument_list - Contains (in 16 bits), the number of required
186 * arguments to the method (3 bits), and a 3-bit type
187 * field for each argument (up to 4 arguments). The
188 * METHOD_?ARGS macros generate the correct packed data.
Bob Mooree8707b32008-09-28 15:26:17 +0800189 * expected_btypes - Allowed type(s) for the return value.
190 * 0 means that no return value is expected.
191 *
192 * For methods that return packages, the next entry in the table contains
193 * information about the expected structure of the package. This information
194 * is saved here (rather than in a separate table) in order to minimize the
195 * overall size of the stored data.
Lv Zheng75c80442012-12-19 05:36:49 +0000196 *
197 * Note: The additional braces are intended to promote portability.
Bob Moorec34c82b2013-04-12 00:24:22 +0000198 *
199 * Note2: Table is used by the kernel-resident subsystem, the iASL compiler,
200 * and the acpi_help utility.
201 *
202 * TBD: _PRT - currently ignore reversed entries. Attempt to fix in nsrepair.
203 * Possibly fixing package elements like _BIF, etc.
204 *
205 *****************************************************************************/
Lin Mingd9adc2e2009-07-27 11:31:10 +0800206
Bob Moorec34c82b2013-04-12 00:24:22 +0000207const union acpi_predefined_info acpi_gbl_predefined_methods[] = {
208 {{"_AC0", METHOD_0ARGS,
209 METHOD_RETURNS(ACPI_RTYPE_INTEGER)}},
Lin Mingd9adc2e2009-07-27 11:31:10 +0800210
Bob Moorec34c82b2013-04-12 00:24:22 +0000211 {{"_AC1", METHOD_0ARGS,
212 METHOD_RETURNS(ACPI_RTYPE_INTEGER)}},
Lin Mingd9adc2e2009-07-27 11:31:10 +0800213
Bob Moorec34c82b2013-04-12 00:24:22 +0000214 {{"_AC2", METHOD_0ARGS,
215 METHOD_RETURNS(ACPI_RTYPE_INTEGER)}},
Lin Mingd9adc2e2009-07-27 11:31:10 +0800216
Bob Moorec34c82b2013-04-12 00:24:22 +0000217 {{"_AC3", METHOD_0ARGS,
218 METHOD_RETURNS(ACPI_RTYPE_INTEGER)}},
Lin Mingd9adc2e2009-07-27 11:31:10 +0800219
Bob Moorec34c82b2013-04-12 00:24:22 +0000220 {{"_AC4", METHOD_0ARGS,
221 METHOD_RETURNS(ACPI_RTYPE_INTEGER)}},
Lin Mingd9adc2e2009-07-27 11:31:10 +0800222
Bob Moorec34c82b2013-04-12 00:24:22 +0000223 {{"_AC5", METHOD_0ARGS,
224 METHOD_RETURNS(ACPI_RTYPE_INTEGER)}},
Lin Mingd9adc2e2009-07-27 11:31:10 +0800225
Bob Moorec34c82b2013-04-12 00:24:22 +0000226 {{"_AC6", METHOD_0ARGS,
227 METHOD_RETURNS(ACPI_RTYPE_INTEGER)}},
Lin Mingd9adc2e2009-07-27 11:31:10 +0800228
Bob Moorec34c82b2013-04-12 00:24:22 +0000229 {{"_AC7", METHOD_0ARGS,
230 METHOD_RETURNS(ACPI_RTYPE_INTEGER)}},
Lin Mingd9adc2e2009-07-27 11:31:10 +0800231
Bob Moorec34c82b2013-04-12 00:24:22 +0000232 {{"_AC8", METHOD_0ARGS,
233 METHOD_RETURNS(ACPI_RTYPE_INTEGER)}},
Lin Mingd9adc2e2009-07-27 11:31:10 +0800234
Bob Moorec34c82b2013-04-12 00:24:22 +0000235 {{"_AC9", METHOD_0ARGS,
236 METHOD_RETURNS(ACPI_RTYPE_INTEGER)}},
Lin Mingd9adc2e2009-07-27 11:31:10 +0800237
Bob Moorec34c82b2013-04-12 00:24:22 +0000238 {{"_ADR", METHOD_0ARGS,
239 METHOD_RETURNS(ACPI_RTYPE_INTEGER)}},
Bob Moore999e08f2009-08-13 14:30:16 +0800240
Bob Moorec34c82b2013-04-12 00:24:22 +0000241 {{"_AEI", METHOD_0ARGS,
242 METHOD_RETURNS(ACPI_RTYPE_BUFFER)}},
Lin Mingd9adc2e2009-07-27 11:31:10 +0800243
Bob Moorec34c82b2013-04-12 00:24:22 +0000244 {{"_AL0", METHOD_0ARGS,
245 METHOD_RETURNS(ACPI_RTYPE_PACKAGE)}}, /* Variable-length (Refs) */
246 PACKAGE_INFO(ACPI_PTYPE1_VAR, ACPI_RTYPE_REFERENCE, 0, 0, 0, 0),
Lin Mingd9adc2e2009-07-27 11:31:10 +0800247
Bob Moorec34c82b2013-04-12 00:24:22 +0000248 {{"_AL1", METHOD_0ARGS,
249 METHOD_RETURNS(ACPI_RTYPE_PACKAGE)}}, /* Variable-length (Refs) */
250 PACKAGE_INFO(ACPI_PTYPE1_VAR, ACPI_RTYPE_REFERENCE, 0, 0, 0, 0),
Bob Moore999e08f2009-08-13 14:30:16 +0800251
Bob Moorec34c82b2013-04-12 00:24:22 +0000252 {{"_AL2", METHOD_0ARGS,
253 METHOD_RETURNS(ACPI_RTYPE_PACKAGE)}}, /* Variable-length (Refs) */
254 PACKAGE_INFO(ACPI_PTYPE1_VAR, ACPI_RTYPE_REFERENCE, 0, 0, 0, 0),
Lin Mingd9adc2e2009-07-27 11:31:10 +0800255
Bob Moorec34c82b2013-04-12 00:24:22 +0000256 {{"_AL3", METHOD_0ARGS,
257 METHOD_RETURNS(ACPI_RTYPE_PACKAGE)}}, /* Variable-length (Refs) */
258 PACKAGE_INFO(ACPI_PTYPE1_VAR, ACPI_RTYPE_REFERENCE, 0, 0, 0, 0),
Lin Mingd9adc2e2009-07-27 11:31:10 +0800259
Bob Moorec34c82b2013-04-12 00:24:22 +0000260 {{"_AL4", METHOD_0ARGS,
261 METHOD_RETURNS(ACPI_RTYPE_PACKAGE)}}, /* Variable-length (Refs) */
262 PACKAGE_INFO(ACPI_PTYPE1_VAR, ACPI_RTYPE_REFERENCE, 0, 0, 0, 0),
Lin Mingd9adc2e2009-07-27 11:31:10 +0800263
Bob Moorec34c82b2013-04-12 00:24:22 +0000264 {{"_AL5", METHOD_0ARGS,
265 METHOD_RETURNS(ACPI_RTYPE_PACKAGE)}}, /* Variable-length (Refs) */
266 PACKAGE_INFO(ACPI_PTYPE1_VAR, ACPI_RTYPE_REFERENCE, 0, 0, 0, 0),
Bob Moore7fce7a42011-11-16 14:59:17 +0800267
Bob Moorec34c82b2013-04-12 00:24:22 +0000268 {{"_AL6", METHOD_0ARGS,
269 METHOD_RETURNS(ACPI_RTYPE_PACKAGE)}}, /* Variable-length (Refs) */
270 PACKAGE_INFO(ACPI_PTYPE1_VAR, ACPI_RTYPE_REFERENCE, 0, 0, 0, 0),
Bob Moore7fce7a42011-11-16 14:59:17 +0800271
Bob Moorec34c82b2013-04-12 00:24:22 +0000272 {{"_AL7", METHOD_0ARGS,
273 METHOD_RETURNS(ACPI_RTYPE_PACKAGE)}}, /* Variable-length (Refs) */
274 PACKAGE_INFO(ACPI_PTYPE1_VAR, ACPI_RTYPE_REFERENCE, 0, 0, 0, 0),
Lin Mingd9adc2e2009-07-27 11:31:10 +0800275
Bob Moorec34c82b2013-04-12 00:24:22 +0000276 {{"_AL8", METHOD_0ARGS,
277 METHOD_RETURNS(ACPI_RTYPE_PACKAGE)}}, /* Variable-length (Refs) */
278 PACKAGE_INFO(ACPI_PTYPE1_VAR, ACPI_RTYPE_REFERENCE, 0, 0, 0, 0),
Lin Mingd9adc2e2009-07-27 11:31:10 +0800279
Bob Moorec34c82b2013-04-12 00:24:22 +0000280 {{"_AL9", METHOD_0ARGS,
281 METHOD_RETURNS(ACPI_RTYPE_PACKAGE)}}, /* Variable-length (Refs) */
282 PACKAGE_INFO(ACPI_PTYPE1_VAR, ACPI_RTYPE_REFERENCE, 0, 0, 0, 0),
Bob Moore7fce7a42011-11-16 14:59:17 +0800283
Bob Moorec34c82b2013-04-12 00:24:22 +0000284 {{"_ALC", METHOD_0ARGS,
285 METHOD_RETURNS(ACPI_RTYPE_INTEGER)}},
Bob Moore7fce7a42011-11-16 14:59:17 +0800286
Bob Moorec34c82b2013-04-12 00:24:22 +0000287 {{"_ALI", METHOD_0ARGS,
288 METHOD_RETURNS(ACPI_RTYPE_INTEGER)}},
Bob Moore7fce7a42011-11-16 14:59:17 +0800289
Bob Moorec34c82b2013-04-12 00:24:22 +0000290 {{"_ALP", METHOD_0ARGS,
291 METHOD_RETURNS(ACPI_RTYPE_INTEGER)}},
Lin Mingd9adc2e2009-07-27 11:31:10 +0800292
Bob Moorec34c82b2013-04-12 00:24:22 +0000293 {{"_ALR", METHOD_0ARGS,
294 METHOD_RETURNS(ACPI_RTYPE_PACKAGE)}}, /* Variable-length (Pkgs) each 2 (Ints) */
295 PACKAGE_INFO(ACPI_PTYPE2, ACPI_RTYPE_INTEGER, 2, 0, 0, 0),
Lin Mingd9adc2e2009-07-27 11:31:10 +0800296
Bob Moorec34c82b2013-04-12 00:24:22 +0000297 {{"_ALT", METHOD_0ARGS,
298 METHOD_RETURNS(ACPI_RTYPE_INTEGER)}},
Lin Mingd9adc2e2009-07-27 11:31:10 +0800299
Bob Moorec34c82b2013-04-12 00:24:22 +0000300 {{"_ART", METHOD_0ARGS,
301 METHOD_RETURNS(ACPI_RTYPE_PACKAGE)}}, /* Variable-length (1 Int(rev), n Pkg (2 Ref/11 Int) */
302 PACKAGE_INFO(ACPI_PTYPE2_REV_FIXED, ACPI_RTYPE_REFERENCE, 2,
303 ACPI_RTYPE_INTEGER, 11, 0),
Bob Moore999e08f2009-08-13 14:30:16 +0800304
Bob Moorec34c82b2013-04-12 00:24:22 +0000305 {{"_BBN", METHOD_0ARGS,
306 METHOD_RETURNS(ACPI_RTYPE_INTEGER)}},
Lin Mingd9adc2e2009-07-27 11:31:10 +0800307
Bob Moorec34c82b2013-04-12 00:24:22 +0000308 {{"_BCL", METHOD_0ARGS,
309 METHOD_RETURNS(ACPI_RTYPE_PACKAGE)}}, /* Variable-length (Ints) */
310 PACKAGE_INFO(ACPI_PTYPE1_VAR, ACPI_RTYPE_INTEGER, 0, 0, 0, 0),
Bob Moore999e08f2009-08-13 14:30:16 +0800311
Bob Moorec34c82b2013-04-12 00:24:22 +0000312 {{"_BCM", METHOD_1ARGS(ACPI_TYPE_INTEGER),
313 METHOD_NO_RETURN_VALUE}},
Bob Moore999e08f2009-08-13 14:30:16 +0800314
Bob Moorec34c82b2013-04-12 00:24:22 +0000315 {{"_BCT", METHOD_1ARGS(ACPI_TYPE_INTEGER),
316 METHOD_RETURNS(ACPI_RTYPE_INTEGER)}},
317
318 {{"_BDN", METHOD_0ARGS,
319 METHOD_RETURNS(ACPI_RTYPE_INTEGER)}},
320
321 {{"_BFS", METHOD_1ARGS(ACPI_TYPE_INTEGER),
322 METHOD_NO_RETURN_VALUE}},
323
324 {{"_BIF", METHOD_0ARGS,
325 METHOD_RETURNS(ACPI_RTYPE_PACKAGE)}}, /* Fixed-length (9 Int),(4 Str) */
326 PACKAGE_INFO(ACPI_PTYPE1_FIXED, ACPI_RTYPE_INTEGER, 9,
327 ACPI_RTYPE_STRING, 4, 0),
328
329 {{"_BIX", METHOD_0ARGS,
330 METHOD_RETURNS(ACPI_RTYPE_PACKAGE)}}, /* Fixed-length (16 Int),(4 Str) */
331 PACKAGE_INFO(ACPI_PTYPE1_FIXED, ACPI_RTYPE_INTEGER, 16,
332 ACPI_RTYPE_STRING, 4, 0),
333
334 {{"_BLT",
335 METHOD_3ARGS(ACPI_TYPE_INTEGER, ACPI_TYPE_INTEGER, ACPI_TYPE_INTEGER),
336 METHOD_NO_RETURN_VALUE}},
337
338 {{"_BMA", METHOD_1ARGS(ACPI_TYPE_INTEGER),
339 METHOD_RETURNS(ACPI_RTYPE_INTEGER)}},
340
341 {{"_BMC", METHOD_1ARGS(ACPI_TYPE_INTEGER),
342 METHOD_NO_RETURN_VALUE}},
343
344 {{"_BMD", METHOD_0ARGS,
345 METHOD_RETURNS(ACPI_RTYPE_PACKAGE)}}, /* Fixed-length (5 Int) */
346 PACKAGE_INFO(ACPI_PTYPE1_FIXED, ACPI_RTYPE_INTEGER, 5, 0, 0, 0),
347
348 {{"_BMS", METHOD_1ARGS(ACPI_TYPE_INTEGER),
349 METHOD_RETURNS(ACPI_RTYPE_INTEGER)}},
350
351 {{"_BQC", METHOD_0ARGS,
352 METHOD_RETURNS(ACPI_RTYPE_INTEGER)}},
353
354 {{"_BST", METHOD_0ARGS,
355 METHOD_RETURNS(ACPI_RTYPE_PACKAGE)}}, /* Fixed-length (4 Int) */
356 PACKAGE_INFO(ACPI_PTYPE1_FIXED, ACPI_RTYPE_INTEGER, 4, 0, 0, 0),
357
358 {{"_BTM", METHOD_1ARGS(ACPI_TYPE_INTEGER),
359 METHOD_RETURNS(ACPI_RTYPE_INTEGER)}},
360
361 {{"_BTP", METHOD_1ARGS(ACPI_TYPE_INTEGER),
362 METHOD_NO_RETURN_VALUE}},
363
364 {{"_CBA", METHOD_0ARGS,
365 METHOD_RETURNS(ACPI_RTYPE_INTEGER)}}, /* See PCI firmware spec 3.0 */
366
367 {{"_CDM", METHOD_0ARGS,
368 METHOD_RETURNS(ACPI_RTYPE_INTEGER)}},
369
370 {{"_CID", METHOD_0ARGS,
371 METHOD_RETURNS(ACPI_RTYPE_INTEGER | ACPI_RTYPE_STRING | ACPI_RTYPE_PACKAGE)}}, /* Variable-length (Ints/Strs) */
372 PACKAGE_INFO(ACPI_PTYPE1_VAR, ACPI_RTYPE_INTEGER | ACPI_RTYPE_STRING, 0,
373 0, 0, 0),
374
375 {{"_CLS", METHOD_0ARGS,
376 METHOD_RETURNS(ACPI_RTYPE_PACKAGE)}}, /* Fixed-length (3 Int) */
377 PACKAGE_INFO(ACPI_PTYPE1_FIXED, ACPI_RTYPE_INTEGER, 3, 0, 0, 0),
378
379 {{"_CPC", METHOD_0ARGS,
380 METHOD_RETURNS(ACPI_RTYPE_PACKAGE)}}, /* Variable-length (Ints/Bufs) */
381 PACKAGE_INFO(ACPI_PTYPE1_VAR, ACPI_RTYPE_INTEGER | ACPI_RTYPE_BUFFER, 0,
382 0, 0, 0),
383
384 {{"_CRS", METHOD_0ARGS,
385 METHOD_RETURNS(ACPI_RTYPE_BUFFER)}},
386
387 {{"_CRT", METHOD_0ARGS,
388 METHOD_RETURNS(ACPI_RTYPE_INTEGER)}},
389
390 {{"_CSD", METHOD_0ARGS,
391 METHOD_RETURNS(ACPI_RTYPE_PACKAGE)}}, /* Variable-length (1 Int(n), n-1 Int) */
392 PACKAGE_INFO(ACPI_PTYPE2_COUNT, ACPI_RTYPE_INTEGER, 0, 0, 0, 0),
393
394 {{"_CST", METHOD_0ARGS,
395 METHOD_RETURNS(ACPI_RTYPE_PACKAGE)}}, /* Variable-length (1 Int(n), n Pkg (1 Buf/3 Int) */
396 PACKAGE_INFO(ACPI_PTYPE2_PKG_COUNT, ACPI_RTYPE_BUFFER, 1,
397 ACPI_RTYPE_INTEGER, 3, 0),
398
399 {{"_CWS", METHOD_1ARGS(ACPI_TYPE_INTEGER),
400 METHOD_RETURNS(ACPI_RTYPE_INTEGER)}},
401
402 {{"_DCK", METHOD_1ARGS(ACPI_TYPE_INTEGER),
403 METHOD_RETURNS(ACPI_RTYPE_INTEGER)}},
404
405 {{"_DCS", METHOD_0ARGS,
406 METHOD_RETURNS(ACPI_RTYPE_INTEGER)}},
407
408 {{"_DDC", METHOD_1ARGS(ACPI_TYPE_INTEGER),
409 METHOD_RETURNS(ACPI_RTYPE_INTEGER | ACPI_RTYPE_BUFFER)}},
410
411 {{"_DDN", METHOD_0ARGS,
412 METHOD_RETURNS(ACPI_RTYPE_STRING)}},
413
414 {{"_DEP", METHOD_0ARGS,
415 METHOD_RETURNS(ACPI_RTYPE_PACKAGE)}}, /* Variable-length (Refs) */
416 PACKAGE_INFO(ACPI_PTYPE1_VAR, ACPI_RTYPE_REFERENCE, 0, 0, 0, 0),
417
418 {{"_DGS", METHOD_0ARGS,
419 METHOD_RETURNS(ACPI_RTYPE_INTEGER)}},
420
421 {{"_DIS", METHOD_0ARGS,
422 METHOD_NO_RETURN_VALUE}},
423
424 {{"_DLM", METHOD_0ARGS,
425 METHOD_RETURNS(ACPI_RTYPE_PACKAGE)}}, /* Variable-length (Pkgs) each (1 Ref, 0/1 Optional Buf/Ref) */
426 PACKAGE_INFO(ACPI_PTYPE2_FIX_VAR, ACPI_RTYPE_REFERENCE, 1,
427 ACPI_RTYPE_REFERENCE | ACPI_RTYPE_BUFFER, 0, 0),
428
429 {{"_DMA", METHOD_0ARGS,
430 METHOD_RETURNS(ACPI_RTYPE_BUFFER)}},
431
432 {{"_DOD", METHOD_0ARGS,
433 METHOD_RETURNS(ACPI_RTYPE_PACKAGE)}}, /* Variable-length (Ints) */
434 PACKAGE_INFO(ACPI_PTYPE1_VAR, ACPI_RTYPE_INTEGER, 0, 0, 0, 0),
435
436 {{"_DOS", METHOD_1ARGS(ACPI_TYPE_INTEGER),
437 METHOD_NO_RETURN_VALUE}},
438
439 {{"_DSM",
440 METHOD_4ARGS(ACPI_TYPE_BUFFER, ACPI_TYPE_INTEGER, ACPI_TYPE_INTEGER,
441 ACPI_TYPE_PACKAGE),
442 METHOD_RETURNS(ACPI_RTYPE_ALL)}}, /* Must return a value, but it can be of any type */
443
444 {{"_DSS", METHOD_1ARGS(ACPI_TYPE_INTEGER),
445 METHOD_NO_RETURN_VALUE}},
446
447 {{"_DSW",
448 METHOD_3ARGS(ACPI_TYPE_INTEGER, ACPI_TYPE_INTEGER, ACPI_TYPE_INTEGER),
449 METHOD_NO_RETURN_VALUE}},
450
451 {{"_DTI", METHOD_1ARGS(ACPI_TYPE_INTEGER),
452 METHOD_NO_RETURN_VALUE}},
453
454 {{"_EC_", METHOD_0ARGS,
455 METHOD_RETURNS(ACPI_RTYPE_INTEGER)}},
456
457 {{"_EDL", METHOD_0ARGS,
458 METHOD_RETURNS(ACPI_RTYPE_PACKAGE)}}, /* Variable-length (Refs) */
459 PACKAGE_INFO(ACPI_PTYPE1_VAR, ACPI_RTYPE_REFERENCE, 0, 0, 0, 0),
460
461 {{"_EJ0", METHOD_1ARGS(ACPI_TYPE_INTEGER),
462 METHOD_NO_RETURN_VALUE}},
463
464 {{"_EJ1", METHOD_1ARGS(ACPI_TYPE_INTEGER),
465 METHOD_NO_RETURN_VALUE}},
466
467 {{"_EJ2", METHOD_1ARGS(ACPI_TYPE_INTEGER),
468 METHOD_NO_RETURN_VALUE}},
469
470 {{"_EJ3", METHOD_1ARGS(ACPI_TYPE_INTEGER),
471 METHOD_NO_RETURN_VALUE}},
472
473 {{"_EJ4", METHOD_1ARGS(ACPI_TYPE_INTEGER),
474 METHOD_NO_RETURN_VALUE}},
475
476 {{"_EJD", METHOD_0ARGS,
477 METHOD_RETURNS(ACPI_RTYPE_STRING)}},
478
479 {{"_ERR",
480 METHOD_3ARGS(ACPI_TYPE_INTEGER, ACPI_TYPE_STRING, ACPI_TYPE_INTEGER),
481 METHOD_RETURNS(ACPI_RTYPE_INTEGER)}}, /* Internal use only, used by ACPICA test suites */
482
483 {{"_EVT", METHOD_1ARGS(ACPI_TYPE_INTEGER),
484 METHOD_NO_RETURN_VALUE}},
485
486 {{"_FDE", METHOD_0ARGS,
487 METHOD_RETURNS(ACPI_RTYPE_BUFFER)}},
488
489 {{"_FDI", METHOD_0ARGS,
490 METHOD_RETURNS(ACPI_RTYPE_PACKAGE)}}, /* Fixed-length (16 Int) */
491 PACKAGE_INFO(ACPI_PTYPE1_FIXED, ACPI_RTYPE_INTEGER, 16, 0, 0, 0),
492
493 {{"_FDM", METHOD_1ARGS(ACPI_TYPE_INTEGER),
494 METHOD_NO_RETURN_VALUE}},
495
496 {{"_FIF", METHOD_0ARGS,
497 METHOD_RETURNS(ACPI_RTYPE_PACKAGE)}}, /* Fixed-length (4 Int) */
498 PACKAGE_INFO(ACPI_PTYPE1_FIXED, ACPI_RTYPE_INTEGER, 4, 0, 0, 0),
499
500 {{"_FIX", METHOD_0ARGS,
501 METHOD_RETURNS(ACPI_RTYPE_PACKAGE)}}, /* Variable-length (Ints) */
502 PACKAGE_INFO(ACPI_PTYPE1_VAR, ACPI_RTYPE_INTEGER, 0, 0, 0, 0),
503
504 {{"_FPS", METHOD_0ARGS,
505 METHOD_RETURNS(ACPI_RTYPE_PACKAGE)}}, /* Variable-length (1 Int(rev), n Pkg (5 Int) */
506 PACKAGE_INFO(ACPI_PTYPE2_REV_FIXED, ACPI_RTYPE_INTEGER, 5, 0, 0, 0),
507
508 {{"_FSL", METHOD_1ARGS(ACPI_TYPE_INTEGER),
509 METHOD_NO_RETURN_VALUE}},
510
511 {{"_FST", METHOD_0ARGS,
512 METHOD_RETURNS(ACPI_RTYPE_PACKAGE)}}, /* Fixed-length (3 Int) */
513 PACKAGE_INFO(ACPI_PTYPE1_FIXED, ACPI_RTYPE_INTEGER, 3, 0, 0, 0),
514
515 {{"_GAI", METHOD_0ARGS,
516 METHOD_RETURNS(ACPI_RTYPE_INTEGER)}},
517
518 {{"_GCP", METHOD_0ARGS,
519 METHOD_RETURNS(ACPI_RTYPE_INTEGER)}},
520
521 {{"_GHL", METHOD_0ARGS,
522 METHOD_RETURNS(ACPI_RTYPE_INTEGER)}},
523
524 {{"_GLK", METHOD_0ARGS,
525 METHOD_RETURNS(ACPI_RTYPE_INTEGER)}},
526
527 {{"_GPD", METHOD_0ARGS,
528 METHOD_RETURNS(ACPI_RTYPE_INTEGER)}},
529
530 {{"_GPE", METHOD_0ARGS,
531 METHOD_RETURNS(ACPI_RTYPE_INTEGER)}}, /* _GPE method, not _GPE scope */
532
533 {{"_GRT", METHOD_0ARGS,
534 METHOD_RETURNS(ACPI_RTYPE_BUFFER)}},
535
536 {{"_GSB", METHOD_0ARGS,
537 METHOD_RETURNS(ACPI_RTYPE_INTEGER)}},
538
539 {{"_GTF", METHOD_0ARGS,
540 METHOD_RETURNS(ACPI_RTYPE_BUFFER)}},
541
542 {{"_GTM", METHOD_0ARGS,
543 METHOD_RETURNS(ACPI_RTYPE_BUFFER)}},
544
545 {{"_GTS", METHOD_1ARGS(ACPI_TYPE_INTEGER),
546 METHOD_NO_RETURN_VALUE}},
547
548 {{"_GWS", METHOD_1ARGS(ACPI_TYPE_INTEGER),
549 METHOD_RETURNS(ACPI_RTYPE_INTEGER)}},
550
551 {{"_HID", METHOD_0ARGS,
552 METHOD_RETURNS(ACPI_RTYPE_INTEGER | ACPI_RTYPE_STRING)}},
553
554 {{"_HOT", METHOD_0ARGS,
555 METHOD_RETURNS(ACPI_RTYPE_INTEGER)}},
556
557 {{"_HPP", METHOD_0ARGS,
558 METHOD_RETURNS(ACPI_RTYPE_PACKAGE)}}, /* Fixed-length (4 Int) */
559 PACKAGE_INFO(ACPI_PTYPE1_FIXED, ACPI_RTYPE_INTEGER, 4, 0, 0, 0),
Bob Mooree8707b32008-09-28 15:26:17 +0800560
561 /*
Bob Moorec34c82b2013-04-12 00:24:22 +0000562 * For _HPX, a single package is returned, containing a variable-length number
Lin Mingd9adc2e2009-07-27 11:31:10 +0800563 * of sub-packages. Each sub-package contains a PCI record setting.
564 * There are several different type of record settings, of different
565 * lengths, but all elements of all settings are Integers.
Bob Mooree8707b32008-09-28 15:26:17 +0800566 */
Bob Moorec34c82b2013-04-12 00:24:22 +0000567 {{"_HPX", METHOD_0ARGS,
568 METHOD_RETURNS(ACPI_RTYPE_PACKAGE)}}, /* Variable-length (Pkgs) each (var Ints) */
569 PACKAGE_INFO(ACPI_PTYPE2_MIN, ACPI_RTYPE_INTEGER, 5, 0, 0, 0),
Lin Mingd9adc2e2009-07-27 11:31:10 +0800570
Bob Moorec34c82b2013-04-12 00:24:22 +0000571 {{"_HRV", METHOD_0ARGS,
572 METHOD_RETURNS(ACPI_RTYPE_INTEGER)}},
Bob Moore999e08f2009-08-13 14:30:16 +0800573
Bob Moorec34c82b2013-04-12 00:24:22 +0000574 {{"_IFT", METHOD_0ARGS,
575 METHOD_RETURNS(ACPI_RTYPE_INTEGER)}}, /* See IPMI spec */
Lin Mingd9adc2e2009-07-27 11:31:10 +0800576
Bob Moorec34c82b2013-04-12 00:24:22 +0000577 {{"_INI", METHOD_0ARGS,
578 METHOD_NO_RETURN_VALUE}},
Lin Mingd9adc2e2009-07-27 11:31:10 +0800579
Bob Moorec34c82b2013-04-12 00:24:22 +0000580 {{"_IRC", METHOD_0ARGS,
581 METHOD_NO_RETURN_VALUE}},
Lin Mingd9adc2e2009-07-27 11:31:10 +0800582
Bob Moorec34c82b2013-04-12 00:24:22 +0000583 {{"_LCK", METHOD_1ARGS(ACPI_TYPE_INTEGER),
584 METHOD_NO_RETURN_VALUE}},
Bob Moore999e08f2009-08-13 14:30:16 +0800585
Bob Moorec34c82b2013-04-12 00:24:22 +0000586 {{"_LID", METHOD_0ARGS,
587 METHOD_RETURNS(ACPI_RTYPE_INTEGER)}},
Lin Mingd9adc2e2009-07-27 11:31:10 +0800588
Bob Moorec34c82b2013-04-12 00:24:22 +0000589 {{"_MAT", METHOD_0ARGS,
590 METHOD_RETURNS(ACPI_RTYPE_BUFFER)}},
Bob Moore999e08f2009-08-13 14:30:16 +0800591
Bob Moorec34c82b2013-04-12 00:24:22 +0000592 {{"_MBM", METHOD_0ARGS,
593 METHOD_RETURNS(ACPI_RTYPE_PACKAGE)}}, /* Fixed-length (8 Int) */
594 PACKAGE_INFO(ACPI_PTYPE1_FIXED, ACPI_RTYPE_INTEGER, 8, 0, 0, 0),
Bob Moore999e08f2009-08-13 14:30:16 +0800595
Bob Moorec34c82b2013-04-12 00:24:22 +0000596 {{"_MLS", METHOD_0ARGS,
597 METHOD_RETURNS(ACPI_RTYPE_PACKAGE)}}, /* Variable-length (Pkgs) each (1 Str/1 Buf) */
598 PACKAGE_INFO(ACPI_PTYPE2, ACPI_RTYPE_STRING, 1, ACPI_RTYPE_BUFFER, 1,
599 0),
Lin Mingd9adc2e2009-07-27 11:31:10 +0800600
Bob Moorec34c82b2013-04-12 00:24:22 +0000601 {{"_MSG", METHOD_1ARGS(ACPI_TYPE_INTEGER),
602 METHOD_NO_RETURN_VALUE}},
Lin Mingd9adc2e2009-07-27 11:31:10 +0800603
Bob Moorec34c82b2013-04-12 00:24:22 +0000604 {{"_MSM",
605 METHOD_4ARGS(ACPI_TYPE_INTEGER, ACPI_TYPE_INTEGER, ACPI_TYPE_INTEGER,
606 ACPI_TYPE_INTEGER),
607 METHOD_RETURNS(ACPI_RTYPE_INTEGER)}},
Lin Mingd9adc2e2009-07-27 11:31:10 +0800608
Bob Moorec34c82b2013-04-12 00:24:22 +0000609 {{"_NTT", METHOD_0ARGS,
610 METHOD_RETURNS(ACPI_RTYPE_INTEGER)}},
Bob Moore999e08f2009-08-13 14:30:16 +0800611
Bob Moorec34c82b2013-04-12 00:24:22 +0000612 {{"_OFF", METHOD_0ARGS,
613 METHOD_NO_RETURN_VALUE}},
Bob Moore7fce7a42011-11-16 14:59:17 +0800614
Bob Moorec34c82b2013-04-12 00:24:22 +0000615 {{"_ON_", METHOD_0ARGS,
616 METHOD_NO_RETURN_VALUE}},
Bob Moore999e08f2009-08-13 14:30:16 +0800617
Bob Moorec34c82b2013-04-12 00:24:22 +0000618 {{"_OS_", METHOD_0ARGS,
619 METHOD_RETURNS(ACPI_RTYPE_STRING)}},
620
621 {{"_OSC",
622 METHOD_4ARGS(ACPI_TYPE_BUFFER, ACPI_TYPE_INTEGER, ACPI_TYPE_INTEGER,
623 ACPI_TYPE_BUFFER),
624 METHOD_RETURNS(ACPI_RTYPE_BUFFER)}},
625
626 {{"_OST",
627 METHOD_3ARGS(ACPI_TYPE_INTEGER, ACPI_TYPE_INTEGER, ACPI_TYPE_BUFFER),
628 METHOD_NO_RETURN_VALUE}},
629
630 {{"_PAI", METHOD_1ARGS(ACPI_TYPE_INTEGER),
631 METHOD_RETURNS(ACPI_RTYPE_INTEGER)}},
632
633 {{"_PCL", METHOD_0ARGS,
634 METHOD_RETURNS(ACPI_RTYPE_PACKAGE)}}, /* Variable-length (Refs) */
635 PACKAGE_INFO(ACPI_PTYPE1_VAR, ACPI_RTYPE_REFERENCE, 0, 0, 0, 0),
636
637 {{"_PCT", METHOD_0ARGS,
638 METHOD_RETURNS(ACPI_RTYPE_PACKAGE)}}, /* Fixed-length (2 Buf) */
639 PACKAGE_INFO(ACPI_PTYPE1_FIXED, ACPI_RTYPE_BUFFER, 2, 0, 0, 0),
640
641 {{"_PDC", METHOD_1ARGS(ACPI_TYPE_BUFFER),
642 METHOD_NO_RETURN_VALUE}},
643
644 {{"_PDL", METHOD_0ARGS,
645 METHOD_RETURNS(ACPI_RTYPE_INTEGER)}},
646
647 {{"_PIC", METHOD_1ARGS(ACPI_TYPE_INTEGER),
648 METHOD_NO_RETURN_VALUE}},
649
650 {{"_PIF", METHOD_0ARGS,
651 METHOD_RETURNS(ACPI_RTYPE_PACKAGE)}}, /* Fixed-length (3 Int),(3 Str) */
652 PACKAGE_INFO(ACPI_PTYPE1_FIXED, ACPI_RTYPE_INTEGER, 3,
653 ACPI_RTYPE_STRING, 3, 0),
654
655 {{"_PLD", METHOD_0ARGS,
656 METHOD_RETURNS(ACPI_RTYPE_PACKAGE)}}, /* Variable-length (Bufs) */
657 PACKAGE_INFO(ACPI_PTYPE1_VAR, ACPI_RTYPE_BUFFER, 0, 0, 0, 0),
658
659 {{"_PMC", METHOD_0ARGS,
660 METHOD_RETURNS(ACPI_RTYPE_PACKAGE)}}, /* Fixed-length (11 Int),(3 Str) */
661 PACKAGE_INFO(ACPI_PTYPE1_FIXED, ACPI_RTYPE_INTEGER, 11,
662 ACPI_RTYPE_STRING, 3, 0),
663
664 {{"_PMD", METHOD_0ARGS,
665 METHOD_RETURNS(ACPI_RTYPE_PACKAGE)}}, /* Variable-length (Refs) */
666 PACKAGE_INFO(ACPI_PTYPE1_VAR, ACPI_RTYPE_REFERENCE, 0, 0, 0, 0),
667
668 {{"_PMM", METHOD_0ARGS,
669 METHOD_RETURNS(ACPI_RTYPE_INTEGER)}},
670
671 {{"_PPC", METHOD_0ARGS,
672 METHOD_RETURNS(ACPI_RTYPE_INTEGER)}},
673
674 {{"_PPE", METHOD_0ARGS,
675 METHOD_RETURNS(ACPI_RTYPE_INTEGER)}}, /* See dig64 spec */
676
677 {{"_PR0", METHOD_0ARGS,
678 METHOD_RETURNS(ACPI_RTYPE_PACKAGE)}}, /* Variable-length (Refs) */
679 PACKAGE_INFO(ACPI_PTYPE1_VAR, ACPI_RTYPE_REFERENCE, 0, 0, 0, 0),
680
681 {{"_PR1", METHOD_0ARGS,
682 METHOD_RETURNS(ACPI_RTYPE_PACKAGE)}}, /* Variable-length (Refs) */
683 PACKAGE_INFO(ACPI_PTYPE1_VAR, ACPI_RTYPE_REFERENCE, 0, 0, 0, 0),
684
685 {{"_PR2", METHOD_0ARGS,
686 METHOD_RETURNS(ACPI_RTYPE_PACKAGE)}}, /* Variable-length (Refs) */
687 PACKAGE_INFO(ACPI_PTYPE1_VAR, ACPI_RTYPE_REFERENCE, 0, 0, 0, 0),
688
689 {{"_PR3", METHOD_0ARGS,
690 METHOD_RETURNS(ACPI_RTYPE_PACKAGE)}}, /* Variable-length (Refs) */
691 PACKAGE_INFO(ACPI_PTYPE1_VAR, ACPI_RTYPE_REFERENCE, 0, 0, 0, 0),
692
693 {{"_PRE", METHOD_0ARGS,
694 METHOD_RETURNS(ACPI_RTYPE_PACKAGE)}}, /* Variable-length (Refs) */
695 PACKAGE_INFO(ACPI_PTYPE1_VAR, ACPI_RTYPE_REFERENCE, 0, 0, 0, 0),
696
697 {{"_PRL", METHOD_0ARGS,
698 METHOD_RETURNS(ACPI_RTYPE_PACKAGE)}}, /* Variable-length (Refs) */
699 PACKAGE_INFO(ACPI_PTYPE1_VAR, ACPI_RTYPE_REFERENCE, 0, 0, 0, 0),
700
701 {{"_PRS", METHOD_0ARGS,
702 METHOD_RETURNS(ACPI_RTYPE_BUFFER)}},
Bob Mooree8707b32008-09-28 15:26:17 +0800703
704 /*
Bob Moore999e08f2009-08-13 14:30:16 +0800705 * For _PRT, many BIOSs reverse the 3rd and 4th Package elements (Source
706 * and source_index). This bug is so prevalent that there is code in the
707 * ACPICA Resource Manager to detect this and switch them back. For now,
708 * do not allow and issue a warning. To allow this and eliminate the
709 * warning, add the ACPI_RTYPE_REFERENCE type to the 4th element (index 3)
710 * in the statement below.
Bob Mooree8707b32008-09-28 15:26:17 +0800711 */
Bob Moorec34c82b2013-04-12 00:24:22 +0000712 {{"_PRT", METHOD_0ARGS,
713 METHOD_RETURNS(ACPI_RTYPE_PACKAGE)}}, /* Variable-length (Pkgs) each (4): Int,Int,Int/Ref,Int */
714 PACKAGE_INFO(ACPI_PTYPE2_FIXED, 4, ACPI_RTYPE_INTEGER,
715 ACPI_RTYPE_INTEGER,
716 ACPI_RTYPE_INTEGER | ACPI_RTYPE_REFERENCE,
717 ACPI_RTYPE_INTEGER),
Bob Mooree8707b32008-09-28 15:26:17 +0800718
Bob Moorec34c82b2013-04-12 00:24:22 +0000719 {{"_PRW", METHOD_0ARGS,
720 METHOD_RETURNS(ACPI_RTYPE_PACKAGE)}}, /* Variable-length (Pkgs) each: Pkg/Int,Int,[Variable-length Refs] (Pkg is Ref/Int) */
721 PACKAGE_INFO(ACPI_PTYPE1_OPTION, 2,
722 ACPI_RTYPE_INTEGER | ACPI_RTYPE_PACKAGE,
723 ACPI_RTYPE_INTEGER, ACPI_RTYPE_REFERENCE, 0),
Bob Mooree8707b32008-09-28 15:26:17 +0800724
Bob Moorec34c82b2013-04-12 00:24:22 +0000725 {{"_PS0", METHOD_0ARGS,
726 METHOD_NO_RETURN_VALUE}},
Lin Mingd9adc2e2009-07-27 11:31:10 +0800727
Bob Moorec34c82b2013-04-12 00:24:22 +0000728 {{"_PS1", METHOD_0ARGS,
729 METHOD_NO_RETURN_VALUE}},
Lin Mingd9adc2e2009-07-27 11:31:10 +0800730
Bob Moorec34c82b2013-04-12 00:24:22 +0000731 {{"_PS2", METHOD_0ARGS,
732 METHOD_NO_RETURN_VALUE}},
Lin Mingd9adc2e2009-07-27 11:31:10 +0800733
Bob Moorec34c82b2013-04-12 00:24:22 +0000734 {{"_PS3", METHOD_0ARGS,
735 METHOD_NO_RETURN_VALUE}},
Lin Mingd9adc2e2009-07-27 11:31:10 +0800736
Bob Moorec34c82b2013-04-12 00:24:22 +0000737 {{"_PSC", METHOD_0ARGS,
738 METHOD_RETURNS(ACPI_RTYPE_INTEGER)}},
Bob Moore999e08f2009-08-13 14:30:16 +0800739
Bob Moorec34c82b2013-04-12 00:24:22 +0000740 {{"_PSD", METHOD_0ARGS,
741 METHOD_RETURNS(ACPI_RTYPE_PACKAGE)}}, /* Variable-length (Pkgs) each (5 Int) with count */
742 PACKAGE_INFO(ACPI_PTYPE2_COUNT, ACPI_RTYPE_INTEGER, 0, 0, 0, 0),
743
744 {{"_PSE", METHOD_1ARGS(ACPI_TYPE_INTEGER),
745 METHOD_NO_RETURN_VALUE}},
746
747 {{"_PSL", METHOD_0ARGS,
748 METHOD_RETURNS(ACPI_RTYPE_PACKAGE)}}, /* Variable-length (Refs) */
749 PACKAGE_INFO(ACPI_PTYPE1_VAR, ACPI_RTYPE_REFERENCE, 0, 0, 0, 0),
750
751 {{"_PSR", METHOD_0ARGS,
752 METHOD_RETURNS(ACPI_RTYPE_INTEGER)}},
753
754 {{"_PSS", METHOD_0ARGS,
755 METHOD_RETURNS(ACPI_RTYPE_PACKAGE)}}, /* Variable-length (Pkgs) each (6 Int) */
756 PACKAGE_INFO(ACPI_PTYPE2, ACPI_RTYPE_INTEGER, 6, 0, 0, 0),
757
758 {{"_PSV", METHOD_0ARGS,
759 METHOD_RETURNS(ACPI_RTYPE_INTEGER)}},
760
761 {{"_PSW", METHOD_1ARGS(ACPI_TYPE_INTEGER),
762 METHOD_NO_RETURN_VALUE}},
763
764 {{"_PTC", METHOD_0ARGS,
765 METHOD_RETURNS(ACPI_RTYPE_PACKAGE)}}, /* Fixed-length (2 Buf) */
766 PACKAGE_INFO(ACPI_PTYPE1_FIXED, ACPI_RTYPE_BUFFER, 2, 0, 0, 0),
767
768 {{"_PTP", METHOD_2ARGS(ACPI_TYPE_INTEGER, ACPI_TYPE_INTEGER),
769 METHOD_RETURNS(ACPI_RTYPE_INTEGER)}},
770
771 {{"_PTS", METHOD_1ARGS(ACPI_TYPE_INTEGER),
772 METHOD_NO_RETURN_VALUE}},
773
774 {{"_PUR", METHOD_0ARGS,
775 METHOD_RETURNS(ACPI_RTYPE_PACKAGE)}}, /* Fixed-length (2 Int) */
776 PACKAGE_INFO(ACPI_PTYPE1_FIXED, ACPI_RTYPE_INTEGER, 2, 0, 0, 0),
777
778 {{"_PXM", METHOD_0ARGS,
779 METHOD_RETURNS(ACPI_RTYPE_INTEGER)}},
780
781 {{"_REG", METHOD_2ARGS(ACPI_TYPE_INTEGER, ACPI_TYPE_INTEGER),
782 METHOD_NO_RETURN_VALUE}},
783
784 {{"_REV", METHOD_0ARGS,
785 METHOD_RETURNS(ACPI_RTYPE_INTEGER)}},
786
787 {{"_RMV", METHOD_0ARGS,
788 METHOD_RETURNS(ACPI_RTYPE_INTEGER)}},
789
790 {{"_ROM", METHOD_2ARGS(ACPI_TYPE_INTEGER, ACPI_TYPE_INTEGER),
791 METHOD_RETURNS(ACPI_RTYPE_BUFFER)}},
792
793 {{"_RTV", METHOD_0ARGS,
794 METHOD_RETURNS(ACPI_RTYPE_INTEGER)}},
Bob Mooree8707b32008-09-28 15:26:17 +0800795
796 /*
Lin Mingd9adc2e2009-07-27 11:31:10 +0800797 * For _S0_ through _S5_, the ACPI spec defines a return Package
798 * containing 1 Integer, but most DSDTs have it wrong - 2,3, or 4 integers.
799 * Allow this by making the objects "Variable-length length", but all elements
800 * must be Integers.
Bob Mooree8707b32008-09-28 15:26:17 +0800801 */
Bob Moorec34c82b2013-04-12 00:24:22 +0000802 {{"_S0_", METHOD_0ARGS,
803 METHOD_RETURNS(ACPI_RTYPE_PACKAGE)}}, /* Fixed-length (1 Int) */
804 PACKAGE_INFO(ACPI_PTYPE1_VAR, ACPI_RTYPE_INTEGER, 1, 0, 0, 0),
Bob Mooree8707b32008-09-28 15:26:17 +0800805
Bob Moorec34c82b2013-04-12 00:24:22 +0000806 {{"_S1_", METHOD_0ARGS,
807 METHOD_RETURNS(ACPI_RTYPE_PACKAGE)}}, /* Fixed-length (1 Int) */
808 PACKAGE_INFO(ACPI_PTYPE1_VAR, ACPI_RTYPE_INTEGER, 1, 0, 0, 0),
Lin Mingd9adc2e2009-07-27 11:31:10 +0800809
Bob Moorec34c82b2013-04-12 00:24:22 +0000810 {{"_S2_", METHOD_0ARGS,
811 METHOD_RETURNS(ACPI_RTYPE_PACKAGE)}}, /* Fixed-length (1 Int) */
812 PACKAGE_INFO(ACPI_PTYPE1_VAR, ACPI_RTYPE_INTEGER, 1, 0, 0, 0),
Lin Mingd9adc2e2009-07-27 11:31:10 +0800813
Bob Moorec34c82b2013-04-12 00:24:22 +0000814 {{"_S3_", METHOD_0ARGS,
815 METHOD_RETURNS(ACPI_RTYPE_PACKAGE)}}, /* Fixed-length (1 Int) */
816 PACKAGE_INFO(ACPI_PTYPE1_VAR, ACPI_RTYPE_INTEGER, 1, 0, 0, 0),
Lin Mingd9adc2e2009-07-27 11:31:10 +0800817
Bob Moorec34c82b2013-04-12 00:24:22 +0000818 {{"_S4_", METHOD_0ARGS,
819 METHOD_RETURNS(ACPI_RTYPE_PACKAGE)}}, /* Fixed-length (1 Int) */
820 PACKAGE_INFO(ACPI_PTYPE1_VAR, ACPI_RTYPE_INTEGER, 1, 0, 0, 0),
Lin Mingd9adc2e2009-07-27 11:31:10 +0800821
Bob Moorec34c82b2013-04-12 00:24:22 +0000822 {{"_S5_", METHOD_0ARGS,
823 METHOD_RETURNS(ACPI_RTYPE_PACKAGE)}}, /* Fixed-length (1 Int) */
824 PACKAGE_INFO(ACPI_PTYPE1_VAR, ACPI_RTYPE_INTEGER, 1, 0, 0, 0),
Lin Mingd9adc2e2009-07-27 11:31:10 +0800825
Bob Moorec34c82b2013-04-12 00:24:22 +0000826 {{"_S1D", METHOD_0ARGS,
827 METHOD_RETURNS(ACPI_RTYPE_INTEGER)}},
Lin Mingd9adc2e2009-07-27 11:31:10 +0800828
Bob Moorec34c82b2013-04-12 00:24:22 +0000829 {{"_S2D", METHOD_0ARGS,
830 METHOD_RETURNS(ACPI_RTYPE_INTEGER)}},
Lin Mingd9adc2e2009-07-27 11:31:10 +0800831
Bob Moorec34c82b2013-04-12 00:24:22 +0000832 {{"_S3D", METHOD_0ARGS,
833 METHOD_RETURNS(ACPI_RTYPE_INTEGER)}},
Lin Mingd9adc2e2009-07-27 11:31:10 +0800834
Bob Moorec34c82b2013-04-12 00:24:22 +0000835 {{"_S4D", METHOD_0ARGS,
836 METHOD_RETURNS(ACPI_RTYPE_INTEGER)}},
Lin Mingd9adc2e2009-07-27 11:31:10 +0800837
Bob Moorec34c82b2013-04-12 00:24:22 +0000838 {{"_S0W", METHOD_0ARGS,
839 METHOD_RETURNS(ACPI_RTYPE_INTEGER)}},
Lin Mingd9adc2e2009-07-27 11:31:10 +0800840
Bob Moorec34c82b2013-04-12 00:24:22 +0000841 {{"_S1W", METHOD_0ARGS,
842 METHOD_RETURNS(ACPI_RTYPE_INTEGER)}},
843
844 {{"_S2W", METHOD_0ARGS,
845 METHOD_RETURNS(ACPI_RTYPE_INTEGER)}},
846
847 {{"_S3W", METHOD_0ARGS,
848 METHOD_RETURNS(ACPI_RTYPE_INTEGER)}},
849
850 {{"_S4W", METHOD_0ARGS,
851 METHOD_RETURNS(ACPI_RTYPE_INTEGER)}},
852
853 {{"_SBS", METHOD_0ARGS,
854 METHOD_RETURNS(ACPI_RTYPE_INTEGER)}},
855
856 {{"_SCP", METHOD_1ARGS(ACPI_TYPE_INTEGER) | ARG_COUNT_IS_MINIMUM,
857 METHOD_NO_RETURN_VALUE}}, /* Acpi 1.0 allowed 1 integer arg. Acpi 3.0 expanded to 3 args. Allow both. */
858
859 {{"_SDD", METHOD_1ARGS(ACPI_TYPE_BUFFER),
860 METHOD_NO_RETURN_VALUE}},
861
862 {{"_SEG", METHOD_0ARGS,
863 METHOD_RETURNS(ACPI_RTYPE_INTEGER)}},
864
865 {{"_SHL", METHOD_1ARGS(ACPI_TYPE_INTEGER),
866 METHOD_RETURNS(ACPI_RTYPE_INTEGER)}},
867
868 {{"_SLI", METHOD_0ARGS,
869 METHOD_RETURNS(ACPI_RTYPE_BUFFER)}},
870
871 {{"_SPD", METHOD_1ARGS(ACPI_TYPE_INTEGER),
872 METHOD_RETURNS(ACPI_RTYPE_INTEGER)}},
873
874 {{"_SRS", METHOD_1ARGS(ACPI_TYPE_BUFFER),
875 METHOD_NO_RETURN_VALUE}},
876
877 {{"_SRT", METHOD_1ARGS(ACPI_TYPE_BUFFER),
878 METHOD_RETURNS(ACPI_RTYPE_INTEGER)}},
879
880 {{"_SRV", METHOD_0ARGS,
881 METHOD_RETURNS(ACPI_RTYPE_INTEGER)}}, /* See IPMI spec */
882
883 {{"_SST", METHOD_1ARGS(ACPI_TYPE_INTEGER),
884 METHOD_NO_RETURN_VALUE}},
885
886 {{"_STA", METHOD_0ARGS,
887 METHOD_RETURNS(ACPI_RTYPE_INTEGER)}},
888
889 {{"_STM",
890 METHOD_3ARGS(ACPI_TYPE_BUFFER, ACPI_TYPE_BUFFER, ACPI_TYPE_BUFFER),
891 METHOD_NO_RETURN_VALUE}},
892
893 {{"_STP", METHOD_2ARGS(ACPI_TYPE_INTEGER, ACPI_TYPE_INTEGER),
894 METHOD_RETURNS(ACPI_RTYPE_INTEGER)}},
895
896 {{"_STR", METHOD_0ARGS,
897 METHOD_RETURNS(ACPI_RTYPE_BUFFER)}},
898
899 {{"_STV", METHOD_2ARGS(ACPI_TYPE_INTEGER, ACPI_TYPE_INTEGER),
900 METHOD_RETURNS(ACPI_RTYPE_INTEGER)}},
901
902 {{"_SUB", METHOD_0ARGS,
903 METHOD_RETURNS(ACPI_RTYPE_STRING)}},
904
905 {{"_SUN", METHOD_0ARGS,
906 METHOD_RETURNS(ACPI_RTYPE_INTEGER)}},
907
908 {{"_SWS", METHOD_0ARGS,
909 METHOD_RETURNS(ACPI_RTYPE_INTEGER)}},
910
911 {{"_TC1", METHOD_0ARGS,
912 METHOD_RETURNS(ACPI_RTYPE_INTEGER)}},
913
914 {{"_TC2", METHOD_0ARGS,
915 METHOD_RETURNS(ACPI_RTYPE_INTEGER)}},
916
917 {{"_TDL", METHOD_0ARGS,
918 METHOD_RETURNS(ACPI_RTYPE_INTEGER)}},
919
920 {{"_TIP", METHOD_1ARGS(ACPI_TYPE_INTEGER),
921 METHOD_RETURNS(ACPI_RTYPE_INTEGER)}},
922
923 {{"_TIV", METHOD_1ARGS(ACPI_TYPE_INTEGER),
924 METHOD_RETURNS(ACPI_RTYPE_INTEGER)}},
925
926 {{"_TMP", METHOD_0ARGS,
927 METHOD_RETURNS(ACPI_RTYPE_INTEGER)}},
928
929 {{"_TPC", METHOD_0ARGS,
930 METHOD_RETURNS(ACPI_RTYPE_INTEGER)}},
931
932 {{"_TPT", METHOD_1ARGS(ACPI_TYPE_INTEGER),
933 METHOD_NO_RETURN_VALUE}},
934
935 {{"_TRT", METHOD_0ARGS,
936 METHOD_RETURNS(ACPI_RTYPE_PACKAGE)}}, /* Variable-length (Pkgs) each 2 Ref/6 Int */
937 PACKAGE_INFO(ACPI_PTYPE2, ACPI_RTYPE_REFERENCE, 2, ACPI_RTYPE_INTEGER,
938 6, 0),
939
940 {{"_TSD", METHOD_0ARGS,
941 METHOD_RETURNS(ACPI_RTYPE_PACKAGE)}}, /* Variable-length (Pkgs) each 5 Int with count */
942 PACKAGE_INFO(ACPI_PTYPE2_COUNT, ACPI_RTYPE_INTEGER, 5, 0, 0, 0),
943
944 {{"_TSP", METHOD_0ARGS,
945 METHOD_RETURNS(ACPI_RTYPE_INTEGER)}},
946
947 {{"_TSS", METHOD_0ARGS,
948 METHOD_RETURNS(ACPI_RTYPE_PACKAGE)}}, /* Variable-length (Pkgs) each 5 Int */
949 PACKAGE_INFO(ACPI_PTYPE2, ACPI_RTYPE_INTEGER, 5, 0, 0, 0),
950
951 {{"_TST", METHOD_0ARGS,
952 METHOD_RETURNS(ACPI_RTYPE_INTEGER)}},
953
954 {{"_TTS", METHOD_1ARGS(ACPI_TYPE_INTEGER),
955 METHOD_NO_RETURN_VALUE}},
956
957 {{"_TZD", METHOD_0ARGS,
958 METHOD_RETURNS(ACPI_RTYPE_PACKAGE)}}, /* Variable-length (Refs) */
959 PACKAGE_INFO(ACPI_PTYPE1_VAR, ACPI_RTYPE_REFERENCE, 0, 0, 0, 0),
960
961 {{"_TZM", METHOD_0ARGS,
962 METHOD_RETURNS(ACPI_RTYPE_REFERENCE)}},
963
964 {{"_TZP", METHOD_0ARGS,
965 METHOD_RETURNS(ACPI_RTYPE_INTEGER)}},
966
967 {{"_UID", METHOD_0ARGS,
968 METHOD_RETURNS(ACPI_RTYPE_INTEGER | ACPI_RTYPE_STRING)}},
969
970 {{"_UPC", METHOD_0ARGS,
971 METHOD_RETURNS(ACPI_RTYPE_PACKAGE)}}, /* Fixed-length (4 Int) */
972 PACKAGE_INFO(ACPI_PTYPE1_FIXED, ACPI_RTYPE_INTEGER, 4, 0, 0, 0),
973
974 {{"_UPD", METHOD_0ARGS,
975 METHOD_RETURNS(ACPI_RTYPE_INTEGER)}},
976
977 {{"_UPP", METHOD_0ARGS,
978 METHOD_RETURNS(ACPI_RTYPE_INTEGER)}},
979
980 {{"_VPO", METHOD_0ARGS,
981 METHOD_RETURNS(ACPI_RTYPE_INTEGER)}},
Bob Mooree8707b32008-09-28 15:26:17 +0800982
983 /* Acpi 1.0 defined _WAK with no return value. Later, it was changed to return a package */
984
Bob Moorec34c82b2013-04-12 00:24:22 +0000985 {{"_WAK", METHOD_1ARGS(ACPI_TYPE_INTEGER),
986 METHOD_RETURNS(ACPI_RTYPE_NONE | ACPI_RTYPE_INTEGER |
987 ACPI_RTYPE_PACKAGE)}},
988 PACKAGE_INFO(ACPI_PTYPE1_FIXED, ACPI_RTYPE_INTEGER, 2, 0, 0, 0), /* Fixed-length (2 Int), but is optional */
Lin Mingd9adc2e2009-07-27 11:31:10 +0800989
Bob Moore507f7d52010-05-26 11:18:35 +0800990 /* _WDG/_WED are MS extensions defined by "Windows Instrumentation" */
991
Bob Moorec34c82b2013-04-12 00:24:22 +0000992 {{"_WDG", METHOD_0ARGS,
993 METHOD_RETURNS(ACPI_RTYPE_BUFFER)}},
Bob Moore507f7d52010-05-26 11:18:35 +0800994
Bob Moorec34c82b2013-04-12 00:24:22 +0000995 {{"_WED", METHOD_1ARGS(ACPI_TYPE_INTEGER),
996 METHOD_RETURNS(ACPI_RTYPE_INTEGER | ACPI_RTYPE_STRING |
997 ACPI_RTYPE_BUFFER)}},
998
999 PACKAGE_INFO(0, 0, 0, 0, 0, 0) /* Table terminator */
1000};
1001#else
1002extern const union acpi_predefined_info acpi_gbl_predefined_methods[];
1003#endif
1004
1005#if (defined ACPI_CREATE_RESOURCE_TABLE && defined ACPI_APPLICATION)
1006/******************************************************************************
1007 *
1008 * Predefined names for use in Resource Descriptors. These names do not
1009 * appear in the global Predefined Name table (since these names never
1010 * appear in actual AML byte code, only in the original ASL)
1011 *
1012 * Note: Used by iASL compiler and acpi_help utility only.
1013 *
1014 *****************************************************************************/
1015
1016const union acpi_predefined_info acpi_gbl_resource_names[] = {
1017 {{"_ADR", WIDTH_16 | WIDTH_64, 0}},
1018 {{"_ALN", WIDTH_8 | WIDTH_16 | WIDTH_32, 0}},
1019 {{"_ASI", WIDTH_8, 0}},
1020 {{"_ASZ", WIDTH_8, 0}},
1021 {{"_ATT", WIDTH_64, 0}},
1022 {{"_BAS", WIDTH_16 | WIDTH_32, 0}},
1023 {{"_BM_", WIDTH_1, 0}},
1024 {{"_DBT", WIDTH_16, 0}}, /* Acpi 5.0 */
1025 {{"_DEC", WIDTH_1, 0}},
1026 {{"_DMA", WIDTH_8, 0}},
1027 {{"_DPL", WIDTH_1, 0}}, /* Acpi 5.0 */
1028 {{"_DRS", WIDTH_16, 0}}, /* Acpi 5.0 */
1029 {{"_END", WIDTH_1, 0}}, /* Acpi 5.0 */
1030 {{"_FLC", WIDTH_2, 0}}, /* Acpi 5.0 */
1031 {{"_GRA", WIDTH_ADDRESS, 0}},
1032 {{"_HE_", WIDTH_1, 0}},
1033 {{"_INT", WIDTH_16 | WIDTH_32, 0}},
1034 {{"_IOR", WIDTH_2, 0}}, /* Acpi 5.0 */
1035 {{"_LEN", WIDTH_8 | WIDTH_ADDRESS, 0}},
1036 {{"_LIN", WIDTH_8, 0}}, /* Acpi 5.0 */
1037 {{"_LL_", WIDTH_1, 0}},
1038 {{"_MAF", WIDTH_1, 0}},
1039 {{"_MAX", WIDTH_ADDRESS, 0}},
1040 {{"_MEM", WIDTH_2, 0}},
1041 {{"_MIF", WIDTH_1, 0}},
1042 {{"_MIN", WIDTH_ADDRESS, 0}},
1043 {{"_MOD", WIDTH_1, 0}}, /* Acpi 5.0 */
1044 {{"_MTP", WIDTH_2, 0}},
1045 {{"_PAR", WIDTH_8, 0}}, /* Acpi 5.0 */
1046 {{"_PHA", WIDTH_1, 0}}, /* Acpi 5.0 */
1047 {{"_PIN", WIDTH_16, 0}}, /* Acpi 5.0 */
1048 {{"_PPI", WIDTH_8, 0}}, /* Acpi 5.0 */
1049 {{"_POL", WIDTH_1 | WIDTH_2, 0}}, /* Acpi 5.0 */
1050 {{"_RBO", WIDTH_8, 0}},
1051 {{"_RBW", WIDTH_8, 0}},
1052 {{"_RNG", WIDTH_1, 0}},
1053 {{"_RT_", WIDTH_8, 0}}, /* Acpi 3.0 */
1054 {{"_RW_", WIDTH_1, 0}},
1055 {{"_RXL", WIDTH_16, 0}}, /* Acpi 5.0 */
1056 {{"_SHR", WIDTH_2, 0}},
1057 {{"_SIZ", WIDTH_2, 0}},
1058 {{"_SLV", WIDTH_1, 0}}, /* Acpi 5.0 */
1059 {{"_SPE", WIDTH_32, 0}}, /* Acpi 5.0 */
1060 {{"_STB", WIDTH_2, 0}}, /* Acpi 5.0 */
1061 {{"_TRA", WIDTH_ADDRESS, 0}},
1062 {{"_TRS", WIDTH_1, 0}},
1063 {{"_TSF", WIDTH_8, 0}}, /* Acpi 3.0 */
1064 {{"_TTP", WIDTH_1, 0}},
1065 {{"_TXL", WIDTH_16, 0}}, /* Acpi 5.0 */
1066 {{"_TYP", WIDTH_2 | WIDTH_16, 0}},
1067 {{"_VEN", VARIABLE_DATA, 0}}, /* Acpi 5.0 */
1068 PACKAGE_INFO(0, 0, 0, 0, 0, 0) /* Table terminator */
Bob Mooree8707b32008-09-28 15:26:17 +08001069};
1070
Bob Moorec34c82b2013-04-12 00:24:22 +00001071static const union acpi_predefined_info acpi_gbl_scope_names[] = {
1072 {{"_GPE", 0, 0}},
1073 {{"_PR_", 0, 0}},
1074 {{"_SB_", 0, 0}},
1075 {{"_SI_", 0, 0}},
1076 {{"_TZ_", 0, 0}},
1077 PACKAGE_INFO(0, 0, 0, 0, 0, 0) /* Table terminator */
1078};
1079#else
1080extern const union acpi_predefined_info acpi_gbl_resource_names[];
Bob Mooree8707b32008-09-28 15:26:17 +08001081#endif
Lin Mingd9adc2e2009-07-27 11:31:10 +08001082
Bob Mooree8707b32008-09-28 15:26:17 +08001083#endif