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 number of sub-packages. Each of the
68 * 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 *****************************************************************************/
96 enum acpi_return_package_types {
97 ACPI_PTYPE1_FIXED = 1,
99 ACPI_PTYPE1_OPTION = 3,
101 ACPI_PTYPE2_COUNT = 5,
102 ACPI_PTYPE2_PKG_COUNT = 6,
103 ACPI_PTYPE2_FIXED = 7,
108 * Predefined method/object information table.
110 * These are the names that can actually be evaluated via acpi_evaluate_object.
111 * Not present in this table are the following:
113 * 1) Predefined/Reserved names that are never evaluated via acpi_evaluate_object:
114 * _Lxx and _Exx GPE methods
116 * _T_x compiler temporary variables
118 * 2) Predefined names that never actually exist within the AML code:
119 * Predefined resource descriptor field names
121 * 3) Predefined names that are implemented within ACPICA:
124 * 4) Some predefined names that are not documented within the ACPI spec.
127 * The main entries in the table each contain the following items:
129 * Name - The ACPI reserved name
130 * param_count - Number of arguments to the method
131 * expected_btypes - Allowed type(s) for the return value.
132 * 0 means that no return value is expected.
134 * For methods that return packages, the next entry in the table contains
135 * information about the expected structure of the package. This information
136 * is saved here (rather than in a separate table) in order to minimize the
137 * overall size of the stored data.
139 static const union acpi_predefined_info predefined_names[] = {
140 {.info = {"_AC0", 0, ACPI_RTYPE_INTEGER}},
141 {.info = {"_AC1", 0, ACPI_RTYPE_INTEGER}},
142 {.info = {"_AC2", 0, ACPI_RTYPE_INTEGER}},
143 {.info = {"_AC3", 0, ACPI_RTYPE_INTEGER}},
144 {.info = {"_AC4", 0, ACPI_RTYPE_INTEGER}},
145 {.info = {"_AC5", 0, ACPI_RTYPE_INTEGER}},
146 {.info = {"_AC6", 0, ACPI_RTYPE_INTEGER}},
147 {.info = {"_AC7", 0, ACPI_RTYPE_INTEGER}},
148 {.info = {"_AC8", 0, ACPI_RTYPE_INTEGER}},
149 {.info = {"_AC9", 0, ACPI_RTYPE_INTEGER}},
150 {.info = {"_ADR", 0, ACPI_RTYPE_INTEGER}},
151 {.info = {"_AL0", 0, ACPI_RTYPE_PACKAGE}}, {.ret_info = {ACPI_PTYPE1_VAR, ACPI_RTYPE_REFERENCE, 0, 0, 0, 0}}, /* variable (Refs) */
152 {.info = {"_AL1", 0, ACPI_RTYPE_PACKAGE}}, {.ret_info = {ACPI_PTYPE1_VAR, ACPI_RTYPE_REFERENCE, 0, 0, 0, 0}}, /* variable (Refs) */
153 {.info = {"_AL2", 0, ACPI_RTYPE_PACKAGE}}, {.ret_info = {ACPI_PTYPE1_VAR, ACPI_RTYPE_REFERENCE, 0, 0, 0, 0}}, /* variable (Refs) */
154 {.info = {"_AL3", 0, ACPI_RTYPE_PACKAGE}}, {.ret_info = {ACPI_PTYPE1_VAR, ACPI_RTYPE_REFERENCE, 0, 0, 0, 0}}, /* variable (Refs) */
155 {.info = {"_AL4", 0, ACPI_RTYPE_PACKAGE}}, {.ret_info = {ACPI_PTYPE1_VAR, ACPI_RTYPE_REFERENCE, 0, 0, 0, 0}}, /* variable (Refs) */
156 {.info = {"_AL5", 0, ACPI_RTYPE_PACKAGE}}, {.ret_info = {ACPI_PTYPE1_VAR, ACPI_RTYPE_REFERENCE, 0, 0, 0, 0}}, /* variable (Refs) */
157 {.info = {"_AL6", 0, ACPI_RTYPE_PACKAGE}}, {.ret_info = {ACPI_PTYPE1_VAR, ACPI_RTYPE_REFERENCE, 0, 0, 0, 0}}, /* variable (Refs) */
158 {.info = {"_AL7", 0, ACPI_RTYPE_PACKAGE}}, {.ret_info = {ACPI_PTYPE1_VAR, ACPI_RTYPE_REFERENCE, 0, 0, 0, 0}}, /* variable (Refs) */
159 {.info = {"_AL8", 0, ACPI_RTYPE_PACKAGE}}, {.ret_info = {ACPI_PTYPE1_VAR, ACPI_RTYPE_REFERENCE, 0, 0, 0, 0}}, /* variable (Refs) */
160 {.info = {"_AL9", 0, ACPI_RTYPE_PACKAGE}}, {.ret_info = {ACPI_PTYPE1_VAR, ACPI_RTYPE_REFERENCE, 0, 0, 0, 0}}, /* variable (Refs) */
161 {.info = {"_ALC", 0, ACPI_RTYPE_INTEGER}},
162 {.info = {"_ALI", 0, ACPI_RTYPE_INTEGER}},
163 {.info = {"_ALP", 0, ACPI_RTYPE_INTEGER}},
164 {.info = {"_ALR", 0, ACPI_RTYPE_PACKAGE}}, {.ret_info = {ACPI_PTYPE2, ACPI_RTYPE_INTEGER, 2, 0, 0, 0}}, /* variable (Pkgs) each 2 (Ints) */
165 {.info = {"_ALT", 0, ACPI_RTYPE_INTEGER}},
166 {.info = {"_BBN", 0, ACPI_RTYPE_INTEGER}},
167 {.info = {"_BCL", 0, ACPI_RTYPE_PACKAGE}}, {.ret_info = {ACPI_PTYPE1_VAR, ACPI_RTYPE_INTEGER, 0, 0, 0, 0}}, /* variable (Ints) */
168 {.info = {"_BCM", 1, 0}},
169 {.info = {"_BDN", 0, ACPI_RTYPE_INTEGER}},
170 {.info = {"_BFS", 1, 0}},
171 {.info = {"_BIF", 0, ACPI_RTYPE_PACKAGE}}, {.ret_info = {ACPI_PTYPE1_FIXED, ACPI_RTYPE_INTEGER,
173 ACPI_RTYPE_STRING | ACPI_RTYPE_BUFFER, 4, 0}}, /* fixed (9 Int),(4 Str) */
174 {.info = {"_BLT", 3, 0}},
175 {.info = {"_BMC", 1, 0}},
176 {.info = {"_BMD", 0, ACPI_RTYPE_PACKAGE}}, {.ret_info = {ACPI_PTYPE1_FIXED, ACPI_RTYPE_INTEGER, 5, 0, 0, 0}}, /* fixed (5 Int) */
177 {.info = {"_BQC", 0, ACPI_RTYPE_INTEGER}},
178 {.info = {"_BST", 0, ACPI_RTYPE_PACKAGE}}, {.ret_info = {ACPI_PTYPE1_FIXED, ACPI_RTYPE_INTEGER, 4, 0, 0, 0}}, /* fixed (4 Int) */
179 {.info = {"_BTM", 1, ACPI_RTYPE_INTEGER}},
180 {.info = {"_BTP", 1, 0}},
181 {.info = {"_CBA", 0, ACPI_RTYPE_INTEGER}}, /* see PCI firmware spec 3.0 */
183 ACPI_RTYPE_INTEGER | ACPI_RTYPE_STRING | ACPI_RTYPE_PACKAGE}},
184 {.ret_info = {ACPI_PTYPE1_VAR, ACPI_RTYPE_INTEGER | ACPI_RTYPE_STRING, 0, 0, 0, 0}}, /* variable (Ints/Strs) */
185 {.info = {"_CRS", 0, ACPI_RTYPE_BUFFER}},
186 {.info = {"_CRT", 0, ACPI_RTYPE_INTEGER}},
187 {.info = {"_CSD", 0, ACPI_RTYPE_PACKAGE}}, {.ret_info = {ACPI_PTYPE2_COUNT, ACPI_RTYPE_INTEGER, 0, 0, 0, 0}}, /* variable (1 Int(n), n-1 Int) */
188 {.info = {"_CST", 0, ACPI_RTYPE_PACKAGE}}, {.ret_info = {ACPI_PTYPE2_PKG_COUNT,
189 ACPI_RTYPE_BUFFER, 1,
190 ACPI_RTYPE_INTEGER, 3, 0}}, /* variable (1 Int(n), n Pkg (1 Buf/3 Int) */
191 {.info = {"_DCK", 1, ACPI_RTYPE_INTEGER}},
192 {.info = {"_DCS", 0, ACPI_RTYPE_INTEGER}},
193 {.info = {"_DDC", 1, ACPI_RTYPE_INTEGER | ACPI_RTYPE_BUFFER}},
194 {.info = {"_DDN", 0, ACPI_RTYPE_STRING}},
195 {.info = {"_DGS", 0, ACPI_RTYPE_INTEGER}},
196 {.info = {"_DIS", 0, 0}},
197 {.info = {"_DMA", 0, ACPI_RTYPE_BUFFER}},
198 {.info = {"_DOD", 0, ACPI_RTYPE_PACKAGE}}, {.ret_info = {ACPI_PTYPE1_VAR, ACPI_RTYPE_INTEGER, 0, 0, 0, 0}}, /* variable (Ints) */
199 {.info = {"_DOS", 1, 0}},
200 {.info = {"_DSM", 4, ACPI_RTYPE_ALL}}, /* Must return a type, but it can be of any type */
201 {.info = {"_DSS", 1, 0}},
202 {.info = {"_DSW", 3, 0}},
203 {.info = {"_EC_", 0, ACPI_RTYPE_INTEGER}},
204 {.info = {"_EDL", 0, ACPI_RTYPE_PACKAGE}}, {.ret_info = {ACPI_PTYPE1_VAR, ACPI_RTYPE_REFERENCE, 0, 0, 0, 0}}, /* variable (Refs) */
205 {.info = {"_EJ0", 1, 0}},
206 {.info = {"_EJ1", 1, 0}},
207 {.info = {"_EJ2", 1, 0}},
208 {.info = {"_EJ3", 1, 0}},
209 {.info = {"_EJ4", 1, 0}},
210 {.info = {"_EJD", 0, ACPI_RTYPE_STRING}},
211 {.info = {"_FDE", 0, ACPI_RTYPE_BUFFER}},
212 {.info = {"_FDI", 0, ACPI_RTYPE_PACKAGE}}, {.ret_info = {ACPI_PTYPE1_FIXED, ACPI_RTYPE_INTEGER, 16, 0, 0, 0}}, /* fixed (16 Int) */
213 {.info = {"_FDM", 1, 0}},
214 {.info = {"_FIX", 0, ACPI_RTYPE_PACKAGE}}, {.ret_info = {ACPI_PTYPE1_VAR, ACPI_RTYPE_INTEGER, 0, 0, 0, 0}}, /* variable (Ints) */
215 {.info = {"_GLK", 0, ACPI_RTYPE_INTEGER}},
216 {.info = {"_GPD", 0, ACPI_RTYPE_INTEGER}},
217 {.info = {"_GPE", 0, ACPI_RTYPE_INTEGER}}, /* _GPE method, not _GPE scope */
218 {.info = {"_GSB", 0, ACPI_RTYPE_INTEGER}},
219 {.info = {"_GTF", 0, ACPI_RTYPE_BUFFER}},
220 {.info = {"_GTM", 0, ACPI_RTYPE_BUFFER}},
221 {.info = {"_GTS", 1, 0}},
222 {.info = {"_HID", 0, ACPI_RTYPE_INTEGER | ACPI_RTYPE_STRING}},
223 {.info = {"_HOT", 0, ACPI_RTYPE_INTEGER}},
224 {.info = {"_HPP", 0, ACPI_RTYPE_PACKAGE}}, {.ret_info = {ACPI_PTYPE1_FIXED, ACPI_RTYPE_INTEGER, 4, 0, 0, 0}}, /* fixed (4 Int) */
227 * For _HPX, a single package is returned, containing a variable number of sub-packages.
228 * Each sub-package contains a PCI record setting. There are several different type of
229 * record settings, of different lengths, but all elements of all settings are Integers.
231 {.info = {"_HPX", 0, ACPI_RTYPE_PACKAGE}}, {.ret_info = {ACPI_PTYPE2_MIN, ACPI_RTYPE_INTEGER, 5, 0, 0, 0}}, /* variable (Pkgs) each (var Ints) */
232 {.info = {"_IFT", 0, ACPI_RTYPE_INTEGER}}, /* see IPMI spec */
233 {.info = {"_INI", 0, 0}},
234 {.info = {"_IRC", 0, 0}},
235 {.info = {"_LCK", 1, 0}},
236 {.info = {"_LID", 0, ACPI_RTYPE_INTEGER}},
237 {.info = {"_MAT", 0, ACPI_RTYPE_BUFFER}},
238 {.info = {"_MLS", 0, ACPI_RTYPE_PACKAGE}}, {.ret_info = {ACPI_PTYPE2, ACPI_RTYPE_STRING, 2, 0, 0, 0}}, /* variable (Pkgs) each (2 Str) */
239 {.info = {"_MSG", 1, 0}},
240 {.info = {"_OFF", 0, 0}},
241 {.info = {"_ON_", 0, 0}},
242 {.info = {"_OS_", 0, ACPI_RTYPE_STRING}},
243 {.info = {"_OSC", 4, ACPI_RTYPE_BUFFER}},
244 {.info = {"_OST", 3, 0}},
245 {.info = {"_PCL", 0, ACPI_RTYPE_PACKAGE}}, {.ret_info = {ACPI_PTYPE1_VAR, ACPI_RTYPE_REFERENCE, 0, 0, 0, 0}}, /* variable (Refs) */
246 {.info = {"_PCT", 0, ACPI_RTYPE_PACKAGE}}, {.ret_info = {ACPI_PTYPE1_FIXED, ACPI_RTYPE_BUFFER, 2, 0, 0, 0}}, /* fixed (2 Buf) */
247 {.info = {"_PDC", 1, 0}},
248 {.info = {"_PIC", 1, 0}},
249 {.info = {"_PLD", 0, ACPI_RTYPE_PACKAGE}}, {.ret_info = {ACPI_PTYPE1_VAR, ACPI_RTYPE_BUFFER, 0, 0, 0, 0}}, /* variable (Bufs) */
250 {.info = {"_PPC", 0, ACPI_RTYPE_INTEGER}},
251 {.info = {"_PPE", 0, ACPI_RTYPE_INTEGER}}, /* see dig64 spec */
252 {.info = {"_PR0", 0, ACPI_RTYPE_PACKAGE}}, {.ret_info = {ACPI_PTYPE1_VAR, ACPI_RTYPE_REFERENCE, 0, 0, 0, 0}}, /* variable (Refs) */
253 {.info = {"_PR1", 0, ACPI_RTYPE_PACKAGE}}, {.ret_info = {ACPI_PTYPE1_VAR, ACPI_RTYPE_REFERENCE, 0, 0, 0, 0}}, /* variable (Refs) */
254 {.info = {"_PR2", 0, ACPI_RTYPE_PACKAGE}}, {.ret_info = {ACPI_PTYPE1_VAR, ACPI_RTYPE_REFERENCE, 0, 0, 0, 0}}, /* variable (Refs) */
255 {.info = {"_PRS", 0, ACPI_RTYPE_BUFFER}},
258 * For _PRT, many BIOSs reverse the 2nd and 3rd Package elements. This bug is so prevalent that there
259 * is code in the ACPICA Resource Manager to detect this and switch them back. For now, do not allow
260 * and issue a warning. To allow this and eliminate the warning, add the ACPI_RTYPE_REFERENCE
261 * type to the 2nd element (index 1) in the statement below.
263 {.info = {"_PRT", 0, ACPI_RTYPE_PACKAGE}}, {.ret_info = {ACPI_PTYPE2_FIXED, 4,
266 ACPI_RTYPE_INTEGER | ACPI_RTYPE_REFERENCE, ACPI_RTYPE_INTEGER}}, /* variable (Pkgs) each (4): Int,Int,Int/Ref,Int */
268 {.info = {"_PRW", 0, ACPI_RTYPE_PACKAGE}}, {.ret_info = {ACPI_PTYPE1_OPTION, 2,
271 ACPI_RTYPE_INTEGER, ACPI_RTYPE_REFERENCE, 0}}, /* variable (Pkgs) each: Pkg/Int,Int,[variable Refs] (Pkg is Ref/Int) */
273 {.info = {"_PS0", 0, 0}},
274 {.info = {"_PS1", 0, 0}},
275 {.info = {"_PS2", 0, 0}},
276 {.info = {"_PS3", 0, 0}},
277 {.info = {"_PSC", 0, ACPI_RTYPE_INTEGER}},
278 {.info = {"_PSD", 0, ACPI_RTYPE_PACKAGE}}, {.ret_info = {ACPI_PTYPE2_COUNT, ACPI_RTYPE_INTEGER, 0, 0, 0, 0}}, /* variable (Pkgs) each (5 Int) with count */
279 {.info = {"_PSL", 0, ACPI_RTYPE_PACKAGE}}, {.ret_info = {ACPI_PTYPE1_VAR, ACPI_RTYPE_REFERENCE, 0, 0, 0, 0}}, /* variable (Refs) */
280 {.info = {"_PSR", 0, ACPI_RTYPE_INTEGER}},
281 {.info = {"_PSS", 0, ACPI_RTYPE_PACKAGE}}, {.ret_info = {ACPI_PTYPE2, ACPI_RTYPE_INTEGER, 6, 0, 0, 0}}, /* variable (Pkgs) each (6 Int) */
282 {.info = {"_PSV", 0, ACPI_RTYPE_INTEGER}},
283 {.info = {"_PSW", 1, 0}},
284 {.info = {"_PTC", 0, ACPI_RTYPE_PACKAGE}}, {.ret_info = {ACPI_PTYPE1_FIXED, ACPI_RTYPE_BUFFER, 2, 0, 0, 0}}, /* fixed (2 Buf) */
285 {.info = {"_PTS", 1, 0}},
286 {.info = {"_PXM", 0, ACPI_RTYPE_INTEGER}},
287 {.info = {"_REG", 2, 0}},
288 {.info = {"_REV", 0, ACPI_RTYPE_INTEGER}},
289 {.info = {"_RMV", 0, ACPI_RTYPE_INTEGER}},
290 {.info = {"_ROM", 2, ACPI_RTYPE_BUFFER}},
291 {.info = {"_RTV", 0, ACPI_RTYPE_INTEGER}},
294 * For _S0_ through _S5_, the ACPI spec defines a return Package containing 1 Integer,
295 * but most DSDTs have it wrong - 2,3, or 4 integers. Allow this by making the objects "variable length",
296 * but all elements must be Integers.
298 {.info = {"_S0_", 0, ACPI_RTYPE_PACKAGE}}, {.ret_info = {ACPI_PTYPE1_VAR, ACPI_RTYPE_INTEGER, 1, 0, 0, 0}}, /* fixed (1 Int) */
299 {.info = {"_S1_", 0, ACPI_RTYPE_PACKAGE}}, {.ret_info = {ACPI_PTYPE1_VAR, ACPI_RTYPE_INTEGER, 1, 0, 0, 0}}, /* fixed (1 Int) */
300 {.info = {"_S2_", 0, ACPI_RTYPE_PACKAGE}}, {.ret_info = {ACPI_PTYPE1_VAR, ACPI_RTYPE_INTEGER, 1, 0, 0, 0}}, /* fixed (1 Int) */
301 {.info = {"_S3_", 0, ACPI_RTYPE_PACKAGE}}, {.ret_info = {ACPI_PTYPE1_VAR, ACPI_RTYPE_INTEGER, 1, 0, 0, 0}}, /* fixed (1 Int) */
302 {.info = {"_S4_", 0, ACPI_RTYPE_PACKAGE}}, {.ret_info = {ACPI_PTYPE1_VAR, ACPI_RTYPE_INTEGER, 1, 0, 0, 0}}, /* fixed (1 Int) */
303 {.info = {"_S5_", 0, ACPI_RTYPE_PACKAGE}}, {.ret_info = {ACPI_PTYPE1_VAR, ACPI_RTYPE_INTEGER, 1, 0, 0, 0}}, /* fixed (1 Int) */
305 {.info = {"_S1D", 0, ACPI_RTYPE_INTEGER}},
306 {.info = {"_S2D", 0, ACPI_RTYPE_INTEGER}},
307 {.info = {"_S3D", 0, ACPI_RTYPE_INTEGER}},
308 {.info = {"_S4D", 0, ACPI_RTYPE_INTEGER}},
309 {.info = {"_S0W", 0, ACPI_RTYPE_INTEGER}},
310 {.info = {"_S1W", 0, ACPI_RTYPE_INTEGER}},
311 {.info = {"_S2W", 0, ACPI_RTYPE_INTEGER}},
312 {.info = {"_S3W", 0, ACPI_RTYPE_INTEGER}},
313 {.info = {"_S4W", 0, ACPI_RTYPE_INTEGER}},
314 {.info = {"_SBS", 0, ACPI_RTYPE_INTEGER}},
315 {.info = {"_SCP", 0x13, 0}}, /* Acpi 1.0 allowed 1 arg. Acpi 3.0 expanded to 3 args. Allow both. */
316 /* Note: the 3-arg definition may be removed for ACPI 4.0 */
317 {.info = {"_SDD", 1, 0}},
318 {.info = {"_SEG", 0, ACPI_RTYPE_INTEGER}},
319 {.info = {"_SLI", 0, ACPI_RTYPE_BUFFER}},
320 {.info = {"_SPD", 1, ACPI_RTYPE_INTEGER}},
321 {.info = {"_SRS", 1, 0}},
322 {.info = {"_SRV", 0, ACPI_RTYPE_INTEGER}}, /* see IPMI spec */
323 {.info = {"_SST", 1, 0}},
324 {.info = {"_STA", 0, ACPI_RTYPE_INTEGER}},
325 {.info = {"_STM", 3, 0}},
326 {.info = {"_STR", 0, ACPI_RTYPE_BUFFER}},
327 {.info = {"_SUN", 0, ACPI_RTYPE_INTEGER}},
328 {.info = {"_SWS", 0, ACPI_RTYPE_INTEGER}},
329 {.info = {"_TC1", 0, ACPI_RTYPE_INTEGER}},
330 {.info = {"_TC2", 0, ACPI_RTYPE_INTEGER}},
331 {.info = {"_TMP", 0, ACPI_RTYPE_INTEGER}},
332 {.info = {"_TPC", 0, ACPI_RTYPE_INTEGER}},
333 {.info = {"_TPT", 1, 0}},
334 {.info = {"_TRT", 0, ACPI_RTYPE_PACKAGE}}, {.ret_info = {ACPI_PTYPE2, ACPI_RTYPE_REFERENCE, 2,
335 ACPI_RTYPE_INTEGER, 6, 0}}, /* variable (Pkgs) each 2_ref/6_int */
336 {.info = {"_TSD", 0, ACPI_RTYPE_PACKAGE}}, {.ret_info = {ACPI_PTYPE2_COUNT, ACPI_RTYPE_INTEGER, 5, 0, 0, 0}}, /* variable (Pkgs) each 5_int with count */
337 {.info = {"_TSP", 0, ACPI_RTYPE_INTEGER}},
338 {.info = {"_TSS", 0, ACPI_RTYPE_PACKAGE}}, {.ret_info = {ACPI_PTYPE2, ACPI_RTYPE_INTEGER, 5, 0, 0, 0}}, /* variable (Pkgs) each 5_int */
339 {.info = {"_TST", 0, ACPI_RTYPE_INTEGER}},
340 {.info = {"_TTS", 1, 0}},
341 {.info = {"_TZD", 0, ACPI_RTYPE_PACKAGE}}, {.ret_info = {ACPI_PTYPE1_VAR, ACPI_RTYPE_REFERENCE, 0, 0, 0, 0}}, /* variable (Refs) */
342 {.info = {"_TZM", 0, ACPI_RTYPE_REFERENCE}},
343 {.info = {"_TZP", 0, ACPI_RTYPE_INTEGER}},
344 {.info = {"_UID", 0, ACPI_RTYPE_INTEGER | ACPI_RTYPE_STRING}},
345 {.info = {"_UPC", 0, ACPI_RTYPE_PACKAGE}}, {.ret_info = {ACPI_PTYPE1_FIXED, ACPI_RTYPE_INTEGER, 4, 0, 0, 0}}, /* fixed (4 Int) */
346 {.info = {"_UPD", 0, ACPI_RTYPE_INTEGER}},
347 {.info = {"_UPP", 0, ACPI_RTYPE_INTEGER}},
348 {.info = {"_VPO", 0, ACPI_RTYPE_INTEGER}},
350 /* Acpi 1.0 defined _WAK with no return value. Later, it was changed to return a package */
352 {.info = {"_WAK", 1, ACPI_RTYPE_NONE | ACPI_RTYPE_INTEGER | ACPI_RTYPE_PACKAGE}},
353 {.ret_info = {ACPI_PTYPE1_FIXED, ACPI_RTYPE_INTEGER, 2, 0, 0, 0}}, /* fixed (2 Int), but is optional */
354 {.ret_info = {0, 0, 0, 0, 0, 0}} /* Table terminator */
358 /* Not implemented */
361 "_WDG", 0, ACPI_RTYPE_BUFFER}, /* MS Extension */
364 "_WED", 1, ACPI_RTYPE_PACKAGE}, /* MS Extension */
366 /* This is an internally implemented control method, no need to check */
368 "_OSI", 1, ACPI_RTYPE_INTEGER},
371 _PRT - currently ignore reversed entries.attempt to fix here ?
372 think about code that attempts to fix package elements like _BIF, etc.