blob: c81f14b69270d341c2605861ac2c7d7f744ef922 [file] [log] [blame]
Bob Mooree8707b32008-09-28 15:26:17 +08001/******************************************************************************
2 *
3 * Name: acpredef - Information table for ACPI predefined methods and objects
4 * $Revision: 1.1 $
5 *
6 *****************************************************************************/
7
8/*
9 * Copyright (C) 2000 - 2008, Intel Corp.
10 * All rights reserved.
11 *
12 * Redistribution and use in source and binary forms, with or without
13 * modification, are permitted provided that the following conditions
14 * are met:
15 * 1. Redistributions of source code must retain the above copyright
16 * notice, this list of conditions, and the following disclaimer,
17 * without modification.
18 * 2. Redistributions in binary form must reproduce at minimum a disclaimer
19 * substantially similar to the "NO WARRANTY" disclaimer below
20 * ("Disclaimer") and any redistribution must be conditioned upon
21 * including a substantially similar Disclaimer requirement for further
22 * binary redistribution.
23 * 3. Neither the names of the above-listed copyright holders nor the names
24 * of any contributors may be used to endorse or promote products derived
25 * from this software without specific prior written permission.
26 *
27 * Alternatively, this software may be distributed under the terms of the
28 * GNU General Public License ("GPL") version 2 as published by the Free
29 * Software Foundation.
30 *
31 * NO WARRANTY
32 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
33 * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
34 * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR
35 * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
36 * HOLDERS OR CONTRIBUTORS BE LIABLE FOR SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
37 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
38 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
39 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
40 * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING
41 * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
42 * POSSIBILITY OF SUCH DAMAGES.
43 */
44
45#ifndef __ACPREDEF_H__
46#define __ACPREDEF_H__
47
48/******************************************************************************
49 *
50 * Return Package types
51 *
52 * 1) PTYPE1 packages do not contain sub-packages.
53 *
54 * ACPI_PTYPE1_FIXED: Fixed length, 1 or 2 object types:
Bob Moored3319d12009-02-18 14:07:58 +080055 * object type
56 * count
57 * object type
58 * count
Bob Mooree8707b32008-09-28 15:26:17 +080059 *
60 * ACPI_PTYPE1_VAR: Variable length:
Bob Moored3319d12009-02-18 14:07:58 +080061 * object type (Int/Buf/Ref)
Bob Mooree8707b32008-09-28 15:26:17 +080062 *
Bob Moored3319d12009-02-18 14:07:58 +080063 * ACPI_PTYPE1_OPTION: Package has some required and some optional elements
64 * (Used for _PRW)
Bob Mooree8707b32008-09-28 15:26:17 +080065 *
66 *
67 * 2) PTYPE2 packages contain a variable number of sub-packages. Each of the
68 * different types describe the contents of each of the sub-packages.
69 *
70 * ACPI_PTYPE2: Each subpackage contains 1 or 2 object types:
Bob Moored3319d12009-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 *
77 * ACPI_PTYPE2_COUNT: Each subpackage has a count as first element:
Bob Moored3319d12009-02-18 14:07:58 +080078 * object type
79 * (Used for _CSD,_PSD,_TSD)
Bob Mooree8707b32008-09-28 15:26:17 +080080 *
81 * ACPI_PTYPE2_PKG_COUNT: Count of subpackages at start, 1 or 2 object types:
Bob Moored3319d12009-02-18 14:07:58 +080082 * object type
83 * count
84 * object type
85 * count
86 * (Used for _CST)
Bob Mooree8707b32008-09-28 15:26:17 +080087 *
Bob Moored3319d12009-02-18 14:07:58 +080088 * ACPI_PTYPE2_FIXED: Each subpackage is of fixed length
89 * (Used for _PRT)
Bob Mooree8707b32008-09-28 15:26:17 +080090 *
91 * ACPI_PTYPE2_MIN: Each subpackage has a variable but minimum length
Bob Moored3319d12009-02-18 14:07:58 +080092 * (Used for _HPX)
Bob Mooree8707b32008-09-28 15:26:17 +080093 *
Bob Moore53e93872009-07-24 11:22:11 +080094 * ACPI_PTYPE2_REV_FIXED: Revision at start, each subpackage is Fixed-length
95 *
Bob Mooree8707b32008-09-28 15:26:17 +080096 *****************************************************************************/
97
98enum acpi_return_package_types {
99 ACPI_PTYPE1_FIXED = 1,
100 ACPI_PTYPE1_VAR = 2,
101 ACPI_PTYPE1_OPTION = 3,
102 ACPI_PTYPE2 = 4,
103 ACPI_PTYPE2_COUNT = 5,
104 ACPI_PTYPE2_PKG_COUNT = 6,
105 ACPI_PTYPE2_FIXED = 7,
Bob Moore53e93872009-07-24 11:22:11 +0800106 ACPI_PTYPE2_MIN = 8,
107 ACPI_PTYPE2_REV_FIXED = 9
Bob Mooree8707b32008-09-28 15:26:17 +0800108};
109
110/*
111 * Predefined method/object information table.
112 *
113 * These are the names that can actually be evaluated via acpi_evaluate_object.
114 * Not present in this table are the following:
115 *
116 * 1) Predefined/Reserved names that are never evaluated via acpi_evaluate_object:
117 * _Lxx and _Exx GPE methods
118 * _Qxx EC methods
119 * _T_x compiler temporary variables
120 *
121 * 2) Predefined names that never actually exist within the AML code:
122 * Predefined resource descriptor field names
123 *
124 * 3) Predefined names that are implemented within ACPICA:
125 * _OSI
126 *
127 * 4) Some predefined names that are not documented within the ACPI spec.
128 * _WDG, _WED
129 *
130 * The main entries in the table each contain the following items:
131 *
132 * Name - The ACPI reserved name
133 * param_count - Number of arguments to the method
134 * expected_btypes - Allowed type(s) for the return value.
135 * 0 means that no return value is expected.
136 *
137 * For methods that return packages, the next entry in the table contains
138 * information about the expected structure of the package. This information
139 * is saved here (rather than in a separate table) in order to minimize the
140 * overall size of the stored data.
141 */
Lin Mingd9adc2e2009-07-27 11:31:10 +0800142static const union acpi_predefined_info predefined_names[] =
143{
144 {{"_AC0", 0, ACPI_RTYPE_INTEGER}},
145 {{"_AC1", 0, ACPI_RTYPE_INTEGER}},
146 {{"_AC2", 0, ACPI_RTYPE_INTEGER}},
147 {{"_AC3", 0, ACPI_RTYPE_INTEGER}},
148 {{"_AC4", 0, ACPI_RTYPE_INTEGER}},
149 {{"_AC5", 0, ACPI_RTYPE_INTEGER}},
150 {{"_AC6", 0, ACPI_RTYPE_INTEGER}},
151 {{"_AC7", 0, ACPI_RTYPE_INTEGER}},
152 {{"_AC8", 0, ACPI_RTYPE_INTEGER}},
153 {{"_AC9", 0, ACPI_RTYPE_INTEGER}},
154 {{"_ADR", 0, ACPI_RTYPE_INTEGER}},
155 {{"_AL0", 0, ACPI_RTYPE_PACKAGE}}, /* Variable-length (Refs) */
156 {{{ACPI_PTYPE1_VAR, ACPI_RTYPE_REFERENCE, 0,0}, 0,0}},
157
158 {{"_AL1", 0, ACPI_RTYPE_PACKAGE}}, /* Variable-length (Refs) */
159 {{{ACPI_PTYPE1_VAR, ACPI_RTYPE_REFERENCE, 0,0}, 0,0}},
160
161 {{"_AL2", 0, ACPI_RTYPE_PACKAGE}}, /* Variable-length (Refs) */
162 {{{ACPI_PTYPE1_VAR, ACPI_RTYPE_REFERENCE, 0,0}, 0,0}},
163
164 {{"_AL3", 0, ACPI_RTYPE_PACKAGE}}, /* Variable-length (Refs) */
165 {{{ACPI_PTYPE1_VAR, ACPI_RTYPE_REFERENCE, 0,0}, 0,0}},
166
167 {{"_AL4", 0, ACPI_RTYPE_PACKAGE}}, /* Variable-length (Refs) */
168 {{{ACPI_PTYPE1_VAR, ACPI_RTYPE_REFERENCE, 0,0}, 0,0}},
169
170 {{"_AL5", 0, ACPI_RTYPE_PACKAGE}}, /* Variable-length (Refs) */
171 {{{ACPI_PTYPE1_VAR, ACPI_RTYPE_REFERENCE, 0,0}, 0,0}},
172
173 {{"_AL6", 0, ACPI_RTYPE_PACKAGE}}, /* Variable-length (Refs) */
174 {{{ACPI_PTYPE1_VAR, ACPI_RTYPE_REFERENCE, 0,0}, 0,0}},
175
176 {{"_AL7", 0, ACPI_RTYPE_PACKAGE}}, /* Variable-length (Refs) */
177 {{{ACPI_PTYPE1_VAR, ACPI_RTYPE_REFERENCE, 0,0}, 0,0}},
178
179 {{"_AL8", 0, ACPI_RTYPE_PACKAGE}}, /* Variable-length (Refs) */
180 {{{ACPI_PTYPE1_VAR, ACPI_RTYPE_REFERENCE, 0,0}, 0,0}},
181
182 {{"_AL9", 0, ACPI_RTYPE_PACKAGE}}, /* Variable-length (Refs) */
183 {{{ACPI_PTYPE1_VAR, ACPI_RTYPE_REFERENCE, 0,0}, 0,0}},
184
185 {{"_ALC", 0, ACPI_RTYPE_INTEGER}},
186 {{"_ALI", 0, ACPI_RTYPE_INTEGER}},
187 {{"_ALP", 0, ACPI_RTYPE_INTEGER}},
188 {{"_ALR", 0, ACPI_RTYPE_PACKAGE}}, /* Variable-length (Pkgs) each 2 (Ints) */
189 {{{ACPI_PTYPE2, ACPI_RTYPE_INTEGER, 2,0}, 0,0}},
190
191 {{"_ALT", 0, ACPI_RTYPE_INTEGER}},
192 {{"_BBN", 0, ACPI_RTYPE_INTEGER}},
193 {{"_BCL", 0, ACPI_RTYPE_PACKAGE}}, /* Variable-length (Ints) */
194 {{{ACPI_PTYPE1_VAR, ACPI_RTYPE_INTEGER, 0,0}, 0,0}},
195
196 {{"_BCM", 1, 0}},
197 {{"_BDN", 0, ACPI_RTYPE_INTEGER}},
198 {{"_BFS", 1, 0}},
199 {{"_BIF", 0, ACPI_RTYPE_PACKAGE}}, /* Fixed-length (9 Int),(4 Str) */
200 {{{ACPI_PTYPE1_FIXED, ACPI_RTYPE_INTEGER, 9, ACPI_RTYPE_STRING}, 4,0}},
201
202 {{"_BLT", 3, 0}},
203 {{"_BMC", 1, 0}},
204 {{"_BMD", 0, ACPI_RTYPE_PACKAGE}}, /* Fixed-length (5 Int) */
205 {{{ACPI_PTYPE1_FIXED, ACPI_RTYPE_INTEGER, 5,0}, 0,0}},
206
207 {{"_BQC", 0, ACPI_RTYPE_INTEGER}},
208 {{"_BST", 0, ACPI_RTYPE_PACKAGE}}, /* Fixed-length (4 Int) */
209 {{{ACPI_PTYPE1_FIXED, ACPI_RTYPE_INTEGER, 4,0}, 0,0}},
210
211 {{"_BTM", 1, ACPI_RTYPE_INTEGER}},
212 {{"_BTP", 1, 0}},
213 {{"_CBA", 0, ACPI_RTYPE_INTEGER}}, /* See PCI firmware spec 3.0 */
214 {{"_CID", 0, ACPI_RTYPE_INTEGER | ACPI_RTYPE_STRING | ACPI_RTYPE_PACKAGE}}, /* Variable-length (Ints/Strs) */
215 {{{ACPI_PTYPE1_VAR, ACPI_RTYPE_INTEGER | ACPI_RTYPE_STRING, 0,0}, 0,0}},
216
217 {{"_CRS", 0, ACPI_RTYPE_BUFFER}},
218 {{"_CRT", 0, ACPI_RTYPE_INTEGER}},
219 {{"_CSD", 0, ACPI_RTYPE_PACKAGE}}, /* Variable-length (1 Int(n), n-1 Int) */
220 {{{ACPI_PTYPE2_COUNT, ACPI_RTYPE_INTEGER, 0,0}, 0,0}},
221
222 {{"_CST", 0, ACPI_RTYPE_PACKAGE}}, /* Variable-length (1 Int(n), n Pkg (1 Buf/3 Int) */
223 {{{ACPI_PTYPE2_PKG_COUNT,ACPI_RTYPE_BUFFER, 1, ACPI_RTYPE_INTEGER}, 3,0}},
224
225 {{"_DCK", 1, ACPI_RTYPE_INTEGER}},
226 {{"_DCS", 0, ACPI_RTYPE_INTEGER}},
227 {{"_DDC", 1, ACPI_RTYPE_INTEGER | ACPI_RTYPE_BUFFER}},
228 {{"_DDN", 0, ACPI_RTYPE_STRING}},
229 {{"_DGS", 0, ACPI_RTYPE_INTEGER}},
230 {{"_DIS", 0, 0}},
231 {{"_DMA", 0, ACPI_RTYPE_BUFFER}},
232 {{"_DOD", 0, ACPI_RTYPE_PACKAGE}}, /* Variable-length (Ints) */
233 {{{ACPI_PTYPE1_VAR, ACPI_RTYPE_INTEGER, 0,0}, 0,0}},
234
235 {{"_DOS", 1, 0}},
236 {{"_DSM", 4, ACPI_RTYPE_ALL}}, /* Must return a type, but it can be of any type */
237 {{"_DSS", 1, 0}},
238 {{"_DSW", 3, 0}},
239 {{"_EC_", 0, ACPI_RTYPE_INTEGER}},
240 {{"_EDL", 0, ACPI_RTYPE_PACKAGE}}, /* Variable-length (Refs)*/
241 {{{ACPI_PTYPE1_VAR, ACPI_RTYPE_REFERENCE, 0,0}, 0,0}},
242
243 {{"_EJ0", 1, 0}},
244 {{"_EJ1", 1, 0}},
245 {{"_EJ2", 1, 0}},
246 {{"_EJ3", 1, 0}},
247 {{"_EJ4", 1, 0}},
248 {{"_EJD", 0, ACPI_RTYPE_STRING}},
249 {{"_FDE", 0, ACPI_RTYPE_BUFFER}},
250 {{"_FDI", 0, ACPI_RTYPE_PACKAGE}}, /* Fixed-length (16 Int) */
251 {{{ACPI_PTYPE1_FIXED, ACPI_RTYPE_INTEGER, 16,0}, 0,0}},
252
253 {{"_FDM", 1, 0}},
254 {{"_FIX", 0, ACPI_RTYPE_PACKAGE}}, /* Variable-length (Ints) */
255 {{{ACPI_PTYPE1_VAR, ACPI_RTYPE_INTEGER, 0,0}, 0,0}},
256
257 {{"_GLK", 0, ACPI_RTYPE_INTEGER}},
258 {{"_GPD", 0, ACPI_RTYPE_INTEGER}},
259 {{"_GPE", 0, ACPI_RTYPE_INTEGER}}, /* _GPE method, not _GPE scope */
260 {{"_GSB", 0, ACPI_RTYPE_INTEGER}},
261 {{"_GTF", 0, ACPI_RTYPE_BUFFER}},
262 {{"_GTM", 0, ACPI_RTYPE_BUFFER}},
263 {{"_GTS", 1, 0}},
264 {{"_HID", 0, ACPI_RTYPE_INTEGER | ACPI_RTYPE_STRING}},
265 {{"_HOT", 0, ACPI_RTYPE_INTEGER}},
266 {{"_HPP", 0, ACPI_RTYPE_PACKAGE}}, /* Fixed-length (4 Int) */
267 {{{ACPI_PTYPE1_FIXED, ACPI_RTYPE_INTEGER, 4,0}, 0,0}},
Bob Mooree8707b32008-09-28 15:26:17 +0800268
269 /*
Lin Mingd9adc2e2009-07-27 11:31:10 +0800270 * For _HPX, a single package is returned, containing a Variable-length number
271 * of sub-packages. Each sub-package contains a PCI record setting.
272 * There are several different type of record settings, of different
273 * lengths, but all elements of all settings are Integers.
Bob Mooree8707b32008-09-28 15:26:17 +0800274 */
Lin Mingd9adc2e2009-07-27 11:31:10 +0800275 {{"_HPX", 0, ACPI_RTYPE_PACKAGE}}, /* Variable-length (Pkgs) each (var Ints) */
276 {{{ACPI_PTYPE2_MIN, ACPI_RTYPE_INTEGER, 5,0}, 0,0}},
277
278 {{"_IFT", 0, ACPI_RTYPE_INTEGER}}, /* See IPMI spec */
279 {{"_INI", 0, 0}},
280 {{"_IRC", 0, 0}},
281 {{"_LCK", 1, 0}},
282 {{"_LID", 0, ACPI_RTYPE_INTEGER}},
283 {{"_MAT", 0, ACPI_RTYPE_BUFFER}},
284 {{"_MLS", 0, ACPI_RTYPE_PACKAGE}}, /* Variable-length (Pkgs) each (2 Str) */
285 {{{ACPI_PTYPE2, ACPI_RTYPE_STRING, 2,0}, 0,0}},
286
287 {{"_MSG", 1, 0}},
288 {{"_OFF", 0, 0}},
289 {{"_ON_", 0, 0}},
290 {{"_OS_", 0, ACPI_RTYPE_STRING}},
291 {{"_OSC", 4, ACPI_RTYPE_BUFFER}},
292 {{"_OST", 3, 0}},
293 {{"_PCL", 0, ACPI_RTYPE_PACKAGE}}, /* Variable-length (Refs) */
294 {{{ACPI_PTYPE1_VAR, ACPI_RTYPE_REFERENCE, 0,0}, 0,0}},
295
296 {{"_PCT", 0, ACPI_RTYPE_PACKAGE}}, /* Fixed-length (2 Buf) */
297 {{{ACPI_PTYPE1_FIXED, ACPI_RTYPE_BUFFER, 2,0}, 0,0}},
298
299 {{"_PDC", 1, 0}},
300 {{"_PIC", 1, 0}},
301 {{"_PLD", 0, ACPI_RTYPE_PACKAGE}}, /* Variable-length (Bufs) */
302 {{{ACPI_PTYPE1_VAR, ACPI_RTYPE_BUFFER, 0,0}, 0,0}},
303
304 {{"_PPC", 0, ACPI_RTYPE_INTEGER}},
305 {{"_PPE", 0, ACPI_RTYPE_INTEGER}}, /* See dig64 spec */
306 {{"_PR0", 0, ACPI_RTYPE_PACKAGE}}, /* Variable-length (Refs) */
307 {{{ACPI_PTYPE1_VAR, ACPI_RTYPE_REFERENCE, 0,0}, 0,0}},
308
309 {{"_PR1", 0, ACPI_RTYPE_PACKAGE}}, /* Variable-length (Refs) */
310 {{{ACPI_PTYPE1_VAR, ACPI_RTYPE_REFERENCE, 0,0}, 0,0}},
311
312 {{"_PR2", 0, ACPI_RTYPE_PACKAGE}}, /* Variable-length (Refs) */
313 {{{ACPI_PTYPE1_VAR, ACPI_RTYPE_REFERENCE, 0,0}, 0,0}},
314
315 {{"_PRS", 0, ACPI_RTYPE_BUFFER}},
Bob Mooree8707b32008-09-28 15:26:17 +0800316
317 /*
318 * For _PRT, many BIOSs reverse the 2nd and 3rd Package elements. This bug is so prevalent that there
319 * is code in the ACPICA Resource Manager to detect this and switch them back. For now, do not allow
320 * and issue a warning. To allow this and eliminate the warning, add the ACPI_RTYPE_REFERENCE
321 * type to the 2nd element (index 1) in the statement below.
322 */
Lin Mingd9adc2e2009-07-27 11:31:10 +0800323 {{"_PRT", 0, ACPI_RTYPE_PACKAGE}}, /* Variable-length (Pkgs) each (4): Int,Int,Int/Ref,Int */
324 {{{ACPI_PTYPE2_FIXED, 4, ACPI_RTYPE_INTEGER,ACPI_RTYPE_INTEGER},
325 ACPI_RTYPE_INTEGER | ACPI_RTYPE_REFERENCE,ACPI_RTYPE_INTEGER}},
Bob Mooree8707b32008-09-28 15:26:17 +0800326
Lin Mingd9adc2e2009-07-27 11:31:10 +0800327 {{"_PRW", 0, ACPI_RTYPE_PACKAGE}}, /* Variable-length (Pkgs) each: Pkg/Int,Int,[Variable-length Refs] (Pkg is Ref/Int) */
328 {{{ACPI_PTYPE1_OPTION, 2, ACPI_RTYPE_INTEGER | ACPI_RTYPE_PACKAGE,
329 ACPI_RTYPE_INTEGER}, ACPI_RTYPE_REFERENCE,0}},
Bob Mooree8707b32008-09-28 15:26:17 +0800330
Lin Mingd9adc2e2009-07-27 11:31:10 +0800331 {{"_PS0", 0, 0}},
332 {{"_PS1", 0, 0}},
333 {{"_PS2", 0, 0}},
334 {{"_PS3", 0, 0}},
335 {{"_PSC", 0, ACPI_RTYPE_INTEGER}},
336 {{"_PSD", 0, ACPI_RTYPE_PACKAGE}}, /* Variable-length (Pkgs) each (5 Int) with count */
337 {{{ACPI_PTYPE2_COUNT, ACPI_RTYPE_INTEGER,0,0}, 0,0}},
338
339 {{"_PSL", 0, ACPI_RTYPE_PACKAGE}}, /* Variable-length (Refs) */
340 {{{ACPI_PTYPE1_VAR, ACPI_RTYPE_REFERENCE, 0,0}, 0,0}},
341
342 {{"_PSR", 0, ACPI_RTYPE_INTEGER}},
343 {{"_PSS", 0, ACPI_RTYPE_PACKAGE}}, /* Variable-length (Pkgs) each (6 Int) */
344 {{{ACPI_PTYPE2, ACPI_RTYPE_INTEGER, 6,0}, 0,0}},
345
346 {{"_PSV", 0, ACPI_RTYPE_INTEGER}},
347 {{"_PSW", 1, 0}},
348 {{"_PTC", 0, ACPI_RTYPE_PACKAGE}}, /* Fixed-length (2 Buf) */
349 {{{ACPI_PTYPE1_FIXED, ACPI_RTYPE_BUFFER, 2,0}, 0,0}},
350
351 {{"_PTS", 1, 0}},
352 {{"_PXM", 0, ACPI_RTYPE_INTEGER}},
353 {{"_REG", 2, 0}},
354 {{"_REV", 0, ACPI_RTYPE_INTEGER}},
355 {{"_RMV", 0, ACPI_RTYPE_INTEGER}},
356 {{"_ROM", 2, ACPI_RTYPE_BUFFER}},
357 {{"_RTV", 0, ACPI_RTYPE_INTEGER}},
Bob Mooree8707b32008-09-28 15:26:17 +0800358
359 /*
Lin Mingd9adc2e2009-07-27 11:31:10 +0800360 * For _S0_ through _S5_, the ACPI spec defines a return Package
361 * containing 1 Integer, but most DSDTs have it wrong - 2,3, or 4 integers.
362 * Allow this by making the objects "Variable-length length", but all elements
363 * must be Integers.
Bob Mooree8707b32008-09-28 15:26:17 +0800364 */
Lin Mingd9adc2e2009-07-27 11:31:10 +0800365 {{"_S0_", 0, ACPI_RTYPE_PACKAGE}}, /* Fixed-length (1 Int) */
366 {{{ACPI_PTYPE1_VAR, ACPI_RTYPE_INTEGER, 1,0}, 0,0}},
Bob Mooree8707b32008-09-28 15:26:17 +0800367
Lin Mingd9adc2e2009-07-27 11:31:10 +0800368 {{"_S1_", 0, ACPI_RTYPE_PACKAGE}}, /* Fixed-length (1 Int) */
369 {{{ACPI_PTYPE1_VAR, ACPI_RTYPE_INTEGER, 1,0}, 0,0}},
370
371 {{"_S2_", 0, ACPI_RTYPE_PACKAGE}}, /* Fixed-length (1 Int) */
372 {{{ACPI_PTYPE1_VAR, ACPI_RTYPE_INTEGER, 1,0}, 0,0}},
373
374 {{"_S3_", 0, ACPI_RTYPE_PACKAGE}}, /* Fixed-length (1 Int) */
375 {{{ACPI_PTYPE1_VAR, ACPI_RTYPE_INTEGER, 1,0}, 0,0}},
376
377 {{"_S4_", 0, ACPI_RTYPE_PACKAGE}}, /* Fixed-length (1 Int) */
378 {{{ACPI_PTYPE1_VAR, ACPI_RTYPE_INTEGER, 1,0}, 0,0}},
379
380 {{"_S5_", 0, ACPI_RTYPE_PACKAGE}}, /* Fixed-length (1 Int) */
381 {{{ACPI_PTYPE1_VAR, ACPI_RTYPE_INTEGER, 1,0}, 0,0}},
382
383 {{"_S1D", 0, ACPI_RTYPE_INTEGER}},
384 {{"_S2D", 0, ACPI_RTYPE_INTEGER}},
385 {{"_S3D", 0, ACPI_RTYPE_INTEGER}},
386 {{"_S4D", 0, ACPI_RTYPE_INTEGER}},
387 {{"_S0W", 0, ACPI_RTYPE_INTEGER}},
388 {{"_S1W", 0, ACPI_RTYPE_INTEGER}},
389 {{"_S2W", 0, ACPI_RTYPE_INTEGER}},
390 {{"_S3W", 0, ACPI_RTYPE_INTEGER}},
391 {{"_S4W", 0, ACPI_RTYPE_INTEGER}},
392 {{"_SBS", 0, ACPI_RTYPE_INTEGER}},
393 {{"_SCP", 0x13, 0}}, /* Acpi 1.0 allowed 1 arg. Acpi 3.0 expanded to 3 args. Allow both. */
394 /* Note: the 3-arg definition may be removed for ACPI 4.0 */
395 {{"_SDD", 1, 0}},
396 {{"_SEG", 0, ACPI_RTYPE_INTEGER}},
397 {{"_SLI", 0, ACPI_RTYPE_BUFFER}},
398 {{"_SPD", 1, ACPI_RTYPE_INTEGER}},
399 {{"_SRS", 1, 0}},
400 {{"_SRV", 0, ACPI_RTYPE_INTEGER}}, /* See IPMI spec */
401 {{"_SST", 1, 0}},
402 {{"_STA", 0, ACPI_RTYPE_INTEGER}},
403 {{"_STM", 3, 0}},
404 {{"_STR", 0, ACPI_RTYPE_BUFFER}},
405 {{"_SUN", 0, ACPI_RTYPE_INTEGER}},
406 {{"_SWS", 0, ACPI_RTYPE_INTEGER}},
407 {{"_TC1", 0, ACPI_RTYPE_INTEGER}},
408 {{"_TC2", 0, ACPI_RTYPE_INTEGER}},
409 {{"_TMP", 0, ACPI_RTYPE_INTEGER}},
410 {{"_TPC", 0, ACPI_RTYPE_INTEGER}},
411 {{"_TPT", 1, 0}},
412 {{"_TRT", 0, ACPI_RTYPE_PACKAGE}}, /* Variable-length (Pkgs) each 2_ref/6_int */
413 {{{ACPI_PTYPE2, ACPI_RTYPE_REFERENCE, 2, ACPI_RTYPE_INTEGER}, 6, 0}},
414
415 {{"_TSD", 0, ACPI_RTYPE_PACKAGE}}, /* Variable-length (Pkgs) each 5_int with count */
416 {{{ACPI_PTYPE2_COUNT,ACPI_RTYPE_INTEGER, 5,0}, 0,0}},
417
418 {{"_TSP", 0, ACPI_RTYPE_INTEGER}},
419 {{"_TSS", 0, ACPI_RTYPE_PACKAGE}}, /* Variable-length (Pkgs) each 5_int */
420 {{{ACPI_PTYPE2, ACPI_RTYPE_INTEGER, 5,0}, 0,0}},
421
422 {{"_TST", 0, ACPI_RTYPE_INTEGER}},
423 {{"_TTS", 1, 0}},
424 {{"_TZD", 0, ACPI_RTYPE_PACKAGE}}, /* Variable-length (Refs) */
425 {{{ACPI_PTYPE1_VAR, ACPI_RTYPE_REFERENCE, 0,0}, 0,0}},
426
427 {{"_TZM", 0, ACPI_RTYPE_REFERENCE}},
428 {{"_TZP", 0, ACPI_RTYPE_INTEGER}},
429 {{"_UID", 0, ACPI_RTYPE_INTEGER | ACPI_RTYPE_STRING}},
430 {{"_UPC", 0, ACPI_RTYPE_PACKAGE}}, /* Fixed-length (4 Int) */
431 {{{ACPI_PTYPE1_FIXED, ACPI_RTYPE_INTEGER, 4,0}, 0,0}},
432
433 {{"_UPD", 0, ACPI_RTYPE_INTEGER}},
434 {{"_UPP", 0, ACPI_RTYPE_INTEGER}},
435 {{"_VPO", 0, ACPI_RTYPE_INTEGER}},
Bob Mooree8707b32008-09-28 15:26:17 +0800436
437 /* Acpi 1.0 defined _WAK with no return value. Later, it was changed to return a package */
438
Lin Mingd9adc2e2009-07-27 11:31:10 +0800439 {{"_WAK", 1, ACPI_RTYPE_NONE | ACPI_RTYPE_INTEGER | ACPI_RTYPE_PACKAGE}},
440 {{{ACPI_PTYPE1_FIXED, ACPI_RTYPE_INTEGER, 2,0}, 0,0}}, /* Fixed-length (2 Int), but is optional */
441
442 {{{0,0,0,0}, 0,0}} /* Table terminator */
Bob Mooree8707b32008-09-28 15:26:17 +0800443};
444
445#if 0
446 /* Not implemented */
447
Lin Mingd9adc2e2009-07-27 11:31:10 +0800448 {{"_WDG", 0, ACPI_RTYPE_BUFFER}}, /* MS Extension */
449 {{"_WED", 1, ACPI_RTYPE_PACKAGE}}, /* MS Extension */
Bob Mooree8707b32008-09-28 15:26:17 +0800450
Lin Mingd9adc2e2009-07-27 11:31:10 +0800451 /* This is an internally implemented control method, no need to check */
452 {{"_OSI", 1, ACPI_RTYPE_INTEGER}},
Bob Mooree8707b32008-09-28 15:26:17 +0800453
Lin Mingd9adc2e2009-07-27 11:31:10 +0800454 /* TBD: */
Bob Mooree8707b32008-09-28 15:26:17 +0800455
Lin Mingd9adc2e2009-07-27 11:31:10 +0800456 _PRT - currently ignore reversed entries. attempt to fix here?
457 think about possibly fixing package elements like _BIF, etc.
Bob Mooree8707b32008-09-28 15:26:17 +0800458#endif
Lin Mingd9adc2e2009-07-27 11:31:10 +0800459
Bob Mooree8707b32008-09-28 15:26:17 +0800460#endif