diff options
| -rw-r--r-- | drivers/acpi/acpica/acdebug.h | 94 | ||||
| -rw-r--r-- | drivers/acpi/acpica/acglobal.h | 69 | ||||
| -rw-r--r-- | drivers/acpi/acpica/aclocal.h | 2 | ||||
| -rw-r--r-- | include/acpi/acconfig.h | 1 |
4 files changed, 101 insertions, 65 deletions
diff --git a/drivers/acpi/acpica/acdebug.h b/drivers/acpi/acpica/acdebug.h index 5e8abb07724f..432a318c9ed1 100644 --- a/drivers/acpi/acpica/acdebug.h +++ b/drivers/acpi/acpica/acdebug.h | |||
| @@ -44,17 +44,28 @@ | |||
| 44 | #ifndef __ACDEBUG_H__ | 44 | #ifndef __ACDEBUG_H__ |
| 45 | #define __ACDEBUG_H__ | 45 | #define __ACDEBUG_H__ |
| 46 | 46 | ||
| 47 | #define ACPI_DEBUG_BUFFER_SIZE 4196 | 47 | #define ACPI_DEBUG_BUFFER_SIZE 0x4000 /* 16K buffer for return objects */ |
| 48 | 48 | ||
| 49 | struct command_info { | 49 | struct acpi_db_command_info { |
| 50 | char *name; /* Command Name */ | 50 | char *name; /* Command Name */ |
| 51 | u8 min_args; /* Minimum arguments required */ | 51 | u8 min_args; /* Minimum arguments required */ |
| 52 | }; | 52 | }; |
| 53 | 53 | ||
| 54 | struct argument_info { | 54 | struct acpi_db_command_help { |
| 55 | u8 line_count; /* Number of help lines */ | ||
| 56 | char *invocation; /* Command Invocation */ | ||
| 57 | char *description; /* Command Description */ | ||
| 58 | }; | ||
| 59 | |||
| 60 | struct acpi_db_argument_info { | ||
| 55 | char *name; /* Argument Name */ | 61 | char *name; /* Argument Name */ |
| 56 | }; | 62 | }; |
| 57 | 63 | ||
| 64 | struct acpi_db_execute_walk { | ||
| 65 | u32 count; | ||
| 66 | u32 max_count; | ||
| 67 | }; | ||
| 68 | |||
| 58 | #define PARAM_LIST(pl) pl | 69 | #define PARAM_LIST(pl) pl |
| 59 | #define DBTEST_OUTPUT_LEVEL(lvl) if (acpi_gbl_db_opt_verbose) | 70 | #define DBTEST_OUTPUT_LEVEL(lvl) if (acpi_gbl_db_opt_verbose) |
| 60 | #define VERBOSE_PRINT(fp) DBTEST_OUTPUT_LEVEL(lvl) {\ | 71 | #define VERBOSE_PRINT(fp) DBTEST_OUTPUT_LEVEL(lvl) {\ |
| @@ -77,59 +88,71 @@ acpi_db_single_step(struct acpi_walk_state *walk_state, | |||
| 77 | /* | 88 | /* |
| 78 | * dbcmds - debug commands and output routines | 89 | * dbcmds - debug commands and output routines |
| 79 | */ | 90 | */ |
| 80 | acpi_status acpi_db_disassemble_method(char *name); | 91 | struct acpi_namespace_node *acpi_db_convert_to_node(char *in_string); |
| 81 | 92 | ||
| 82 | void acpi_db_display_table_info(char *table_arg); | 93 | void acpi_db_display_table_info(char *table_arg); |
| 83 | 94 | ||
| 84 | void acpi_db_unload_acpi_table(char *table_arg, char *instance_arg); | 95 | void acpi_db_display_template(char *buffer_arg); |
| 85 | 96 | ||
| 86 | void | 97 | void acpi_db_unload_acpi_table(char *name); |
| 87 | acpi_db_set_method_breakpoint(char *location, | ||
| 88 | struct acpi_walk_state *walk_state, | ||
| 89 | union acpi_parse_object *op); | ||
| 90 | 98 | ||
| 91 | void acpi_db_set_method_call_breakpoint(union acpi_parse_object *op); | 99 | void acpi_db_send_notify(char *name, u32 value); |
| 92 | 100 | ||
| 93 | void acpi_db_get_bus_info(void); | 101 | void acpi_db_display_interfaces(char *action_arg, char *interface_name_arg); |
| 94 | 102 | ||
| 95 | void acpi_db_disassemble_aml(char *statements, union acpi_parse_object *op); | 103 | acpi_status acpi_db_sleep(char *object_arg); |
| 96 | 104 | ||
| 97 | void acpi_db_dump_namespace(char *start_arg, char *depth_arg); | 105 | void acpi_db_display_locks(void); |
| 98 | 106 | ||
| 99 | void acpi_db_dump_namespace_by_owner(char *owner_arg, char *depth_arg); | 107 | void acpi_db_display_resources(char *object_arg); |
| 100 | 108 | ||
| 101 | void acpi_db_send_notify(char *name, u32 value); | 109 | ACPI_HW_DEPENDENT_RETURN_VOID(void acpi_db_display_gpes(void)) |
| 110 | |||
| 111 | void acpi_db_display_handlers(void); | ||
| 112 | |||
| 113 | ACPI_HW_DEPENDENT_RETURN_VOID(void | ||
| 114 | acpi_db_generate_gpe(char *gpe_arg, | ||
| 115 | char *block_arg)) | ||
| 116 | |||
| 117 | /* | ||
| 118 | * dbmethod - control method commands | ||
| 119 | */ | ||
| 120 | void | ||
| 121 | acpi_db_set_method_breakpoint(char *location, | ||
| 122 | struct acpi_walk_state *walk_state, | ||
| 123 | union acpi_parse_object *op); | ||
| 124 | |||
| 125 | void acpi_db_set_method_call_breakpoint(union acpi_parse_object *op); | ||
| 102 | 126 | ||
| 103 | void acpi_db_set_method_data(char *type_arg, char *index_arg, char *value_arg); | 127 | void acpi_db_set_method_data(char *type_arg, char *index_arg, char *value_arg); |
| 104 | 128 | ||
| 105 | acpi_status | 129 | acpi_status acpi_db_disassemble_method(char *name); |
| 106 | acpi_db_display_objects(char *obj_type_arg, char *display_count_arg); | ||
| 107 | 130 | ||
| 108 | void acpi_db_display_interfaces(char *action_arg, char *interface_name_arg); | 131 | void acpi_db_disassemble_aml(char *statements, union acpi_parse_object *op); |
| 109 | 132 | ||
| 110 | acpi_status acpi_db_find_name_in_namespace(char *name_arg); | 133 | void acpi_db_batch_execute(char *count_arg); |
| 111 | 134 | ||
| 135 | /* | ||
| 136 | * dbnames - namespace commands | ||
| 137 | */ | ||
| 112 | void acpi_db_set_scope(char *name); | 138 | void acpi_db_set_scope(char *name); |
| 113 | 139 | ||
| 114 | ACPI_HW_DEPENDENT_RETURN_OK(acpi_status acpi_db_sleep(char *object_arg)) | 140 | void acpi_db_dump_namespace(char *start_arg, char *depth_arg); |
| 115 | 141 | ||
| 116 | void acpi_db_find_references(char *object_arg); | 142 | void acpi_db_dump_namespace_by_owner(char *owner_arg, char *depth_arg); |
| 117 | 143 | ||
| 118 | void acpi_db_display_locks(void); | 144 | acpi_status acpi_db_find_name_in_namespace(char *name_arg); |
| 119 | 145 | ||
| 120 | void acpi_db_display_resources(char *object_arg); | 146 | void acpi_db_check_predefined_names(void); |
| 121 | 147 | ||
| 122 | ACPI_HW_DEPENDENT_RETURN_VOID(void acpi_db_display_gpes(void)) | 148 | acpi_status |
| 149 | acpi_db_display_objects(char *obj_type_arg, char *display_count_arg); | ||
| 123 | 150 | ||
| 124 | void acpi_db_check_integrity(void); | 151 | void acpi_db_check_integrity(void); |
| 125 | 152 | ||
| 126 | ACPI_HW_DEPENDENT_RETURN_VOID(void | 153 | void acpi_db_find_references(char *object_arg); |
| 127 | acpi_db_generate_gpe(char *gpe_arg, | ||
| 128 | char *block_arg)) | ||
| 129 | |||
| 130 | void acpi_db_check_predefined_names(void); | ||
| 131 | 154 | ||
| 132 | void acpi_db_batch_execute(void); | 155 | void acpi_db_get_bus_info(void); |
| 133 | 156 | ||
| 134 | /* | 157 | /* |
| 135 | * dbdisply - debug display commands | 158 | * dbdisply - debug display commands |
| @@ -161,7 +184,8 @@ acpi_db_display_argument_object(union acpi_operand_object *obj_desc, | |||
| 161 | /* | 184 | /* |
| 162 | * dbexec - debugger control method execution | 185 | * dbexec - debugger control method execution |
| 163 | */ | 186 | */ |
| 164 | void acpi_db_execute(char *name, char **args, u32 flags); | 187 | void |
| 188 | acpi_db_execute(char *name, char **args, acpi_object_type * types, u32 flags); | ||
| 165 | 189 | ||
| 166 | void | 190 | void |
| 167 | acpi_db_create_execution_threads(char *num_threads_arg, | 191 | acpi_db_create_execution_threads(char *num_threads_arg, |
| @@ -175,7 +199,8 @@ u32 acpi_db_get_cache_info(struct acpi_memory_list *cache); | |||
| 175 | * dbfileio - Debugger file I/O commands | 199 | * dbfileio - Debugger file I/O commands |
| 176 | */ | 200 | */ |
| 177 | acpi_object_type | 201 | acpi_object_type |
| 178 | acpi_db_match_argument(char *user_argument, struct argument_info *arguments); | 202 | acpi_db_match_argument(char *user_argument, |
| 203 | struct acpi_db_argument_info *arguments); | ||
| 179 | 204 | ||
| 180 | void acpi_db_close_debug_file(void); | 205 | void acpi_db_close_debug_file(void); |
| 181 | 206 | ||
| @@ -208,6 +233,11 @@ acpi_db_command_dispatch(char *input_buffer, | |||
| 208 | 233 | ||
| 209 | void ACPI_SYSTEM_XFACE acpi_db_execute_thread(void *context); | 234 | void ACPI_SYSTEM_XFACE acpi_db_execute_thread(void *context); |
| 210 | 235 | ||
| 236 | acpi_status acpi_db_user_commands(char prompt, union acpi_parse_object *op); | ||
| 237 | |||
| 238 | char *acpi_db_get_next_token(char *string, | ||
