diff options
author | Len Brown <len.brown@intel.com> | 2005-08-05 00:44:28 -0400 |
---|---|---|
committer | Len Brown <len.brown@intel.com> | 2005-08-05 00:45:14 -0400 |
commit | 4be44fcd3bf648b782f4460fd06dfae6c42ded4b (patch) | |
tree | 5b5b7d296ea58786f53b95e5eac9565ff66890b0 /include/acpi/acdebug.h | |
parent | c65ade4dc8b486e8c8b9b0a6399789a5428e2039 (diff) |
[ACPI] Lindent all ACPI files
Signed-off-by: Len Brown <len.brown@intel.com>
Diffstat (limited to 'include/acpi/acdebug.h')
-rw-r--r-- | include/acpi/acdebug.h | 263 |
1 files changed, 67 insertions, 196 deletions
diff --git a/include/acpi/acdebug.h b/include/acpi/acdebug.h index f8fa2227583d..70ce3b4d006e 100644 --- a/include/acpi/acdebug.h +++ b/include/acpi/acdebug.h | |||
@@ -44,22 +44,17 @@ | |||
44 | #ifndef __ACDEBUG_H__ | 44 | #ifndef __ACDEBUG_H__ |
45 | #define __ACDEBUG_H__ | 45 | #define __ACDEBUG_H__ |
46 | 46 | ||
47 | |||
48 | #define ACPI_DEBUG_BUFFER_SIZE 4196 | 47 | #define ACPI_DEBUG_BUFFER_SIZE 4196 |
49 | 48 | ||
50 | struct command_info | 49 | struct command_info { |
51 | { | 50 | char *name; /* Command Name */ |
52 | char *name; /* Command Name */ | 51 | u8 min_args; /* Minimum arguments required */ |
53 | u8 min_args; /* Minimum arguments required */ | ||
54 | }; | 52 | }; |
55 | 53 | ||
56 | 54 | struct argument_info { | |
57 | struct argument_info | 55 | char *name; /* Argument Name */ |
58 | { | ||
59 | char *name; /* Argument Name */ | ||
60 | }; | 56 | }; |
61 | 57 | ||
62 | |||
63 | #define PARAM_LIST(pl) pl | 58 | #define PARAM_LIST(pl) pl |
64 | #define DBTEST_OUTPUT_LEVEL(lvl) if (acpi_gbl_db_opt_verbose) | 59 | #define DBTEST_OUTPUT_LEVEL(lvl) if (acpi_gbl_db_opt_verbose) |
65 | #define VERBOSE_PRINT(fp) DBTEST_OUTPUT_LEVEL(lvl) {\ | 60 | #define VERBOSE_PRINT(fp) DBTEST_OUTPUT_LEVEL(lvl) {\ |
@@ -68,279 +63,155 @@ struct argument_info | |||
68 | #define EX_NO_SINGLE_STEP 1 | 63 | #define EX_NO_SINGLE_STEP 1 |
69 | #define EX_SINGLE_STEP 2 | 64 | #define EX_SINGLE_STEP 2 |
70 | 65 | ||
71 | |||
72 | /* | 66 | /* |
73 | * dbxface - external debugger interfaces | 67 | * dbxface - external debugger interfaces |
74 | */ | 68 | */ |
75 | acpi_status | 69 | acpi_status acpi_db_initialize(void); |
76 | acpi_db_initialize ( | ||
77 | void); | ||
78 | 70 | ||
79 | void | 71 | void acpi_db_terminate(void); |
80 | acpi_db_terminate ( | ||
81 | void); | ||
82 | 72 | ||
83 | acpi_status | 73 | acpi_status |
84 | acpi_db_single_step ( | 74 | acpi_db_single_step(struct acpi_walk_state *walk_state, |
85 | struct acpi_walk_state *walk_state, | 75 | union acpi_parse_object *op, u32 op_type); |
86 | union acpi_parse_object *op, | ||
87 | u32 op_type); | ||
88 | |||
89 | 76 | ||
90 | /* | 77 | /* |
91 | * dbcmds - debug commands and output routines | 78 | * dbcmds - debug commands and output routines |
92 | */ | 79 | */ |
93 | acpi_status | 80 | acpi_status acpi_db_disassemble_method(char *name); |
94 | acpi_db_disassemble_method ( | ||
95 | char *name); | ||
96 | |||
97 | void | ||
98 | acpi_db_display_table_info ( | ||
99 | char *table_arg); | ||
100 | 81 | ||
101 | void | 82 | void acpi_db_display_table_info(char *table_arg); |
102 | acpi_db_unload_acpi_table ( | ||
103 | char *table_arg, | ||
104 | char *instance_arg); | ||
105 | 83 | ||
106 | void | 84 | void acpi_db_unload_acpi_table(char *table_arg, char *instance_arg); |
107 | acpi_db_set_method_breakpoint ( | ||
108 | char *location, | ||
109 | struct acpi_walk_state *walk_state, | ||
110 | union acpi_parse_object *op); | ||
111 | 85 | ||
112 | void | 86 | void |
113 | acpi_db_set_method_call_breakpoint ( | 87 | acpi_db_set_method_breakpoint(char *location, |
114 | union acpi_parse_object *op); | 88 | struct acpi_walk_state *walk_state, |
89 | union acpi_parse_object *op); | ||
115 | 90 | ||
116 | void | 91 | void acpi_db_set_method_call_breakpoint(union acpi_parse_object *op); |
117 | acpi_db_get_bus_info ( | ||
118 | void); | ||
119 | 92 | ||
120 | void | 93 | void acpi_db_get_bus_info(void); |
121 | acpi_db_disassemble_aml ( | ||
122 | char *statements, | ||
123 | union acpi_parse_object *op); | ||
124 | 94 | ||
125 | void | 95 | void acpi_db_disassemble_aml(char *statements, union acpi_parse_object *op); |
126 | acpi_db_dump_namespace ( | ||
127 | char *start_arg, | ||
128 | char *depth_arg); | ||
129 | 96 | ||
130 | void | 97 | void acpi_db_dump_namespace(char *start_arg, char *depth_arg); |
131 | acpi_db_dump_namespace_by_owner ( | ||
132 | char *owner_arg, | ||
133 | char *depth_arg); | ||
134 | 98 | ||
135 | void | 99 | void acpi_db_dump_namespace_by_owner(char *owner_arg, char *depth_arg); |
136 | acpi_db_send_notify ( | ||
137 | char *name, | ||
138 | u32 value); | ||
139 | 100 | ||
140 | void | 101 | void acpi_db_send_notify(char *name, u32 value); |
141 | acpi_db_set_method_data ( | ||
142 | char *type_arg, | ||
143 | char *index_arg, | ||
144 | char *value_arg); | ||
145 | 102 | ||
146 | acpi_status | 103 | void acpi_db_set_method_data(char *type_arg, char *index_arg, char *value_arg); |
147 | acpi_db_display_objects ( | ||
148 | char *obj_type_arg, | ||
149 | char *display_count_arg); | ||
150 | 104 | ||
151 | acpi_status | 105 | acpi_status |
152 | acpi_db_find_name_in_namespace ( | 106 | acpi_db_display_objects(char *obj_type_arg, char *display_count_arg); |
153 | char *name_arg); | ||
154 | 107 | ||
155 | void | 108 | acpi_status acpi_db_find_name_in_namespace(char *name_arg); |
156 | acpi_db_set_scope ( | ||
157 | char *name); | ||
158 | 109 | ||
159 | acpi_status | 110 | void acpi_db_set_scope(char *name); |
160 | acpi_db_sleep ( | ||
161 | char *object_arg); | ||
162 | 111 | ||
163 | void | 112 | acpi_status acpi_db_sleep(char *object_arg); |
164 | acpi_db_find_references ( | ||
165 | char *object_arg); | ||
166 | 113 | ||
167 | void | 114 | void acpi_db_find_references(char *object_arg); |
168 | acpi_db_display_locks ( | ||
169 | void); | ||
170 | 115 | ||
171 | void | 116 | void acpi_db_display_locks(void); |
172 | acpi_db_display_resources ( | ||
173 | char *object_arg); | ||
174 | 117 | ||
175 | void | 118 | void acpi_db_display_resources(char *object_arg); |
176 | acpi_db_display_gpes ( | ||
177 | void); | ||
178 | 119 | ||
179 | void | 120 | void acpi_db_display_gpes(void); |
180 | acpi_db_check_integrity ( | ||
181 | void); | ||
182 | 121 | ||
183 | void | 122 | void acpi_db_check_integrity(void); |
184 | acpi_db_generate_gpe ( | ||
185 | char *gpe_arg, | ||
186 | char *block_arg); | ||
187 | 123 | ||
124 | void acpi_db_generate_gpe(char *gpe_arg, char *block_arg); | ||
188 | 125 | ||
189 | /* | 126 | /* |
190 | * dbdisply - debug display commands | 127 | * dbdisply - debug display commands |
191 | */ | 128 | */ |
192 | void | 129 | void acpi_db_display_method_info(union acpi_parse_object *op); |
193 | acpi_db_display_method_info ( | ||
194 | union acpi_parse_object *op); | ||
195 | 130 | ||
196 | void | 131 | void acpi_db_decode_and_display_object(char *target, char *output_type); |
197 | acpi_db_decode_and_display_object ( | ||
198 | char *target, | ||
199 | char *output_type); | ||
200 | 132 | ||
201 | void | 133 | void |
202 | acpi_db_display_result_object ( | 134 | acpi_db_display_result_object(union acpi_operand_object *obj_desc, |
203 | union acpi_operand_object *obj_desc, | 135 | struct acpi_walk_state *walk_state); |
204 | struct acpi_walk_state *walk_state); | ||
205 | 136 | ||
206 | acpi_status | 137 | acpi_status acpi_db_display_all_methods(char *display_count_arg); |
207 | acpi_db_display_all_methods ( | ||
208 | char *display_count_arg); | ||
209 | 138 | ||
210 | void | 139 | void acpi_db_display_arguments(void); |
211 | acpi_db_display_arguments ( | ||
212 | void); | ||
213 | 140 | ||
214 | void | 141 | void acpi_db_display_locals(void); |
215 | acpi_db_display_locals ( | ||
216 | void); | ||
217 | 142 | ||
218 | void | 143 | void acpi_db_display_results(void); |
219 | acpi_db_display_results ( | ||
220 | void); | ||
221 | 144 | ||
222 | void | 145 | void acpi_db_display_calling_tree(void); |
223 | acpi_db_display_calling_tree ( | ||
224 | void); | ||
225 | 146 | ||
226 | void | 147 | void acpi_db_display_object_type(char *object_arg); |
227 | acpi_db_display_object_type ( | ||
228 | char *object_arg); | ||
229 | 148 | ||
230 | void | 149 | void |
231 | acpi_db_display_argument_object ( | 150 | acpi_db_display_argument_object(union acpi_operand_object *obj_desc, |
232 | union acpi_operand_object *obj_desc, | 151 | struct acpi_walk_state *walk_state); |
233 | struct acpi_walk_state *walk_state); | ||
234 | |||
235 | 152 | ||
236 | /* | 153 | /* |
237 | * dbexec - debugger control method execution | 154 | * dbexec - debugger control method execution |
238 | */ | 155 | */ |
239 | void | 156 | void acpi_db_execute(char *name, char **args, u32 flags); |
240 | acpi_db_execute ( | ||
241 | char *name, | ||
242 | char **args, | ||
243 | u32 flags); | ||
244 | 157 | ||
245 | void | 158 | void |
246 | acpi_db_create_execution_threads ( | 159 | acpi_db_create_execution_threads(char *num_threads_arg, |
247 | char *num_threads_arg, | 160 | char *num_loops_arg, char *method_name_arg); |
248 | char *num_loops_arg, | ||
249 | char *method_name_arg); | ||
250 | |||
251 | 161 | ||
252 | /* | 162 | /* |
253 | * dbfileio - Debugger file I/O commands | 163 | * dbfileio - Debugger file I/O commands |
254 | */ | 164 | */ |
255 | acpi_object_type | 165 | acpi_object_type |
256 | acpi_db_match_argument ( | 166 | acpi_db_match_argument(char *user_argument, struct argument_info *arguments); |
257 | char *user_argument, | ||
258 | struct argument_info *arguments); | ||
259 | 167 | ||
260 | void | 168 | void acpi_db_close_debug_file(void); |
261 | acpi_db_close_debug_file ( | ||
262 | void); | ||
263 | 169 | ||
264 | void | 170 | void acpi_db_open_debug_file(char *name); |
265 | acpi_db_open_debug_file ( | ||
266 | char *name); | ||
267 | 171 | ||
268 | acpi_status | 172 | acpi_status acpi_db_load_acpi_table(char *filename); |
269 | acpi_db_load_acpi_table ( | ||
270 | char *filename); | ||
271 | 173 | ||
272 | acpi_status | 174 | acpi_status |
273 | acpi_db_get_table_from_file ( | 175 | acpi_db_get_table_from_file(char *filename, struct acpi_table_header **table); |
274 | char *filename, | ||
275 | struct acpi_table_header **table); | ||
276 | 176 | ||
277 | acpi_status | 177 | acpi_status |
278 | acpi_db_read_table_from_file ( | 178 | acpi_db_read_table_from_file(char *filename, struct acpi_table_header **table); |
279 | char *filename, | ||
280 | struct acpi_table_header **table); | ||
281 | |||
282 | 179 | ||
283 | /* | 180 | /* |
284 | * dbhistry - debugger HISTORY command | 181 | * dbhistry - debugger HISTORY command |
285 | */ | 182 | */ |
286 | void | 183 | void acpi_db_add_to_history(char *command_line); |
287 | acpi_db_add_to_history ( | ||
288 | char *command_line); | ||
289 | 184 | ||
290 | void | 185 | void acpi_db_display_history(void); |
291 | acpi_db_display_history ( | ||
292 | void); | ||
293 | |||
294 | char * | ||
295 | acpi_db_get_from_history ( | ||
296 | char *command_num_arg); | ||
297 | 186 | ||
187 | char *acpi_db_get_from_history(char *command_num_arg); | ||
298 | 188 | ||
299 | /* | 189 | /* |
300 | * dbinput - user front-end to the AML debugger | 190 | * dbinput - user front-end to the AML debugger |
301 | */ | 191 | */ |
302 | acpi_status | 192 | acpi_status |
303 | acpi_db_command_dispatch ( | 193 | acpi_db_command_dispatch(char *input_buffer, |
304 | char *input_buffer, | 194 | struct acpi_walk_state *walk_state, |
305 | struct acpi_walk_state *walk_state, | 195 | union acpi_parse_object *op); |
306 | union acpi_parse_object *op); | ||
307 | |||
308 | void ACPI_SYSTEM_XFACE | ||
309 | acpi_db_execute_thread ( | ||
310 | void *context); | ||
311 | 196 | ||
197 | void ACPI_SYSTEM_XFACE acpi_db_execute_thread(void *context); | ||
312 | 198 | ||
313 | /* | 199 | /* |
314 | * dbstats - Generation and display of ACPI table statistics | 200 | * dbstats - Generation and display of ACPI table statistics |
315 | */ | 201 | */ |
316 | void | 202 | void acpi_db_generate_statistics(union acpi_parse_object *root, u8 is_method); |
317 | acpi_db_generate_statistics ( | ||
318 | union acpi_parse_object *root, | ||
319 | u8 is_method); | ||
320 | |||
321 | acpi_status | ||
322 | acpi_db_display_statistics ( | ||
323 | char *type_arg); | ||
324 | 203 | ||
204 | acpi_status acpi_db_display_statistics(char *type_arg); | ||
325 | 205 | ||
326 | /* | 206 | /* |
327 | * dbutils - AML debugger utilities | 207 | * dbutils - AML debugger utilities |
328 | */ | 208 | */ |
329 | void | 209 | void acpi_db_set_output_destination(u32 where); |
330 | acpi_db_set_output_destination ( | ||
331 | u32 where); | ||
332 | 210 | ||
333 | void | 211 | void acpi_db_dump_external_object(union acpi_object *obj_desc, u32 level); |
334 | acpi_db_dump_external_object ( | ||
335 | union acpi_object *obj_desc, | ||
336 | u32 level); | ||
337 | 212 | ||
338 | void | 213 | void acpi_db_prep_namestring(char *name); |
339 | acpi_db_prep_namestring ( | ||
340 | char *name); | ||
341 | 214 | ||
342 | struct acpi_namespace_node * | 215 | struct acpi_namespace_node *acpi_db_local_ns_lookup(char *name); |
343 | acpi_db_local_ns_lookup ( | ||
344 | char *name); | ||
345 | 216 | ||
346 | #endif /* __ACDEBUG_H__ */ | 217 | #endif /* __ACDEBUG_H__ */ |