diff options
Diffstat (limited to 'drivers/acpi/acpica/aclocal.h')
-rw-r--r-- | drivers/acpi/acpica/aclocal.h | 50 |
1 files changed, 22 insertions, 28 deletions
diff --git a/drivers/acpi/acpica/aclocal.h b/drivers/acpi/acpica/aclocal.h index 7dad9160f209..c7f743ca395b 100644 --- a/drivers/acpi/acpica/aclocal.h +++ b/drivers/acpi/acpica/aclocal.h | |||
@@ -5,7 +5,7 @@ | |||
5 | *****************************************************************************/ | 5 | *****************************************************************************/ |
6 | 6 | ||
7 | /* | 7 | /* |
8 | * Copyright (C) 2000 - 2010, Intel Corp. | 8 | * Copyright (C) 2000 - 2011, Intel Corp. |
9 | * All rights reserved. | 9 | * All rights reserved. |
10 | * | 10 | * |
11 | * Redistribution and use in source and binary forms, with or without | 11 | * Redistribution and use in source and binary forms, with or without |
@@ -89,25 +89,6 @@ union acpi_parse_object; | |||
89 | #define ACPI_MAX_MUTEX 7 | 89 | #define ACPI_MAX_MUTEX 7 |
90 | #define ACPI_NUM_MUTEX ACPI_MAX_MUTEX+1 | 90 | #define ACPI_NUM_MUTEX ACPI_MAX_MUTEX+1 |
91 | 91 | ||
92 | #if defined(ACPI_DEBUG_OUTPUT) || defined(ACPI_DEBUGGER) | ||
93 | #ifdef DEFINE_ACPI_GLOBALS | ||
94 | |||
95 | /* Debug names for the mutexes above */ | ||
96 | |||
97 | static char *acpi_gbl_mutex_names[ACPI_NUM_MUTEX] = { | ||
98 | "ACPI_MTX_Interpreter", | ||
99 | "ACPI_MTX_Namespace", | ||
100 | "ACPI_MTX_Tables", | ||
101 | "ACPI_MTX_Events", | ||
102 | "ACPI_MTX_Caches", | ||
103 | "ACPI_MTX_Memory", | ||
104 | "ACPI_MTX_CommandComplete", | ||
105 | "ACPI_MTX_CommandReady" | ||
106 | }; | ||
107 | |||
108 | #endif | ||
109 | #endif | ||
110 | |||
111 | /* Lock structure for reader/writer interfaces */ | 92 | /* Lock structure for reader/writer interfaces */ |
112 | 93 | ||
113 | struct acpi_rw_lock { | 94 | struct acpi_rw_lock { |
@@ -408,16 +389,23 @@ struct acpi_predefined_data { | |||
408 | 389 | ||
409 | /* Dispatch info for each GPE -- either a method or handler, cannot be both */ | 390 | /* Dispatch info for each GPE -- either a method or handler, cannot be both */ |
410 | 391 | ||
411 | struct acpi_handler_info { | 392 | struct acpi_gpe_handler_info { |
412 | acpi_event_handler address; /* Address of handler, if any */ | 393 | acpi_gpe_handler address; /* Address of handler, if any */ |
413 | void *context; /* Context to be passed to handler */ | 394 | void *context; /* Context to be passed to handler */ |
414 | struct acpi_namespace_node *method_node; /* Method node for this GPE level (saved) */ | 395 | struct acpi_namespace_node *method_node; /* Method node for this GPE level (saved) */ |
415 | u8 orig_flags; /* Original misc info about this GPE */ | 396 | u8 original_flags; /* Original (pre-handler) GPE info */ |
397 | u8 originally_enabled; /* True if GPE was originally enabled */ | ||
398 | }; | ||
399 | |||
400 | struct acpi_gpe_notify_object { | ||
401 | struct acpi_namespace_node *node; | ||
402 | struct acpi_gpe_notify_object *next; | ||
416 | }; | 403 | }; |
417 | 404 | ||
418 | union acpi_gpe_dispatch_info { | 405 | union acpi_gpe_dispatch_info { |
419 | struct acpi_namespace_node *method_node; /* Method node for this GPE level */ | 406 | struct acpi_namespace_node *method_node; /* Method node for this GPE level */ |
420 | struct acpi_handler_info *handler; | 407 | struct acpi_gpe_handler_info *handler; /* Installed GPE handler */ |
408 | struct acpi_gpe_notify_object device; /* List of _PRW devices for implicit notify */ | ||
421 | }; | 409 | }; |
422 | 410 | ||
423 | /* | 411 | /* |
@@ -457,6 +445,7 @@ struct acpi_gpe_block_info { | |||
457 | u32 register_count; /* Number of register pairs in block */ | 445 | u32 register_count; /* Number of register pairs in block */ |
458 | u16 gpe_count; /* Number of individual GPEs in block */ | 446 | u16 gpe_count; /* Number of individual GPEs in block */ |
459 | u8 block_base_number; /* Base GPE number for this block */ | 447 | u8 block_base_number; /* Base GPE number for this block */ |
448 | u8 initialized; /* TRUE if this block is initialized */ | ||
460 | }; | 449 | }; |
461 | 450 | ||
462 | /* Information about GPE interrupt handlers, one per each interrupt level used for GPEs */ | 451 | /* Information about GPE interrupt handlers, one per each interrupt level used for GPEs */ |
@@ -473,7 +462,6 @@ struct acpi_gpe_walk_info { | |||
473 | struct acpi_gpe_block_info *gpe_block; | 462 | struct acpi_gpe_block_info *gpe_block; |
474 | u16 count; | 463 | u16 count; |
475 | acpi_owner_id owner_id; | 464 | acpi_owner_id owner_id; |
476 | u8 enable_this_gpe; | ||
477 | u8 execute_by_owner_id; | 465 | u8 execute_by_owner_id; |
478 | }; | 466 | }; |
479 | 467 | ||
@@ -854,7 +842,7 @@ struct acpi_bit_register_info { | |||
854 | ACPI_BITMASK_POWER_BUTTON_STATUS | \ | 842 | ACPI_BITMASK_POWER_BUTTON_STATUS | \ |
855 | ACPI_BITMASK_SLEEP_BUTTON_STATUS | \ | 843 | ACPI_BITMASK_SLEEP_BUTTON_STATUS | \ |
856 | ACPI_BITMASK_RT_CLOCK_STATUS | \ | 844 | ACPI_BITMASK_RT_CLOCK_STATUS | \ |
857 | ACPI_BITMASK_PCIEXP_WAKE_DISABLE | \ | 845 | ACPI_BITMASK_PCIEXP_WAKE_STATUS | \ |
858 | ACPI_BITMASK_WAKE_STATUS) | 846 | ACPI_BITMASK_WAKE_STATUS) |
859 | 847 | ||
860 | #define ACPI_BITMASK_TIMER_ENABLE 0x0001 | 848 | #define ACPI_BITMASK_TIMER_ENABLE 0x0001 |
@@ -909,15 +897,21 @@ struct acpi_bit_register_info { | |||
909 | #define ACPI_OSI_WIN_VISTA 0x07 | 897 | #define ACPI_OSI_WIN_VISTA 0x07 |
910 | #define ACPI_OSI_WINSRV_2008 0x08 | 898 | #define ACPI_OSI_WINSRV_2008 0x08 |
911 | #define ACPI_OSI_WIN_VISTA_SP1 0x09 | 899 | #define ACPI_OSI_WIN_VISTA_SP1 0x09 |
912 | #define ACPI_OSI_WIN_7 0x0A | 900 | #define ACPI_OSI_WIN_VISTA_SP2 0x0A |
901 | #define ACPI_OSI_WIN_7 0x0B | ||
913 | 902 | ||
914 | #define ACPI_ALWAYS_ILLEGAL 0x00 | 903 | #define ACPI_ALWAYS_ILLEGAL 0x00 |
915 | 904 | ||
916 | struct acpi_interface_info { | 905 | struct acpi_interface_info { |
917 | char *name; | 906 | char *name; |
907 | struct acpi_interface_info *next; | ||
908 | u8 flags; | ||
918 | u8 value; | 909 | u8 value; |
919 | }; | 910 | }; |
920 | 911 | ||
912 | #define ACPI_OSI_INVALID 0x01 | ||
913 | #define ACPI_OSI_DYNAMIC 0x02 | ||
914 | |||
921 | struct acpi_port_info { | 915 | struct acpi_port_info { |
922 | char *name; | 916 | char *name; |
923 | u16 start; | 917 | u16 start; |
@@ -997,7 +991,7 @@ struct acpi_port_info { | |||
997 | struct acpi_db_method_info { | 991 | struct acpi_db_method_info { |
998 | acpi_handle main_thread_gate; | 992 | acpi_handle main_thread_gate; |
999 | acpi_handle thread_complete_gate; | 993 | acpi_handle thread_complete_gate; |
1000 | u32 *threads; | 994 | acpi_thread_id *threads; |
1001 | u32 num_threads; | 995 | u32 num_threads; |
1002 | u32 num_created; | 996 | u32 num_created; |
1003 | u32 num_completed; | 997 | u32 num_completed; |