1 /******************************************************************************
3 * Name: acpredef - Information table for ACPI predefined methods and objects
6 *****************************************************************************/
9 * Copyright (C) 2000 - 2008, Intel Corp.
10 * All rights reserved.
12 * Redistribution and use in source and binary forms, with or without
13 * modification, are permitted provided that the following conditions
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.
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.
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.
45 #ifndef __ACPREDEF_H__
46 #define __ACPREDEF_H__
48 /******************************************************************************
50 * Return Package types
52 * 1) PTYPE1 packages do not contain sub-packages.
54 * ACPI_PTYPE1_FIXED: Fixed length, 1 or 2 object types:
60 * ACPI_PTYPE1_VAR: Variable length:
61 * object type (Int/Buf/Ref)
63 * ACPI_PTYPE1_OPTION: Package has some required and some optional elements
67 * 2) PTYPE2 packages contain a Variable-length number of sub-packages. Each
68 * of the different types describe the contents of each of the sub-packages.
70 * ACPI_PTYPE2: Each subpackage contains 1 or 2 object types:
75 * (Used for _ALR,_MLS,_PSS,_TRT,_TSS)
77 * ACPI_PTYPE2_COUNT: Each subpackage has a count as first element:
79 * (Used for _CSD,_PSD,_TSD)
81 * ACPI_PTYPE2_PKG_COUNT: Count of subpackages at start, 1 or 2 object types:
88 * ACPI_PTYPE2_FIXED: Each subpackage is of fixed length
91 * ACPI_PTYPE2_MIN: Each subpackage has a variable but minimum length
94 * ACPI_PTYPE2_REV_FIXED: Revision at start, each subpackage is Fixed-length
95 * (Used for _ART, _FPS)
97 *****************************************************************************/
99 enum acpi_return_package_types
{
100 ACPI_PTYPE1_FIXED
= 1,
102 ACPI_PTYPE1_OPTION
= 3,
104 ACPI_PTYPE2_COUNT
= 5,
105 ACPI_PTYPE2_PKG_COUNT
= 6,
106 ACPI_PTYPE2_FIXED
= 7,
108 ACPI_PTYPE2_REV_FIXED
= 9
111 #ifdef ACPI_CREATE_PREDEFINED_TABLE
113 * Predefined method/object information table.
115 * These are the names that can actually be evaluated via acpi_evaluate_object.
116 * Not present in this table are the following:
118 * 1) Predefined/Reserved names that are never evaluated via acpi_evaluate_object:
119 * _Lxx and _Exx GPE methods
121 * _T_x compiler temporary variables
123 * 2) Predefined names that never actually exist within the AML code:
124 * Predefined resource descriptor field names
126 * 3) Predefined names that are implemented within ACPICA:
129 * 4) Some predefined names that are not documented within the ACPI spec.
132 * The main entries in the table each contain the following items:
134 * Name - The ACPI reserved name
135 * param_count - Number of arguments to the method
136 * expected_btypes - Allowed type(s) for the return value.
137 * 0 means that no return value is expected.
139 * For methods that return packages, the next entry in the table contains
140 * information about the expected structure of the package. This information
141 * is saved here (rather than in a separate table) in order to minimize the
142 * overall size of the stored data.
144 static const union acpi_predefined_info predefined_names
[] =
146 {{"_AC0", 0, ACPI_RTYPE_INTEGER
}},
147 {{"_AC1", 0, ACPI_RTYPE_INTEGER
}},
148 {{"_AC2", 0, ACPI_RTYPE_INTEGER
}},
149 {{"_AC3", 0, ACPI_RTYPE_INTEGER
}},
150 {{"_AC4", 0, ACPI_RTYPE_INTEGER
}},
151 {{"_AC5", 0, ACPI_RTYPE_INTEGER
}},
152 {{"_AC6", 0, ACPI_RTYPE_INTEGER
}},
153 {{"_AC7", 0, ACPI_RTYPE_INTEGER
}},
154 {{"_AC8", 0, ACPI_RTYPE_INTEGER
}},
155 {{"_AC9", 0, ACPI_RTYPE_INTEGER
}},
156 {{"_ADR", 0, ACPI_RTYPE_INTEGER
}},
157 {{"_AL0", 0, ACPI_RTYPE_PACKAGE
}}, /* Variable-length (Refs) */
158 {{{ACPI_PTYPE1_VAR
, ACPI_RTYPE_REFERENCE
, 0,0}, 0,0}},
160 {{"_AL1", 0, ACPI_RTYPE_PACKAGE
}}, /* Variable-length (Refs) */
161 {{{ACPI_PTYPE1_VAR
, ACPI_RTYPE_REFERENCE
, 0,0}, 0,0}},
163 {{"_AL2", 0, ACPI_RTYPE_PACKAGE
}}, /* Variable-length (Refs) */
164 {{{ACPI_PTYPE1_VAR
, ACPI_RTYPE_REFERENCE
, 0,0}, 0,0}},
166 {{"_AL3", 0, ACPI_RTYPE_PACKAGE
}}, /* Variable-length (Refs) */
167 {{{ACPI_PTYPE1_VAR
, ACPI_RTYPE_REFERENCE
, 0,0}, 0,0}},
169 {{"_AL4", 0, ACPI_RTYPE_PACKAGE
}}, /* Variable-length (Refs) */
170 {{{ACPI_PTYPE1_VAR
, ACPI_RTYPE_REFERENCE
, 0,0}, 0,0}},
172 {{"_AL5", 0, ACPI_RTYPE_PACKAGE
}}, /* Variable-length (Refs) */
173 {{{ACPI_PTYPE1_VAR
, ACPI_RTYPE_REFERENCE
, 0,0}, 0,0}},
175 {{"_AL6", 0, ACPI_RTYPE_PACKAGE
}}, /* Variable-length (Refs) */
176 {{{ACPI_PTYPE1_VAR
, ACPI_RTYPE_REFERENCE
, 0,0}, 0,0}},
178 {{"_AL7", 0, ACPI_RTYPE_PACKAGE
}}, /* Variable-length (Refs) */
179 {{{ACPI_PTYPE1_VAR
, ACPI_RTYPE_REFERENCE
, 0,0}, 0,0}},
181 {{"_AL8", 0, ACPI_RTYPE_PACKAGE
}}, /* Variable-length (Refs) */
182 {{{ACPI_PTYPE1_VAR
, ACPI_RTYPE_REFERENCE
, 0,0}, 0,0}},
184 {{"_AL9", 0, ACPI_RTYPE_PACKAGE
}}, /* Variable-length (Refs) */
185 {{{ACPI_PTYPE1_VAR
, ACPI_RTYPE_REFERENCE
, 0,0}, 0,0}},
187 {{"_ALC", 0, ACPI_RTYPE_INTEGER
}},
188 {{"_ALI", 0, ACPI_RTYPE_INTEGER
}},
189 {{"_ALP", 0, ACPI_RTYPE_INTEGER
}},
190 {{"_ALR", 0, ACPI_RTYPE_PACKAGE
}}, /* Variable-length (Pkgs) each 2 (Ints) */
191 {{{ACPI_PTYPE2
, ACPI_RTYPE_INTEGER
, 2,0}, 0,0}},
193 {{"_ALT", 0, ACPI_RTYPE_INTEGER
}},
194 {{"_ART", 0, ACPI_RTYPE_PACKAGE
}}, /* Variable-length (1 Int(rev), n Pkg (2 Ref/11 Int) */
195 {{{ACPI_PTYPE2_REV_FIXED
, ACPI_RTYPE_REFERENCE
, 2, ACPI_RTYPE_INTEGER
},
198 {{"_BBN", 0, ACPI_RTYPE_INTEGER
}},
199 {{"_BCL", 0, ACPI_RTYPE_PACKAGE
}}, /* Variable-length (Ints) */
200 {{{ACPI_PTYPE1_VAR
, ACPI_RTYPE_INTEGER
, 0,0}, 0,0}},
203 {{"_BCT", 1, ACPI_RTYPE_INTEGER
}},
204 {{"_BDN", 0, ACPI_RTYPE_INTEGER
}},
206 {{"_BIF", 0, ACPI_RTYPE_PACKAGE
}}, /* Fixed-length (9 Int),(4 Str) */
207 {{{ACPI_PTYPE1_FIXED
, ACPI_RTYPE_INTEGER
, 9, ACPI_RTYPE_STRING
}, 4,0}},
209 {{"_BIX", 0, ACPI_RTYPE_PACKAGE
}}, /* Fixed-length (16 Int),(4 Str) */
210 {{{ACPI_PTYPE1_FIXED
, ACPI_RTYPE_INTEGER
, 16, ACPI_RTYPE_STRING
}, 4,
214 {{"_BMA", 1, ACPI_RTYPE_INTEGER
}},
216 {{"_BMD", 0, ACPI_RTYPE_PACKAGE
}}, /* Fixed-length (5 Int) */
217 {{{ACPI_PTYPE1_FIXED
, ACPI_RTYPE_INTEGER
, 5,0}, 0,0}},
219 {{"_BMS", 1, ACPI_RTYPE_INTEGER
}},
220 {{"_BQC", 0, ACPI_RTYPE_INTEGER
}},
221 {{"_BST", 0, ACPI_RTYPE_PACKAGE
}}, /* Fixed-length (4 Int) */
222 {{{ACPI_PTYPE1_FIXED
, ACPI_RTYPE_INTEGER
, 4,0}, 0,0}},
224 {{"_BTM", 1, ACPI_RTYPE_INTEGER
}},
226 {{"_CBA", 0, ACPI_RTYPE_INTEGER
}}, /* See PCI firmware spec 3.0 */
227 {{"_CDM", 0, ACPI_RTYPE_INTEGER
}},
228 {{"_CID", 0, ACPI_RTYPE_INTEGER
| ACPI_RTYPE_STRING
| ACPI_RTYPE_PACKAGE
}}, /* Variable-length (Ints/Strs) */
229 {{{ACPI_PTYPE1_VAR
, ACPI_RTYPE_INTEGER
| ACPI_RTYPE_STRING
, 0,0}, 0,0}},
231 {{"_CRS", 0, ACPI_RTYPE_BUFFER
}},
232 {{"_CRT", 0, ACPI_RTYPE_INTEGER
}},
233 {{"_CSD", 0, ACPI_RTYPE_PACKAGE
}}, /* Variable-length (1 Int(n), n-1 Int) */
234 {{{ACPI_PTYPE2_COUNT
, ACPI_RTYPE_INTEGER
, 0,0}, 0,0}},
236 {{"_CST", 0, ACPI_RTYPE_PACKAGE
}}, /* Variable-length (1 Int(n), n Pkg (1 Buf/3 Int) */
237 {{{ACPI_PTYPE2_PKG_COUNT
,ACPI_RTYPE_BUFFER
, 1, ACPI_RTYPE_INTEGER
}, 3,0}},
239 {{"_DCK", 1, ACPI_RTYPE_INTEGER
}},
240 {{"_DCS", 0, ACPI_RTYPE_INTEGER
}},
241 {{"_DDC", 1, ACPI_RTYPE_INTEGER
| ACPI_RTYPE_BUFFER
}},
242 {{"_DDN", 0, ACPI_RTYPE_STRING
}},
243 {{"_DGS", 0, ACPI_RTYPE_INTEGER
}},
245 {{"_DMA", 0, ACPI_RTYPE_BUFFER
}},
246 {{"_DOD", 0, ACPI_RTYPE_PACKAGE
}}, /* Variable-length (Ints) */
247 {{{ACPI_PTYPE1_VAR
, ACPI_RTYPE_INTEGER
, 0,0}, 0,0}},
250 {{"_DSM", 4, ACPI_RTYPE_ALL
}}, /* Must return a type, but it can be of any type */
254 {{"_EC_", 0, ACPI_RTYPE_INTEGER
}},
255 {{"_EDL", 0, ACPI_RTYPE_PACKAGE
}}, /* Variable-length (Refs)*/
256 {{{ACPI_PTYPE1_VAR
, ACPI_RTYPE_REFERENCE
, 0,0}, 0,0}},
263 {{"_EJD", 0, ACPI_RTYPE_STRING
}},
264 {{"_FDE", 0, ACPI_RTYPE_BUFFER
}},
265 {{"_FDI", 0, ACPI_RTYPE_PACKAGE
}}, /* Fixed-length (16 Int) */
266 {{{ACPI_PTYPE1_FIXED
, ACPI_RTYPE_INTEGER
, 16,0}, 0,0}},
269 {{"_FIF", 0, ACPI_RTYPE_PACKAGE
}}, /* Fixed-length (4 Int) */
270 {{{ACPI_PTYPE1_FIXED
, ACPI_RTYPE_INTEGER
, 4, 0}, 0, 0}},
272 {{"_FIX", 0, ACPI_RTYPE_PACKAGE
}}, /* Variable-length (Ints) */
273 {{{ACPI_PTYPE1_VAR
, ACPI_RTYPE_INTEGER
, 0,0}, 0,0}},
275 {{"_FPS", 0, ACPI_RTYPE_PACKAGE
}}, /* Variable-length (1 Int(rev), n Pkg (5 Int) */
276 {{{ACPI_PTYPE2_REV_FIXED
, ACPI_RTYPE_INTEGER
, 5, 0}, 0, 0}},
279 {{"_FST", 0, ACPI_RTYPE_PACKAGE
}}, /* Fixed-length (3 Int) */
280 {{{ACPI_PTYPE1_FIXED
, ACPI_RTYPE_INTEGER
, 3, 0}, 0, 0}},
282 {{"_GAI", 0, ACPI_RTYPE_INTEGER
}},
283 {{"_GHL", 0, ACPI_RTYPE_INTEGER
}},
284 {{"_GLK", 0, ACPI_RTYPE_INTEGER
}},
285 {{"_GPD", 0, ACPI_RTYPE_INTEGER
}},
286 {{"_GPE", 0, ACPI_RTYPE_INTEGER
}}, /* _GPE method, not _GPE scope */
287 {{"_GSB", 0, ACPI_RTYPE_INTEGER
}},
288 {{"_GTF", 0, ACPI_RTYPE_BUFFER
}},
289 {{"_GTM", 0, ACPI_RTYPE_BUFFER
}},
291 {{"_HID", 0, ACPI_RTYPE_INTEGER
| ACPI_RTYPE_STRING
}},
292 {{"_HOT", 0, ACPI_RTYPE_INTEGER
}},
293 {{"_HPP", 0, ACPI_RTYPE_PACKAGE
}}, /* Fixed-length (4 Int) */
294 {{{ACPI_PTYPE1_FIXED
, ACPI_RTYPE_INTEGER
, 4,0}, 0,0}},
297 * For _HPX, a single package is returned, containing a Variable-length number
298 * of sub-packages. Each sub-package contains a PCI record setting.
299 * There are several different type of record settings, of different
300 * lengths, but all elements of all settings are Integers.
302 {{"_HPX", 0, ACPI_RTYPE_PACKAGE
}}, /* Variable-length (Pkgs) each (var Ints) */
303 {{{ACPI_PTYPE2_MIN
, ACPI_RTYPE_INTEGER
, 5,0}, 0,0}},
305 {{"_IFT", 0, ACPI_RTYPE_INTEGER
}}, /* See IPMI spec */
309 {{"_LID", 0, ACPI_RTYPE_INTEGER
}},
310 {{"_MAT", 0, ACPI_RTYPE_BUFFER
}},
311 {{"_MBM", 0, ACPI_RTYPE_PACKAGE
}}, /* Fixed-length (8 Int) */
312 {{{ACPI_PTYPE1_FIXED
, ACPI_RTYPE_INTEGER
, 8, 0}, 0, 0}},
314 {{"_MLS", 0, ACPI_RTYPE_PACKAGE
}}, /* Variable-length (Pkgs) each (2 Str) */
315 {{{ACPI_PTYPE2
, ACPI_RTYPE_STRING
, 2,0}, 0,0}},
318 {{"_MSM", 4, ACPI_RTYPE_INTEGER
}},
319 {{"_NTT", 0, ACPI_RTYPE_INTEGER
}},
322 {{"_OS_", 0, ACPI_RTYPE_STRING
}},
323 {{"_OSC", 4, ACPI_RTYPE_BUFFER
}},
325 {{"_PAI", 1, ACPI_RTYPE_INTEGER
}},
326 {{"_PCL", 0, ACPI_RTYPE_PACKAGE
}}, /* Variable-length (Refs) */
327 {{{ACPI_PTYPE1_VAR
, ACPI_RTYPE_REFERENCE
, 0,0}, 0,0}},
329 {{"_PCT", 0, ACPI_RTYPE_PACKAGE
}}, /* Fixed-length (2 Buf) */
330 {{{ACPI_PTYPE1_FIXED
, ACPI_RTYPE_BUFFER
, 2,0}, 0,0}},
333 {{"_PDL", 0, ACPI_RTYPE_INTEGER
}},
335 {{"_PIF", 0, ACPI_RTYPE_PACKAGE
}}, /* Fixed-length (3 Int),(3 Str) */
336 {{{ACPI_PTYPE1_FIXED
, ACPI_RTYPE_INTEGER
, 3, ACPI_RTYPE_STRING
}, 3, 0}},
338 {{"_PLD", 0, ACPI_RTYPE_PACKAGE
}}, /* Variable-length (Bufs) */
339 {{{ACPI_PTYPE1_VAR
, ACPI_RTYPE_BUFFER
, 0,0}, 0,0}},
341 {{"_PMC", 0, ACPI_RTYPE_PACKAGE
}}, /* Fixed-length (11 Int),(3 Str) */
342 {{{ACPI_PTYPE1_FIXED
, ACPI_RTYPE_INTEGER
, 11, ACPI_RTYPE_STRING
}, 3,
345 {{"_PMD", 0, ACPI_RTYPE_PACKAGE
}}, /* Variable-length (Refs) */
346 {{{ACPI_PTYPE1_VAR
, ACPI_RTYPE_REFERENCE
, 0, 0}, 0, 0}},
348 {{"_PMM", 0, ACPI_RTYPE_INTEGER
}},
349 {{"_PPC", 0, ACPI_RTYPE_INTEGER
}},
350 {{"_PPE", 0, ACPI_RTYPE_INTEGER
}}, /* See dig64 spec */
351 {{"_PR0", 0, ACPI_RTYPE_PACKAGE
}}, /* Variable-length (Refs) */
352 {{{ACPI_PTYPE1_VAR
, ACPI_RTYPE_REFERENCE
, 0,0}, 0,0}},
354 {{"_PR1", 0, ACPI_RTYPE_PACKAGE
}}, /* Variable-length (Refs) */
355 {{{ACPI_PTYPE1_VAR
, ACPI_RTYPE_REFERENCE
, 0,0}, 0,0}},
357 {{"_PR2", 0, ACPI_RTYPE_PACKAGE
}}, /* Variable-length (Refs) */
358 {{{ACPI_PTYPE1_VAR
, ACPI_RTYPE_REFERENCE
, 0,0}, 0,0}},
360 {{"_PR3", 0, ACPI_RTYPE_PACKAGE
}}, /* Variable-length (Refs) */
361 {{{ACPI_PTYPE1_VAR
, ACPI_RTYPE_REFERENCE
, 0, 0}, 0, 0}},
363 {{"_PRL", 0, ACPI_RTYPE_PACKAGE
}}, /* Variable-length (Refs) */
364 {{{ACPI_PTYPE1_VAR
, ACPI_RTYPE_REFERENCE
, 0, 0}, 0, 0}},
366 {{"_PRS", 0, ACPI_RTYPE_BUFFER
}},
369 * For _PRT, many BIOSs reverse the 3rd and 4th Package elements (Source
370 * and source_index). This bug is so prevalent that there is code in the
371 * ACPICA Resource Manager to detect this and switch them back. For now,
372 * do not allow and issue a warning. To allow this and eliminate the
373 * warning, add the ACPI_RTYPE_REFERENCE type to the 4th element (index 3)
374 * in the statement below.
376 {{"_PRT", 0, ACPI_RTYPE_PACKAGE
}}, /* Variable-length (Pkgs) each (4): Int,Int,Int/Ref,Int */
377 {{{ACPI_PTYPE2_FIXED
, 4, ACPI_RTYPE_INTEGER
,ACPI_RTYPE_INTEGER
},
378 ACPI_RTYPE_INTEGER
| ACPI_RTYPE_REFERENCE
,
379 ACPI_RTYPE_INTEGER
}},
381 {{"_PRW", 0, ACPI_RTYPE_PACKAGE
}}, /* Variable-length (Pkgs) each: Pkg/Int,Int,[Variable-length Refs] (Pkg is Ref/Int) */
382 {{{ACPI_PTYPE1_OPTION
, 2, ACPI_RTYPE_INTEGER
| ACPI_RTYPE_PACKAGE
,
383 ACPI_RTYPE_INTEGER
}, ACPI_RTYPE_REFERENCE
,0}},
389 {{"_PSC", 0, ACPI_RTYPE_INTEGER
}},
390 {{"_PSD", 0, ACPI_RTYPE_PACKAGE
}}, /* Variable-length (Pkgs) each (5 Int) with count */
391 {{{ACPI_PTYPE2_COUNT
, ACPI_RTYPE_INTEGER
,0,0}, 0,0}},
393 {{"_PSL", 0, ACPI_RTYPE_PACKAGE
}}, /* Variable-length (Refs) */
394 {{{ACPI_PTYPE1_VAR
, ACPI_RTYPE_REFERENCE
, 0,0}, 0,0}},
396 {{"_PSR", 0, ACPI_RTYPE_INTEGER
}},
397 {{"_PSS", 0, ACPI_RTYPE_PACKAGE
}}, /* Variable-length (Pkgs) each (6 Int) */
398 {{{ACPI_PTYPE2
, ACPI_RTYPE_INTEGER
, 6,0}, 0,0}},
400 {{"_PSV", 0, ACPI_RTYPE_INTEGER
}},
402 {{"_PTC", 0, ACPI_RTYPE_PACKAGE
}}, /* Fixed-length (2 Buf) */
403 {{{ACPI_PTYPE1_FIXED
, ACPI_RTYPE_BUFFER
, 2,0}, 0,0}},
405 {{"_PTP", 2, ACPI_RTYPE_INTEGER
}},
407 {{"_PUR", 0, ACPI_RTYPE_PACKAGE
}}, /* Fixed-length (2 Int) */
408 {{{ACPI_PTYPE1_FIXED
, ACPI_RTYPE_INTEGER
, 2, 0}, 0, 0}},
410 {{"_PXM", 0, ACPI_RTYPE_INTEGER
}},
412 {{"_REV", 0, ACPI_RTYPE_INTEGER
}},
413 {{"_RMV", 0, ACPI_RTYPE_INTEGER
}},
414 {{"_ROM", 2, ACPI_RTYPE_BUFFER
}},
415 {{"_RTV", 0, ACPI_RTYPE_INTEGER
}},
418 * For _S0_ through _S5_, the ACPI spec defines a return Package
419 * containing 1 Integer, but most DSDTs have it wrong - 2,3, or 4 integers.
420 * Allow this by making the objects "Variable-length length", but all elements
423 {{"_S0_", 0, ACPI_RTYPE_PACKAGE
}}, /* Fixed-length (1 Int) */
424 {{{ACPI_PTYPE1_VAR
, ACPI_RTYPE_INTEGER
, 1,0}, 0,0}},
426 {{"_S1_", 0, ACPI_RTYPE_PACKAGE
}}, /* Fixed-length (1 Int) */
427 {{{ACPI_PTYPE1_VAR
, ACPI_RTYPE_INTEGER
, 1,0}, 0,0}},
429 {{"_S2_", 0, ACPI_RTYPE_PACKAGE
}}, /* Fixed-length (1 Int) */
430 {{{ACPI_PTYPE1_VAR
, ACPI_RTYPE_INTEGER
, 1,0}, 0,0}},
432 {{"_S3_", 0, ACPI_RTYPE_PACKAGE
}}, /* Fixed-length (1 Int) */
433 {{{ACPI_PTYPE1_VAR
, ACPI_RTYPE_INTEGER
, 1,0}, 0,0}},
435 {{"_S4_", 0, ACPI_RTYPE_PACKAGE
}}, /* Fixed-length (1 Int) */
436 {{{ACPI_PTYPE1_VAR
, ACPI_RTYPE_INTEGER
, 1,0}, 0,0}},
438 {{"_S5_", 0, ACPI_RTYPE_PACKAGE
}}, /* Fixed-length (1 Int) */
439 {{{ACPI_PTYPE1_VAR
, ACPI_RTYPE_INTEGER
, 1,0}, 0,0}},
441 {{"_S1D", 0, ACPI_RTYPE_INTEGER
}},
442 {{"_S2D", 0, ACPI_RTYPE_INTEGER
}},
443 {{"_S3D", 0, ACPI_RTYPE_INTEGER
}},
444 {{"_S4D", 0, ACPI_RTYPE_INTEGER
}},
445 {{"_S0W", 0, ACPI_RTYPE_INTEGER
}},
446 {{"_S1W", 0, ACPI_RTYPE_INTEGER
}},
447 {{"_S2W", 0, ACPI_RTYPE_INTEGER
}},
448 {{"_S3W", 0, ACPI_RTYPE_INTEGER
}},
449 {{"_S4W", 0, ACPI_RTYPE_INTEGER
}},
450 {{"_SBS", 0, ACPI_RTYPE_INTEGER
}},
451 {{"_SCP", 0x13, 0}}, /* Acpi 1.0 allowed 1 arg. Acpi 3.0 expanded to 3 args. Allow both. */
452 /* Note: the 3-arg definition may be removed for ACPI 4.0 */
454 {{"_SEG", 0, ACPI_RTYPE_INTEGER
}},
455 {{"_SHL", 1, ACPI_RTYPE_INTEGER
}},
456 {{"_SLI", 0, ACPI_RTYPE_BUFFER
}},
457 {{"_SPD", 1, ACPI_RTYPE_INTEGER
}},
459 {{"_SRV", 0, ACPI_RTYPE_INTEGER
}}, /* See IPMI spec */
461 {{"_STA", 0, ACPI_RTYPE_INTEGER
}},
463 {{"_STP", 2, ACPI_RTYPE_INTEGER
}},
464 {{"_STR", 0, ACPI_RTYPE_BUFFER
}},
465 {{"_STV", 2, ACPI_RTYPE_INTEGER
}},
466 {{"_SUN", 0, ACPI_RTYPE_INTEGER
}},
467 {{"_SWS", 0, ACPI_RTYPE_INTEGER
}},
468 {{"_TC1", 0, ACPI_RTYPE_INTEGER
}},
469 {{"_TC2", 0, ACPI_RTYPE_INTEGER
}},
470 {{"_TIP", 1, ACPI_RTYPE_INTEGER
}},
471 {{"_TIV", 1, ACPI_RTYPE_INTEGER
}},
472 {{"_TMP", 0, ACPI_RTYPE_INTEGER
}},
473 {{"_TPC", 0, ACPI_RTYPE_INTEGER
}},
475 {{"_TRT", 0, ACPI_RTYPE_PACKAGE
}}, /* Variable-length (Pkgs) each 2_ref/6_int */
476 {{{ACPI_PTYPE2
, ACPI_RTYPE_REFERENCE
, 2, ACPI_RTYPE_INTEGER
}, 6, 0}},
478 {{"_TSD", 0, ACPI_RTYPE_PACKAGE
}}, /* Variable-length (Pkgs) each 5_int with count */
479 {{{ACPI_PTYPE2_COUNT
,ACPI_RTYPE_INTEGER
, 5,0}, 0,0}},
481 {{"_TSP", 0, ACPI_RTYPE_INTEGER
}},
482 {{"_TSS", 0, ACPI_RTYPE_PACKAGE
}}, /* Variable-length (Pkgs) each 5_int */
483 {{{ACPI_PTYPE2
, ACPI_RTYPE_INTEGER
, 5,0}, 0,0}},
485 {{"_TST", 0, ACPI_RTYPE_INTEGER
}},
487 {{"_TZD", 0, ACPI_RTYPE_PACKAGE
}}, /* Variable-length (Refs) */
488 {{{ACPI_PTYPE1_VAR
, ACPI_RTYPE_REFERENCE
, 0,0}, 0,0}},
490 {{"_TZM", 0, ACPI_RTYPE_REFERENCE
}},
491 {{"_TZP", 0, ACPI_RTYPE_INTEGER
}},
492 {{"_UID", 0, ACPI_RTYPE_INTEGER
| ACPI_RTYPE_STRING
}},
493 {{"_UPC", 0, ACPI_RTYPE_PACKAGE
}}, /* Fixed-length (4 Int) */
494 {{{ACPI_PTYPE1_FIXED
, ACPI_RTYPE_INTEGER
, 4,0}, 0,0}},
496 {{"_UPD", 0, ACPI_RTYPE_INTEGER
}},
497 {{"_UPP", 0, ACPI_RTYPE_INTEGER
}},
498 {{"_VPO", 0, ACPI_RTYPE_INTEGER
}},
500 /* Acpi 1.0 defined _WAK with no return value. Later, it was changed to return a package */
502 {{"_WAK", 1, ACPI_RTYPE_NONE
| ACPI_RTYPE_INTEGER
| ACPI_RTYPE_PACKAGE
}},
503 {{{ACPI_PTYPE1_FIXED
, ACPI_RTYPE_INTEGER
, 2,0}, 0,0}}, /* Fixed-length (2 Int), but is optional */
505 {{{0,0,0,0}, 0,0}} /* Table terminator */
509 /* Not implemented */
511 {{"_WDG", 0, ACPI_RTYPE_BUFFER
}}, /* MS Extension */
512 {{"_WED", 1, ACPI_RTYPE_PACKAGE
}}, /* MS Extension */
514 /* This is an internally implemented control method, no need to check */
515 {{"_OSI", 1, ACPI_RTYPE_INTEGER
}},
519 _PRT
- currently ignore reversed entries
. attempt to fix here
?
520 think about possibly fixing package elements like _BIF
, etc
.