aboutsummaryrefslogtreecommitdiffstats
path: root/include/acpi/acdebug.h
diff options
context:
space:
mode:
authorLen Brown <len.brown@intel.com>2005-08-05 00:44:28 -0400
committerLen Brown <len.brown@intel.com>2005-08-05 00:45:14 -0400
commit4be44fcd3bf648b782f4460fd06dfae6c42ded4b (patch)
tree5b5b7d296ea58786f53b95e5eac9565ff66890b0 /include/acpi/acdebug.h
parentc65ade4dc8b486e8c8b9b0a6399789a5428e2039 (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.h263
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
50struct command_info 49struct 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 54struct argument_info {
57struct 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 */
75acpi_status 69acpi_status acpi_db_initialize(void);
76acpi_db_initialize (
77 void);
78 70
79void 71void acpi_db_terminate(void);
80acpi_db_terminate (
81 void);
82 72
83acpi_status 73acpi_status
84acpi_db_single_step ( 74acpi_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 */
93acpi_status 80acpi_status acpi_db_disassemble_method(char *name);
94acpi_db_disassemble_method (
95 char *name);
96
97void
98acpi_db_display_table_info (
99 char *table_arg);
100 81
101void 82void acpi_db_display_table_info(char *table_arg);
102acpi_db_unload_acpi_table (
103 char *table_arg,
104 char *instance_arg);
105 83
106void 84void acpi_db_unload_acpi_table(char *table_arg, char *instance_arg);
107acpi_db_set_method_breakpoint (
108 char *location,
109 struct acpi_walk_state *walk_state,
110 union acpi_parse_object *op);
111 85
112void 86void
113acpi_db_set_method_call_breakpoint ( 87acpi_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
116void 91void acpi_db_set_method_call_breakpoint(union acpi_parse_object *op);
117acpi_db_get_bus_info (
118 void);
119 92
120void 93void acpi_db_get_bus_info(void);
121acpi_db_disassemble_aml (
122 char *statements,
123 union acpi_parse_object *op);
124 94
125void 95void acpi_db_disassemble_aml(char *statements, union acpi_parse_object *op);
126acpi_db_dump_namespace (
127 char *start_arg,
128 char *depth_arg);
129 96
130void 97void acpi_db_dump_namespace(char *start_arg, char *depth_arg);
131acpi_db_dump_namespace_by_owner (
132 char *owner_arg,
133 char *depth_arg);
134 98
135void 99void acpi_db_dump_namespace_by_owner(char *owner_arg, char *depth_arg);
136acpi_db_send_notify (
137 char *name,
138 u32 value);
139 100
140void 101void acpi_db_send_notify(char *name, u32 value);
141acpi_db_set_method_data (
142 char *type_arg,
143 char *index_arg,
144 char *value_arg);
145 102
146acpi_status 103void acpi_db_set_method_data(char *type_arg, char *index_arg, char *value_arg);
147acpi_db_display_objects (
148 char *obj_type_arg,
149 char *display_count_arg);
150 104
151acpi_status 105acpi_status
152acpi_db_find_name_in_namespace ( 106acpi_db_display_objects(char *obj_type_arg, char *display_count_arg);
153 char *name_arg);
154 107
155void 108acpi_status acpi_db_find_name_in_namespace(char *name_arg);
156acpi_db_set_scope (
157 char *name);
158 109
159acpi_status 110void acpi_db_set_scope(char *name);
160acpi_db_sleep (
161 char *object_arg);
162 111
163void 112acpi_status acpi_db_sleep(char *object_arg);
164acpi_db_find_references (
165 char *object_arg);
166 113
167void 114void acpi_db_find_references(char *object_arg);
168acpi_db_display_locks (
169 void);
170 115
171void 116void acpi_db_display_locks(void);
172acpi_db_display_resources (
173 char *object_arg);
174 117
175void 118void acpi_db_display_resources(char *object_arg);
176acpi_db_display_gpes (
177 void);
178 119
179void 120void acpi_db_display_gpes(void);
180acpi_db_check_integrity (
181 void);
182 121
183void 122void acpi_db_check_integrity(void);
184acpi_db_generate_gpe (
185 char *gpe_arg,
186 char *block_arg);
187 123
124void 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 */
192void 129void acpi_db_display_method_info(union acpi_parse_object *op);
193acpi_db_display_method_info (
194 union acpi_parse_object *op);
195 130
196void 131void acpi_db_decode_and_display_object(char *target, char *output_type);
197acpi_db_decode_and_display_object (
198 char *target,
199 char *output_type);
200 132
201void 133void
202acpi_db_display_result_object ( 134acpi_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
206acpi_status 137acpi_status acpi_db_display_all_methods(char *display_count_arg);
207acpi_db_display_all_methods (
208 char *display_count_arg);
209 138
210void 139void acpi_db_display_arguments(void);
211acpi_db_display_arguments (
212 void);
213 140
214void 141void acpi_db_display_locals(void);
215acpi_db_display_locals (
216 void);
217 142
218void 143void acpi_db_display_results(void);
219acpi_db_display_results (
220 void);
221 144
222void 145void acpi_db_display_calling_tree(void);
223acpi_db_display_calling_tree (
224 void);
225 146
226void 147void acpi_db_display_object_type(char *object_arg);
227acpi_db_display_object_type (
228 char *object_arg);
229 148
230void 149void
231acpi_db_display_argument_object ( 150acpi_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 */
239void 156void acpi_db_execute(char *name, char **args, u32 flags);
240acpi_db_execute (
241 char *name,
242 char **args,
243 u32 flags);
244 157
245void 158void
246acpi_db_create_execution_threads ( 159acpi_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 */
255acpi_object_type 165acpi_object_type
256acpi_db_match_argument ( 166acpi_db_match_argument(char *user_argument, struct argument_info *arguments);
257 char *user_argument,
258 struct argument_info *arguments);
259 167
260void 168void acpi_db_close_debug_file(void);
261acpi_db_close_debug_file (
262 void);
263 169
264void 170void acpi_db_open_debug_file(char *name);
265acpi_db_open_debug_file (
266 char *name);
267 171
268acpi_status 172acpi_status acpi_db_load_acpi_table(char *filename);
269acpi_db_load_acpi_table (
270 char *filename);
271 173
272acpi_status 174acpi_status
273acpi_db_get_table_from_file ( 175acpi_db_get_table_from_file(char *filename, struct acpi_table_header **table);
274 char *filename,
275 struct acpi_table_header **table);
276 176
277acpi_status 177acpi_status
278acpi_db_read_table_from_file ( 178acpi_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 */
286void 183void acpi_db_add_to_history(char *command_line);
287acpi_db_add_to_history (
288 char *command_line);
289 184
290void 185void acpi_db_display_history(void);
291acpi_db_display_history (
292 void);
293
294char *
295acpi_db_get_from_history (
296 char *command_num_arg);
297 186
187char *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 */
302acpi_status 192acpi_status
303acpi_db_command_dispatch ( 193acpi_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
308void ACPI_SYSTEM_XFACE
309acpi_db_execute_thread (
310 void *context);
311 196
197void 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 */
316void 202void acpi_db_generate_statistics(union acpi_parse_object *root, u8 is_method);
317acpi_db_generate_statistics (
318 union acpi_parse_object *root,
319 u8 is_method);
320
321acpi_status
322acpi_db_display_statistics (
323 char *type_arg);
324 203
204acpi_status acpi_db_display_statistics(char *type_arg);
325 205
326/* 206/*
327 * dbutils - AML debugger utilities 207 * dbutils - AML debugger utilities
328 */ 208 */
329void 209void acpi_db_set_output_destination(u32 where);
330acpi_db_set_output_destination (
331 u32 where);
332 210
333void 211void acpi_db_dump_external_object(union acpi_object *obj_desc, u32 level);
334acpi_db_dump_external_object (
335 union acpi_object *obj_desc,
336 u32 level);
337 212
338void 213void acpi_db_prep_namestring(char *name);
339acpi_db_prep_namestring (
340 char *name);
341 214
342struct acpi_namespace_node * 215struct acpi_namespace_node *acpi_db_local_ns_lookup(char *name);
343acpi_db_local_ns_lookup (
344 char *name);
345 216
346#endif /* __ACDEBUG_H__ */ 217#endif /* __ACDEBUG_H__ */