diff options
author | Bob Moore <robert.moore@intel.com> | 2009-08-13 02:30:16 -0400 |
---|---|---|
committer | Len Brown <len.brown@intel.com> | 2009-08-28 19:40:39 -0400 |
commit | 999e08f99846a1fd6ee9642ec306a2d318925116 (patch) | |
tree | 63b7577d8de5f8d9d718cc1fc0fdec38db887c86 /drivers/acpi | |
parent | d9adc2e031bd22d5d9607a53a8d3b30e0b675f39 (diff) |
ACPICA: ACPI 4: Add validation for new predefined names.
Added 31 new names for ACPI 4.0.
Signed-off-by: Bob Moore <robert.moore@intel.com>
Signed-off-by: Lin Ming <ming.m.lin@intel.com>
Signed-off-by: Len Brown <len.brown@intel.com>
Diffstat (limited to 'drivers/acpi')
-rw-r--r-- | drivers/acpi/acpica/acpredef.h | 78 | ||||
-rw-r--r-- | drivers/acpi/acpica/nspredef.c | 2 |
2 files changed, 73 insertions, 7 deletions
diff --git a/drivers/acpi/acpica/acpredef.h b/drivers/acpi/acpica/acpredef.h index c81f14b69270..cd80d1dd1950 100644 --- a/drivers/acpi/acpica/acpredef.h +++ b/drivers/acpi/acpica/acpredef.h | |||
@@ -64,8 +64,8 @@ | |||
64 | * (Used for _PRW) | 64 | * (Used for _PRW) |
65 | * | 65 | * |
66 | * | 66 | * |
67 | * 2) PTYPE2 packages contain a variable number of sub-packages. Each of the | 67 | * 2) PTYPE2 packages contain a Variable-length number of sub-packages. Each |
68 | * different types describe the contents of each of the sub-packages. | 68 | * of the different types describe the contents of each of the sub-packages. |
69 | * | 69 | * |
70 | * ACPI_PTYPE2: Each subpackage contains 1 or 2 object types: | 70 | * ACPI_PTYPE2: Each subpackage contains 1 or 2 object types: |
71 | * object type | 71 | * object type |
@@ -92,6 +92,7 @@ | |||
92 | * (Used for _HPX) | 92 | * (Used for _HPX) |
93 | * | 93 | * |
94 | * ACPI_PTYPE2_REV_FIXED: Revision at start, each subpackage is Fixed-length | 94 | * ACPI_PTYPE2_REV_FIXED: Revision at start, each subpackage is Fixed-length |
95 | * (Used for _ART, _FPS) | ||
95 | * | 96 | * |
96 | *****************************************************************************/ | 97 | *****************************************************************************/ |
97 | 98 | ||
@@ -107,6 +108,7 @@ enum acpi_return_package_types { | |||
107 | ACPI_PTYPE2_REV_FIXED = 9 | 108 | ACPI_PTYPE2_REV_FIXED = 9 |
108 | }; | 109 | }; |
109 | 110 | ||
111 | #ifdef ACPI_CREATE_PREDEFINED_TABLE | ||
110 | /* | 112 | /* |
111 | * Predefined method/object information table. | 113 | * Predefined method/object information table. |
112 | * | 114 | * |
@@ -189,21 +191,32 @@ static const union acpi_predefined_info predefined_names[] = | |||
189 | {{{ACPI_PTYPE2, ACPI_RTYPE_INTEGER, 2,0}, 0,0}}, | 191 | {{{ACPI_PTYPE2, ACPI_RTYPE_INTEGER, 2,0}, 0,0}}, |
190 | 192 | ||
191 | {{"_ALT", 0, ACPI_RTYPE_INTEGER}}, | 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}, | ||
196 | 11, 0}}, | ||
197 | |||
192 | {{"_BBN", 0, ACPI_RTYPE_INTEGER}}, | 198 | {{"_BBN", 0, ACPI_RTYPE_INTEGER}}, |
193 | {{"_BCL", 0, ACPI_RTYPE_PACKAGE}}, /* Variable-length (Ints) */ | 199 | {{"_BCL", 0, ACPI_RTYPE_PACKAGE}}, /* Variable-length (Ints) */ |
194 | {{{ACPI_PTYPE1_VAR, ACPI_RTYPE_INTEGER, 0,0}, 0,0}}, | 200 | {{{ACPI_PTYPE1_VAR, ACPI_RTYPE_INTEGER, 0,0}, 0,0}}, |
195 | 201 | ||
196 | {{"_BCM", 1, 0}}, | 202 | {{"_BCM", 1, 0}}, |
203 | {{"_BCT", 1, ACPI_RTYPE_INTEGER}}, | ||
197 | {{"_BDN", 0, ACPI_RTYPE_INTEGER}}, | 204 | {{"_BDN", 0, ACPI_RTYPE_INTEGER}}, |
198 | {{"_BFS", 1, 0}}, | 205 | {{"_BFS", 1, 0}}, |
199 | {{"_BIF", 0, ACPI_RTYPE_PACKAGE}}, /* Fixed-length (9 Int),(4 Str) */ | 206 | {{"_BIF", 0, ACPI_RTYPE_PACKAGE}}, /* Fixed-length (9 Int),(4 Str) */ |
200 | {{{ACPI_PTYPE1_FIXED, ACPI_RTYPE_INTEGER, 9, ACPI_RTYPE_STRING}, 4,0}}, | 207 | {{{ACPI_PTYPE1_FIXED, ACPI_RTYPE_INTEGER, 9, ACPI_RTYPE_STRING}, 4,0}}, |
201 | 208 | ||
209 | {{"_BIX", 0, ACPI_RTYPE_PACKAGE}}, /* Fixed-length (16 Int),(4 Str) */ | ||
210 | {{{ACPI_PTYPE1_FIXED, ACPI_RTYPE_INTEGER, 16, ACPI_RTYPE_STRING}, 4, | ||
211 | 0}}, | ||
212 | |||
202 | {{"_BLT", 3, 0}}, | 213 | {{"_BLT", 3, 0}}, |
214 | {{"_BMA", 1, ACPI_RTYPE_INTEGER}}, | ||
203 | {{"_BMC", 1, 0}}, | 215 | {{"_BMC", 1, 0}}, |
204 | {{"_BMD", 0, ACPI_RTYPE_PACKAGE}}, /* Fixed-length (5 Int) */ | 216 | {{"_BMD", 0, ACPI_RTYPE_PACKAGE}}, /* Fixed-length (5 Int) */ |
205 | {{{ACPI_PTYPE1_FIXED, ACPI_RTYPE_INTEGER, 5,0}, 0,0}}, | 217 | {{{ACPI_PTYPE1_FIXED, ACPI_RTYPE_INTEGER, 5,0}, 0,0}}, |
206 | 218 | ||
219 | {{"_BMS", 1, ACPI_RTYPE_INTEGER}}, | ||
207 | {{"_BQC", 0, ACPI_RTYPE_INTEGER}}, | 220 | {{"_BQC", 0, ACPI_RTYPE_INTEGER}}, |
208 | {{"_BST", 0, ACPI_RTYPE_PACKAGE}}, /* Fixed-length (4 Int) */ | 221 | {{"_BST", 0, ACPI_RTYPE_PACKAGE}}, /* Fixed-length (4 Int) */ |
209 | {{{ACPI_PTYPE1_FIXED, ACPI_RTYPE_INTEGER, 4,0}, 0,0}}, | 222 | {{{ACPI_PTYPE1_FIXED, ACPI_RTYPE_INTEGER, 4,0}, 0,0}}, |
@@ -211,6 +224,7 @@ static const union acpi_predefined_info predefined_names[] = | |||
211 | {{"_BTM", 1, ACPI_RTYPE_INTEGER}}, | 224 | {{"_BTM", 1, ACPI_RTYPE_INTEGER}}, |
212 | {{"_BTP", 1, 0}}, | 225 | {{"_BTP", 1, 0}}, |
213 | {{"_CBA", 0, ACPI_RTYPE_INTEGER}}, /* See PCI firmware spec 3.0 */ | 226 | {{"_CBA", 0, ACPI_RTYPE_INTEGER}}, /* See PCI firmware spec 3.0 */ |
227 | {{"_CDM", 0, ACPI_RTYPE_INTEGER}}, | ||
214 | {{"_CID", 0, ACPI_RTYPE_INTEGER | ACPI_RTYPE_STRING | ACPI_RTYPE_PACKAGE}}, /* Variable-length (Ints/Strs) */ | 228 | {{"_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}}, | 229 | {{{ACPI_PTYPE1_VAR, ACPI_RTYPE_INTEGER | ACPI_RTYPE_STRING, 0,0}, 0,0}}, |
216 | 230 | ||
@@ -236,6 +250,7 @@ static const union acpi_predefined_info predefined_names[] = | |||
236 | {{"_DSM", 4, ACPI_RTYPE_ALL}}, /* Must return a type, but it can be of any type */ | 250 | {{"_DSM", 4, ACPI_RTYPE_ALL}}, /* Must return a type, but it can be of any type */ |
237 | {{"_DSS", 1, 0}}, | 251 | {{"_DSS", 1, 0}}, |
238 | {{"_DSW", 3, 0}}, | 252 | {{"_DSW", 3, 0}}, |
253 | {{"_DTI", 1, 0}}, | ||
239 | {{"_EC_", 0, ACPI_RTYPE_INTEGER}}, | 254 | {{"_EC_", 0, ACPI_RTYPE_INTEGER}}, |
240 | {{"_EDL", 0, ACPI_RTYPE_PACKAGE}}, /* Variable-length (Refs)*/ | 255 | {{"_EDL", 0, ACPI_RTYPE_PACKAGE}}, /* Variable-length (Refs)*/ |
241 | {{{ACPI_PTYPE1_VAR, ACPI_RTYPE_REFERENCE, 0,0}, 0,0}}, | 256 | {{{ACPI_PTYPE1_VAR, ACPI_RTYPE_REFERENCE, 0,0}, 0,0}}, |
@@ -251,9 +266,21 @@ static const union acpi_predefined_info predefined_names[] = | |||
251 | {{{ACPI_PTYPE1_FIXED, ACPI_RTYPE_INTEGER, 16,0}, 0,0}}, | 266 | {{{ACPI_PTYPE1_FIXED, ACPI_RTYPE_INTEGER, 16,0}, 0,0}}, |
252 | 267 | ||
253 | {{"_FDM", 1, 0}}, | 268 | {{"_FDM", 1, 0}}, |
269 | {{"_FIF", 0, ACPI_RTYPE_PACKAGE}}, /* Fixed-length (4 Int) */ | ||
270 | {{{ACPI_PTYPE1_FIXED, ACPI_RTYPE_INTEGER, 4, 0}, 0, 0}}, | ||
271 | |||
254 | {{"_FIX", 0, ACPI_RTYPE_PACKAGE}}, /* Variable-length (Ints) */ | 272 | {{"_FIX", 0, ACPI_RTYPE_PACKAGE}}, /* Variable-length (Ints) */ |
255 | {{{ACPI_PTYPE1_VAR, ACPI_RTYPE_INTEGER, 0,0}, 0,0}}, | 273 | {{{ACPI_PTYPE1_VAR, ACPI_RTYPE_INTEGER, 0,0}, 0,0}}, |
256 | 274 | ||
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}}, | ||
277 | |||
278 | {{"_FSL", 1, 0}}, | ||
279 | {{"_FST", 0, ACPI_RTYPE_PACKAGE}}, /* Fixed-length (3 Int) */ | ||
280 | {{{ACPI_PTYPE1_FIXED, ACPI_RTYPE_INTEGER, 3, 0}, 0, 0}}, | ||
281 | |||
282 | {{"_GAI", 0, ACPI_RTYPE_INTEGER}}, | ||
283 | {{"_GHL", 0, ACPI_RTYPE_INTEGER}}, | ||
257 | {{"_GLK", 0, ACPI_RTYPE_INTEGER}}, | 284 | {{"_GLK", 0, ACPI_RTYPE_INTEGER}}, |
258 | {{"_GPD", 0, ACPI_RTYPE_INTEGER}}, | 285 | {{"_GPD", 0, ACPI_RTYPE_INTEGER}}, |
259 | {{"_GPE", 0, ACPI_RTYPE_INTEGER}}, /* _GPE method, not _GPE scope */ | 286 | {{"_GPE", 0, ACPI_RTYPE_INTEGER}}, /* _GPE method, not _GPE scope */ |
@@ -281,15 +308,21 @@ static const union acpi_predefined_info predefined_names[] = | |||
281 | {{"_LCK", 1, 0}}, | 308 | {{"_LCK", 1, 0}}, |
282 | {{"_LID", 0, ACPI_RTYPE_INTEGER}}, | 309 | {{"_LID", 0, ACPI_RTYPE_INTEGER}}, |
283 | {{"_MAT", 0, ACPI_RTYPE_BUFFER}}, | 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}}, | ||
313 | |||
284 | {{"_MLS", 0, ACPI_RTYPE_PACKAGE}}, /* Variable-length (Pkgs) each (2 Str) */ | 314 | {{"_MLS", 0, ACPI_RTYPE_PACKAGE}}, /* Variable-length (Pkgs) each (2 Str) */ |
285 | {{{ACPI_PTYPE2, ACPI_RTYPE_STRING, 2,0}, 0,0}}, | 315 | {{{ACPI_PTYPE2, ACPI_RTYPE_STRING, 2,0}, 0,0}}, |
286 | 316 | ||
287 | {{"_MSG", 1, 0}}, | 317 | {{"_MSG", 1, 0}}, |
318 | {{"_MSM", 4, ACPI_RTYPE_INTEGER}}, | ||
319 | {{"_NTT", 0, ACPI_RTYPE_INTEGER}}, | ||
288 | {{"_OFF", 0, 0}}, | 320 | {{"_OFF", 0, 0}}, |
289 | {{"_ON_", 0, 0}}, | 321 | {{"_ON_", 0, 0}}, |
290 | {{"_OS_", 0, ACPI_RTYPE_STRING}}, | 322 | {{"_OS_", 0, ACPI_RTYPE_STRING}}, |
291 | {{"_OSC", 4, ACPI_RTYPE_BUFFER}}, | 323 | {{"_OSC", 4, ACPI_RTYPE_BUFFER}}, |
292 | {{"_OST", 3, 0}}, | 324 | {{"_OST", 3, 0}}, |
325 | {{"_PAI", 1, ACPI_RTYPE_INTEGER}}, | ||
293 | {{"_PCL", 0, ACPI_RTYPE_PACKAGE}}, /* Variable-length (Refs) */ | 326 | {{"_PCL", 0, ACPI_RTYPE_PACKAGE}}, /* Variable-length (Refs) */ |
294 | {{{ACPI_PTYPE1_VAR, ACPI_RTYPE_REFERENCE, 0,0}, 0,0}}, | 327 | {{{ACPI_PTYPE1_VAR, ACPI_RTYPE_REFERENCE, 0,0}, 0,0}}, |
295 | 328 | ||
@@ -297,10 +330,22 @@ static const union acpi_predefined_info predefined_names[] = | |||
297 | {{{ACPI_PTYPE1_FIXED, ACPI_RTYPE_BUFFER, 2,0}, 0,0}}, | 330 | {{{ACPI_PTYPE1_FIXED, ACPI_RTYPE_BUFFER, 2,0}, 0,0}}, |
298 | 331 | ||
299 | {{"_PDC", 1, 0}}, | 332 | {{"_PDC", 1, 0}}, |
333 | {{"_PDL", 0, ACPI_RTYPE_INTEGER}}, | ||
300 | {{"_PIC", 1, 0}}, | 334 | {{"_PIC", 1, 0}}, |
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}}, | ||
337 | |||
301 | {{"_PLD", 0, ACPI_RTYPE_PACKAGE}}, /* Variable-length (Bufs) */ | 338 | {{"_PLD", 0, ACPI_RTYPE_PACKAGE}}, /* Variable-length (Bufs) */ |
302 | {{{ACPI_PTYPE1_VAR, ACPI_RTYPE_BUFFER, 0,0}, 0,0}}, | 339 | {{{ACPI_PTYPE1_VAR, ACPI_RTYPE_BUFFER, 0,0}, 0,0}}, |
303 | 340 | ||
341 | {{"_PMC", 0, ACPI_RTYPE_PACKAGE}}, /* Fixed-length (11 Int),(3 Str) */ | ||
342 | {{{ACPI_PTYPE1_FIXED, ACPI_RTYPE_INTEGER, 11, ACPI_RTYPE_STRING}, 3, | ||
343 | 0}}, | ||
344 | |||
345 | {{"_PMD", 0, ACPI_RTYPE_PACKAGE}}, /* Variable-length (Refs) */ | ||
346 | {{{ACPI_PTYPE1_VAR, ACPI_RTYPE_REFERENCE, 0, 0}, 0, 0}}, | ||
347 | |||
348 | {{"_PMM", 0, ACPI_RTYPE_INTEGER}}, | ||
304 | {{"_PPC", 0, ACPI_RTYPE_INTEGER}}, | 349 | {{"_PPC", 0, ACPI_RTYPE_INTEGER}}, |
305 | {{"_PPE", 0, ACPI_RTYPE_INTEGER}}, /* See dig64 spec */ | 350 | {{"_PPE", 0, ACPI_RTYPE_INTEGER}}, /* See dig64 spec */ |
306 | {{"_PR0", 0, ACPI_RTYPE_PACKAGE}}, /* Variable-length (Refs) */ | 351 | {{"_PR0", 0, ACPI_RTYPE_PACKAGE}}, /* Variable-length (Refs) */ |
@@ -312,17 +357,26 @@ static const union acpi_predefined_info predefined_names[] = | |||
312 | {{"_PR2", 0, ACPI_RTYPE_PACKAGE}}, /* Variable-length (Refs) */ | 357 | {{"_PR2", 0, ACPI_RTYPE_PACKAGE}}, /* Variable-length (Refs) */ |
313 | {{{ACPI_PTYPE1_VAR, ACPI_RTYPE_REFERENCE, 0,0}, 0,0}}, | 358 | {{{ACPI_PTYPE1_VAR, ACPI_RTYPE_REFERENCE, 0,0}, 0,0}}, |
314 | 359 | ||
360 | {{"_PR3", 0, ACPI_RTYPE_PACKAGE}}, /* Variable-length (Refs) */ | ||
361 | {{{ACPI_PTYPE1_VAR, ACPI_RTYPE_REFERENCE, 0, 0}, 0, 0}}, | ||
362 | |||
363 | {{"_PRL", 0, ACPI_RTYPE_PACKAGE}}, /* Variable-length (Refs) */ | ||
364 | {{{ACPI_PTYPE1_VAR, ACPI_RTYPE_REFERENCE, 0, 0}, 0, 0}}, | ||
365 | |||
315 | {{"_PRS", 0, ACPI_RTYPE_BUFFER}}, | 366 | {{"_PRS", 0, ACPI_RTYPE_BUFFER}}, |
316 | 367 | ||
317 | /* | 368 | /* |
318 | * For _PRT, many BIOSs reverse the 2nd and 3rd Package elements. This bug is so prevalent that there | 369 | * For _PRT, many BIOSs reverse the 3rd and 4th Package elements (Source |
319 | * is code in the ACPICA Resource Manager to detect this and switch them back. For now, do not allow | 370 | * and source_index). This bug is so prevalent that there is code in the |
320 | * and issue a warning. To allow this and eliminate the warning, add the ACPI_RTYPE_REFERENCE | 371 | * ACPICA Resource Manager to detect this and switch them back. For now, |
321 | * type to the 2nd element (index 1) in the statement below. | 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. | ||
322 | */ | 375 | */ |
323 | {{"_PRT", 0, ACPI_RTYPE_PACKAGE}}, /* Variable-length (Pkgs) each (4): Int,Int,Int/Ref,Int */ | 376 | {{"_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}, | 377 | {{{ACPI_PTYPE2_FIXED, 4, ACPI_RTYPE_INTEGER,ACPI_RTYPE_INTEGER}, |
325 | ACPI_RTYPE_INTEGER | ACPI_RTYPE_REFERENCE,ACPI_RTYPE_INTEGER}}, | 378 | ACPI_RTYPE_INTEGER | ACPI_RTYPE_REFERENCE, |
379 | ACPI_RTYPE_INTEGER}}, | ||
326 | 380 | ||
327 | {{"_PRW", 0, ACPI_RTYPE_PACKAGE}}, /* Variable-length (Pkgs) each: Pkg/Int,Int,[Variable-length Refs] (Pkg is Ref/Int) */ | 381 | {{"_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, | 382 | {{{ACPI_PTYPE1_OPTION, 2, ACPI_RTYPE_INTEGER | ACPI_RTYPE_PACKAGE, |
@@ -348,7 +402,11 @@ static const union acpi_predefined_info predefined_names[] = | |||
348 | {{"_PTC", 0, ACPI_RTYPE_PACKAGE}}, /* Fixed-length (2 Buf) */ | 402 | {{"_PTC", 0, ACPI_RTYPE_PACKAGE}}, /* Fixed-length (2 Buf) */ |
349 | {{{ACPI_PTYPE1_FIXED, ACPI_RTYPE_BUFFER, 2,0}, 0,0}}, | 403 | {{{ACPI_PTYPE1_FIXED, ACPI_RTYPE_BUFFER, 2,0}, 0,0}}, |
350 | 404 | ||
405 | {{"_PTP", 2, ACPI_RTYPE_INTEGER}}, | ||
351 | {{"_PTS", 1, 0}}, | 406 | {{"_PTS", 1, 0}}, |
407 | {{"_PUR", 0, ACPI_RTYPE_PACKAGE}}, /* Fixed-length (2 Int) */ | ||
408 | {{{ACPI_PTYPE1_FIXED, ACPI_RTYPE_INTEGER, 2, 0}, 0, 0}}, | ||
409 | |||
352 | {{"_PXM", 0, ACPI_RTYPE_INTEGER}}, | 410 | {{"_PXM", 0, ACPI_RTYPE_INTEGER}}, |
353 | {{"_REG", 2, 0}}, | 411 | {{"_REG", 2, 0}}, |
354 | {{"_REV", 0, ACPI_RTYPE_INTEGER}}, | 412 | {{"_REV", 0, ACPI_RTYPE_INTEGER}}, |
@@ -394,6 +452,7 @@ static const union acpi_predefined_info predefined_names[] = | |||
394 | /* Note: the 3-arg definition may be removed for ACPI 4.0 */ | 452 | /* Note: the 3-arg definition may be removed for ACPI 4.0 */ |
395 | {{"_SDD", 1, 0}}, | 453 | {{"_SDD", 1, 0}}, |
396 | {{"_SEG", 0, ACPI_RTYPE_INTEGER}}, | 454 | {{"_SEG", 0, ACPI_RTYPE_INTEGER}}, |
455 | {{"_SHL", 1, ACPI_RTYPE_INTEGER}}, | ||
397 | {{"_SLI", 0, ACPI_RTYPE_BUFFER}}, | 456 | {{"_SLI", 0, ACPI_RTYPE_BUFFER}}, |
398 | {{"_SPD", 1, ACPI_RTYPE_INTEGER}}, | 457 | {{"_SPD", 1, ACPI_RTYPE_INTEGER}}, |
399 | {{"_SRS", 1, 0}}, | 458 | {{"_SRS", 1, 0}}, |
@@ -401,11 +460,15 @@ static const union acpi_predefined_info predefined_names[] = | |||
401 | {{"_SST", 1, 0}}, | 460 | {{"_SST", 1, 0}}, |
402 | {{"_STA", 0, ACPI_RTYPE_INTEGER}}, | 461 | {{"_STA", 0, ACPI_RTYPE_INTEGER}}, |
403 | {{"_STM", 3, 0}}, | 462 | {{"_STM", 3, 0}}, |
463 | {{"_STP", 2, ACPI_RTYPE_INTEGER}}, | ||
404 | {{"_STR", 0, ACPI_RTYPE_BUFFER}}, | 464 | {{"_STR", 0, ACPI_RTYPE_BUFFER}}, |
465 | {{"_STV", 2, ACPI_RTYPE_INTEGER}}, | ||
405 | {{"_SUN", 0, ACPI_RTYPE_INTEGER}}, | 466 | {{"_SUN", 0, ACPI_RTYPE_INTEGER}}, |
406 | {{"_SWS", 0, ACPI_RTYPE_INTEGER}}, | 467 | {{"_SWS", 0, ACPI_RTYPE_INTEGER}}, |
407 | {{"_TC1", 0, ACPI_RTYPE_INTEGER}}, | 468 | {{"_TC1", 0, ACPI_RTYPE_INTEGER}}, |
408 | {{"_TC2", 0, ACPI_RTYPE_INTEGER}}, | 469 | {{"_TC2", 0, ACPI_RTYPE_INTEGER}}, |
470 | {{"_TIP", 1, ACPI_RTYPE_INTEGER}}, | ||
471 | {{"_TIV", 1, ACPI_RTYPE_INTEGER}}, | ||
409 | {{"_TMP", 0, ACPI_RTYPE_INTEGER}}, | 472 | {{"_TMP", 0, ACPI_RTYPE_INTEGER}}, |
410 | {{"_TPC", 0, ACPI_RTYPE_INTEGER}}, | 473 | {{"_TPC", 0, ACPI_RTYPE_INTEGER}}, |
411 | {{"_TPT", 1, 0}}, | 474 | {{"_TPT", 1, 0}}, |
@@ -458,3 +521,4 @@ static const union acpi_predefined_info predefined_names[] = | |||
458 | #endif | 521 | #endif |
459 | 522 | ||
460 | #endif | 523 | #endif |
524 | #endif | ||
diff --git a/drivers/acpi/acpica/nspredef.c b/drivers/acpi/acpica/nspredef.c index 0b2cdb37a678..8314e6a9e726 100644 --- a/drivers/acpi/acpica/nspredef.c +++ b/drivers/acpi/acpica/nspredef.c | |||
@@ -42,6 +42,8 @@ | |||
42 | * POSSIBILITY OF SUCH DAMAGES. | 42 | * POSSIBILITY OF SUCH DAMAGES. |
43 | */ | 43 | */ |
44 | 44 | ||
45 | #define ACPI_CREATE_PREDEFINED_TABLE | ||
46 | |||
45 | #include <acpi/acpi.h> | 47 | #include <acpi/acpi.h> |
46 | #include "accommon.h" | 48 | #include "accommon.h" |
47 | #include "acnamesp.h" | 49 | #include "acnamesp.h" |