46
46
47
47
/*****************************************************************************
48
48
*
49
- * Globals related to the ACPI tables
49
+ * Globals related to the incoming ACPI tables
50
50
*
51
51
****************************************************************************/
52
52
@@ -87,7 +87,7 @@ ACPI_GLOBAL(u8, acpi_gbl_integer_nybble_width);
87
87
88
88
/*****************************************************************************
89
89
*
90
- * Mutual exclusion within ACPICA subsystem
90
+ * Mutual exclusion within the ACPICA subsystem
91
91
*
92
92
****************************************************************************/
93
93
@@ -167,7 +167,7 @@ ACPI_GLOBAL(u8, acpi_gbl_next_owner_id_offset);
167
167
168
168
ACPI_INIT_GLOBAL (u8 , acpi_gbl_namespace_initialized , FALSE);
169
169
170
- /* Misc */
170
+ /* Miscellaneous */
171
171
172
172
ACPI_GLOBAL (u32 , acpi_gbl_original_mode );
173
173
ACPI_GLOBAL (u32 , acpi_gbl_ns_lookup_count );
@@ -191,10 +191,9 @@ extern const char acpi_gbl_lower_hex_digits[];
191
191
extern const char acpi_gbl_upper_hex_digits [];
192
192
extern const struct acpi_opcode_info acpi_gbl_aml_op_info [AML_NUM_OPCODES ];
193
193
194
- #ifdef ACPI_DBG_TRACK_ALLOCATIONS
195
-
196
194
/* Lists for tracking memory allocations (debug only) */
197
195
196
+ #ifdef ACPI_DBG_TRACK_ALLOCATIONS
198
197
ACPI_GLOBAL (struct acpi_memory_list * , acpi_gbl_global_list );
199
198
ACPI_GLOBAL (struct acpi_memory_list * , acpi_gbl_ns_node_list );
200
199
ACPI_GLOBAL (u8 , acpi_gbl_display_final_mem_stats );
@@ -203,7 +202,7 @@ ACPI_GLOBAL(u8, acpi_gbl_disable_mem_tracking);
203
202
204
203
/*****************************************************************************
205
204
*
206
- * Namespace globals
205
+ * ACPI Namespace
207
206
*
208
207
****************************************************************************/
209
208
@@ -234,15 +233,20 @@ ACPI_INIT_GLOBAL(u32, acpi_gbl_nesting_level, 0);
234
233
235
234
/*****************************************************************************
236
235
*
237
- * Interpreter globals
236
+ * Interpreter/Parser globals
238
237
*
239
238
****************************************************************************/
240
239
241
- ACPI_GLOBAL (struct acpi_thread_state * , acpi_gbl_current_walk_list );
242
-
243
240
/* Control method single step flag */
244
241
245
242
ACPI_GLOBAL (u8 , acpi_gbl_cm_single_step );
243
+ ACPI_GLOBAL (struct acpi_thread_state * , acpi_gbl_current_walk_list );
244
+ ACPI_INIT_GLOBAL (union acpi_parse_object , * acpi_gbl_current_scope , NULL );
245
+
246
+ /* ASL/ASL+ converter */
247
+
248
+ ACPI_INIT_GLOBAL (u8 , acpi_gbl_capture_comments , FALSE);
249
+ ACPI_INIT_GLOBAL (struct acpi_comment_node , * acpi_gbl_last_list_head , NULL );
246
250
247
251
/*****************************************************************************
248
252
*
@@ -252,7 +256,6 @@ ACPI_GLOBAL(u8, acpi_gbl_cm_single_step);
252
256
253
257
extern struct acpi_bit_register_info
254
258
acpi_gbl_bit_register_info [ACPI_NUM_BITREG ];
255
-
256
259
ACPI_GLOBAL (u8 , acpi_gbl_sleep_type_a );
257
260
ACPI_GLOBAL (u8 , acpi_gbl_sleep_type_b );
258
261
@@ -263,7 +266,6 @@ ACPI_GLOBAL(u8, acpi_gbl_sleep_type_b);
263
266
****************************************************************************/
264
267
265
268
#if (!ACPI_REDUCED_HARDWARE )
266
-
267
269
ACPI_GLOBAL (u8 , acpi_gbl_all_gpes_initialized );
268
270
ACPI_GLOBAL (struct acpi_gpe_xrupt_info * , acpi_gbl_gpe_xrupt_list_head );
269
271
ACPI_GLOBAL (struct acpi_gpe_block_info * ,
@@ -272,10 +274,8 @@ ACPI_GLOBAL(acpi_gbl_event_handler, acpi_gbl_global_event_handler);
272
274
ACPI_GLOBAL (void * , acpi_gbl_global_event_handler_context );
273
275
ACPI_GLOBAL (struct acpi_fixed_event_handler ,
274
276
acpi_gbl_fixed_event_handlers [ACPI_NUM_FIXED_EVENTS ]);
275
-
276
277
extern struct acpi_fixed_event_info
277
278
acpi_gbl_fixed_event_info [ACPI_NUM_FIXED_EVENTS ];
278
-
279
279
#endif /* !ACPI_REDUCED_HARDWARE */
280
280
281
281
/*****************************************************************************
@@ -291,14 +291,14 @@ ACPI_GLOBAL(u32, acpi_gpe_count);
291
291
ACPI_GLOBAL (u32 , acpi_sci_count );
292
292
ACPI_GLOBAL (u32 , acpi_fixed_event_count [ACPI_NUM_FIXED_EVENTS ]);
293
293
294
- /* Support for dynamic control method tracing mechanism */
294
+ /* Dynamic control method tracing mechanism */
295
295
296
296
ACPI_GLOBAL (u32 , acpi_gbl_original_dbg_level );
297
297
ACPI_GLOBAL (u32 , acpi_gbl_original_dbg_layer );
298
298
299
299
/*****************************************************************************
300
300
*
301
- * Debugger and Disassembler globals
301
+ * Debugger and Disassembler
302
302
*
303
303
****************************************************************************/
304
304
@@ -326,7 +326,6 @@ ACPI_GLOBAL(struct acpi_external_file *, acpi_gbl_external_file_list);
326
326
#endif
327
327
328
328
#ifdef ACPI_DEBUGGER
329
-
330
329
ACPI_INIT_GLOBAL (u8 , acpi_gbl_abort_method , FALSE);
331
330
ACPI_INIT_GLOBAL (acpi_thread_id , acpi_gbl_db_thread_id , ACPI_INVALID_THREAD_ID );
332
331
@@ -340,7 +339,6 @@ ACPI_GLOBAL(u32, acpi_gbl_db_console_debug_level);
340
339
ACPI_GLOBAL (struct acpi_namespace_node * , acpi_gbl_db_scope_node );
341
340
ACPI_GLOBAL (u8 , acpi_gbl_db_terminate_loop );
342
341
ACPI_GLOBAL (u8 , acpi_gbl_db_threads_terminated );
343
-
344
342
ACPI_GLOBAL (char * , acpi_gbl_db_args [ACPI_DEBUGGER_MAX_ARGS ]);
345
343
ACPI_GLOBAL (acpi_object_type , acpi_gbl_db_arg_types [ACPI_DEBUGGER_MAX_ARGS ]);
346
344
@@ -350,32 +348,33 @@ ACPI_GLOBAL(char, acpi_gbl_db_parsed_buf[ACPI_DB_LINE_BUFFER_SIZE]);
350
348
ACPI_GLOBAL (char , acpi_gbl_db_scope_buf [ACPI_DB_LINE_BUFFER_SIZE ]);
351
349
ACPI_GLOBAL (char , acpi_gbl_db_debug_filename [ACPI_DB_LINE_BUFFER_SIZE ]);
352
350
353
- /*
354
- * Statistic globals
355
- */
351
+ /* Statistics globals */
352
+
356
353
ACPI_GLOBAL (u16 , acpi_gbl_obj_type_count [ACPI_TOTAL_TYPES ]);
357
354
ACPI_GLOBAL (u16 , acpi_gbl_node_type_count [ACPI_TOTAL_TYPES ]);
358
355
ACPI_GLOBAL (u16 , acpi_gbl_obj_type_count_misc );
359
356
ACPI_GLOBAL (u16 , acpi_gbl_node_type_count_misc );
360
357
ACPI_GLOBAL (u32 , acpi_gbl_num_nodes );
361
358
ACPI_GLOBAL (u32 , acpi_gbl_num_objects );
362
-
363
359
#endif /* ACPI_DEBUGGER */
364
360
365
361
#if defined (ACPI_DISASSEMBLER ) || defined (ACPI_ASL_COMPILER )
366
-
367
362
ACPI_GLOBAL (const char , * acpi_gbl_pld_panel_list []);
368
363
ACPI_GLOBAL (const char , * acpi_gbl_pld_vertical_position_list []);
369
364
ACPI_GLOBAL (const char , * acpi_gbl_pld_horizontal_position_list []);
370
365
ACPI_GLOBAL (const char , * acpi_gbl_pld_shape_list []);
371
-
372
366
ACPI_INIT_GLOBAL (u8 , acpi_gbl_disasm_flag , FALSE);
373
-
374
367
#endif
375
368
376
- /*
377
- * Meant for the -ca option.
378
- */
369
+ /*****************************************************************************
370
+ *
371
+ * ACPICA application-specific globals
372
+ *
373
+ ****************************************************************************/
374
+
375
+ /* ASL-to-ASL+ conversion utility (implemented within the iASL compiler) */
376
+
377
+ #ifdef ACPI_ASL_COMPILER
379
378
ACPI_INIT_GLOBAL (char * , acpi_gbl_current_inline_comment , NULL );
380
379
ACPI_INIT_GLOBAL (char * , acpi_gbl_current_end_node_comment , NULL );
381
380
ACPI_INIT_GLOBAL (char * , acpi_gbl_current_open_brace_comment , NULL );
@@ -386,54 +385,37 @@ ACPI_INIT_GLOBAL(char *, acpi_gbl_current_filename, NULL);
386
385
ACPI_INIT_GLOBAL (char * , acpi_gbl_current_parent_filename , NULL );
387
386
ACPI_INIT_GLOBAL (char * , acpi_gbl_current_include_filename , NULL );
388
387
389
- ACPI_INIT_GLOBAL (struct acpi_comment_node , * acpi_gbl_last_list_head , NULL );
390
-
391
388
ACPI_INIT_GLOBAL (struct acpi_comment_node , * acpi_gbl_def_blk_comment_list_head ,
392
389
NULL );
393
390
ACPI_INIT_GLOBAL (struct acpi_comment_node , * acpi_gbl_def_blk_comment_list_tail ,
394
391
NULL );
395
-
396
392
ACPI_INIT_GLOBAL (struct acpi_comment_node , * acpi_gbl_reg_comment_list_head ,
397
393
NULL );
398
394
ACPI_INIT_GLOBAL (struct acpi_comment_node , * acpi_gbl_reg_comment_list_tail ,
399
395
NULL );
400
-
401
396
ACPI_INIT_GLOBAL (struct acpi_comment_node , * acpi_gbl_inc_comment_list_head ,
402
397
NULL );
403
398
ACPI_INIT_GLOBAL (struct acpi_comment_node , * acpi_gbl_inc_comment_list_tail ,
404
399
NULL );
405
-
406
400
ACPI_INIT_GLOBAL (struct acpi_comment_node , * acpi_gbl_end_blk_comment_list_head ,
407
401
NULL );
408
402
ACPI_INIT_GLOBAL (struct acpi_comment_node , * acpi_gbl_end_blk_comment_list_tail ,
409
403
NULL );
410
404
411
405
ACPI_INIT_GLOBAL (struct acpi_comment_addr_node ,
412
406
* acpi_gbl_comment_addr_list_head , NULL );
413
-
414
- ACPI_INIT_GLOBAL (union acpi_parse_object , * acpi_gbl_current_scope , NULL );
415
-
416
407
ACPI_INIT_GLOBAL (struct acpi_file_node , * acpi_gbl_file_tree_root , NULL );
417
408
418
409
ACPI_GLOBAL (acpi_cache_t * , acpi_gbl_reg_comment_cache );
419
410
ACPI_GLOBAL (acpi_cache_t * , acpi_gbl_comment_addr_cache );
420
411
ACPI_GLOBAL (acpi_cache_t * , acpi_gbl_file_cache );
421
412
422
- ACPI_INIT_GLOBAL (u8 , gbl_capture_comments , FALSE);
423
-
424
413
ACPI_INIT_GLOBAL (u8 , acpi_gbl_debug_asl_conversion , FALSE);
425
414
ACPI_INIT_GLOBAL (ACPI_FILE , acpi_gbl_conv_debug_file , NULL );
426
-
427
415
ACPI_GLOBAL (char , acpi_gbl_table_sig [4 ]);
428
-
429
- /*****************************************************************************
430
- *
431
- * Application globals
432
- *
433
- ****************************************************************************/
416
+ #endif
434
417
435
418
#ifdef ACPI_APPLICATION
436
-
437
419
ACPI_INIT_GLOBAL (ACPI_FILE , acpi_gbl_debug_file , NULL );
438
420
ACPI_INIT_GLOBAL (ACPI_FILE , acpi_gbl_output_file , NULL );
439
421
ACPI_INIT_GLOBAL (u8 , acpi_gbl_debug_timeout , FALSE);
@@ -442,16 +424,6 @@ ACPI_INIT_GLOBAL(u8, acpi_gbl_debug_timeout, FALSE);
442
424
443
425
ACPI_GLOBAL (acpi_spinlock , acpi_gbl_print_lock ); /* For print buffer */
444
426
ACPI_GLOBAL (char , acpi_gbl_print_buffer [1024 ]);
445
-
446
427
#endif /* ACPI_APPLICATION */
447
428
448
- /*****************************************************************************
449
- *
450
- * Info/help support
451
- *
452
- ****************************************************************************/
453
-
454
- extern const struct ah_predefined_name asl_predefined_info [];
455
- extern const struct ah_device_id asl_device_ids [];
456
-
457
429
#endif /* __ACGLOBAL_H__ */
0 commit comments