diff options
Diffstat (limited to 'drivers/acpi/acpica/aclocal.h')
-rw-r--r-- | drivers/acpi/acpica/aclocal.h | 29 |
1 files changed, 26 insertions, 3 deletions
diff --git a/drivers/acpi/acpica/aclocal.h b/drivers/acpi/acpica/aclocal.h index 805f419086ab..d5bfbd331bfd 100644 --- a/drivers/acpi/acpica/aclocal.h +++ b/drivers/acpi/acpica/aclocal.h | |||
@@ -294,6 +294,8 @@ acpi_status(*acpi_internal_method) (struct acpi_walk_state * walk_state); | |||
294 | #define ACPI_BTYPE_OBJECTS_AND_REFS 0x0001FFFF /* ARG or LOCAL */ | 294 | #define ACPI_BTYPE_OBJECTS_AND_REFS 0x0001FFFF /* ARG or LOCAL */ |
295 | #define ACPI_BTYPE_ALL_OBJECTS 0x0000FFFF | 295 | #define ACPI_BTYPE_ALL_OBJECTS 0x0000FFFF |
296 | 296 | ||
297 | #pragma pack(1) | ||
298 | |||
297 | /* | 299 | /* |
298 | * Information structure for ACPI predefined names. | 300 | * Information structure for ACPI predefined names. |
299 | * Each entry in the table contains the following items: | 301 | * Each entry in the table contains the following items: |
@@ -304,7 +306,7 @@ acpi_status(*acpi_internal_method) (struct acpi_walk_state * walk_state); | |||
304 | */ | 306 | */ |
305 | struct acpi_name_info { | 307 | struct acpi_name_info { |
306 | char name[ACPI_NAME_SIZE]; | 308 | char name[ACPI_NAME_SIZE]; |
307 | u8 param_count; | 309 | u16 argument_list; |
308 | u8 expected_btypes; | 310 | u8 expected_btypes; |
309 | }; | 311 | }; |
310 | 312 | ||
@@ -327,7 +329,7 @@ struct acpi_package_info { | |||
327 | u8 count1; | 329 | u8 count1; |
328 | u8 object_type2; | 330 | u8 object_type2; |
329 | u8 count2; | 331 | u8 count2; |
330 | u8 reserved; | 332 | u16 reserved; |
331 | }; | 333 | }; |
332 | 334 | ||
333 | /* Used for ACPI_PTYPE2_FIXED */ | 335 | /* Used for ACPI_PTYPE2_FIXED */ |
@@ -336,6 +338,7 @@ struct acpi_package_info2 { | |||
336 | u8 type; | 338 | u8 type; |
337 | u8 count; | 339 | u8 count; |
338 | u8 object_type[4]; | 340 | u8 object_type[4]; |
341 | u8 reserved; | ||
339 | }; | 342 | }; |
340 | 343 | ||
341 | /* Used for ACPI_PTYPE1_OPTION */ | 344 | /* Used for ACPI_PTYPE1_OPTION */ |
@@ -345,7 +348,7 @@ struct acpi_package_info3 { | |||
345 | u8 count; | 348 | u8 count; |
346 | u8 object_type[2]; | 349 | u8 object_type[2]; |
347 | u8 tail_object_type; | 350 | u8 tail_object_type; |
348 | u8 reserved; | 351 | u16 reserved; |
349 | }; | 352 | }; |
350 | 353 | ||
351 | union acpi_predefined_info { | 354 | union acpi_predefined_info { |
@@ -355,6 +358,10 @@ union acpi_predefined_info { | |||
355 | struct acpi_package_info3 ret_info3; | 358 | struct acpi_package_info3 ret_info3; |
356 | }; | 359 | }; |
357 | 360 | ||
361 | /* Reset to default packing */ | ||
362 | |||
363 | #pragma pack() | ||
364 | |||
358 | /* Data block used during object validation */ | 365 | /* Data block used during object validation */ |
359 | 366 | ||
360 | struct acpi_predefined_data { | 367 | struct acpi_predefined_data { |
@@ -363,6 +370,7 @@ struct acpi_predefined_data { | |||
363 | union acpi_operand_object *parent_package; | 370 | union acpi_operand_object *parent_package; |
364 | struct acpi_namespace_node *node; | 371 | struct acpi_namespace_node *node; |
365 | u32 flags; | 372 | u32 flags; |
373 | u32 return_btype; | ||
366 | u8 node_flags; | 374 | u8 node_flags; |
367 | }; | 375 | }; |
368 | 376 | ||
@@ -371,6 +379,20 @@ struct acpi_predefined_data { | |||
371 | #define ACPI_OBJECT_REPAIRED 1 | 379 | #define ACPI_OBJECT_REPAIRED 1 |
372 | #define ACPI_OBJECT_WRAPPED 2 | 380 | #define ACPI_OBJECT_WRAPPED 2 |
373 | 381 | ||
382 | /* Return object auto-repair info */ | ||
383 | |||
384 | typedef acpi_status(*acpi_object_converter) (union acpi_operand_object | ||
385 | *original_object, | ||
386 | union acpi_operand_object | ||
387 | **converted_object); | ||
388 | |||
389 | struct acpi_simple_repair_info { | ||
390 | char name[ACPI_NAME_SIZE]; | ||
391 | u32 unexpected_btypes; | ||
392 | u32 package_index; | ||
393 | acpi_object_converter object_converter; | ||
394 | }; | ||
395 | |||
374 | /* | 396 | /* |
375 | * Bitmapped return value types | 397 | * Bitmapped return value types |
376 | * Note: the actual data types must be contiguous, a loop in nspredef.c | 398 | * Note: the actual data types must be contiguous, a loop in nspredef.c |
@@ -1037,6 +1059,7 @@ struct acpi_external_list { | |||
1037 | u16 length; | 1059 | u16 length; |
1038 | u8 type; | 1060 | u8 type; |
1039 | u8 flags; | 1061 | u8 flags; |
1062 | u8 resolved; | ||
1040 | }; | 1063 | }; |
1041 | 1064 | ||
1042 | /* Values for Flags field above */ | 1065 | /* Values for Flags field above */ |