diff options
Diffstat (limited to 'include/acpi/acutils.h')
-rw-r--r-- | include/acpi/acutils.h | 121 |
1 files changed, 66 insertions, 55 deletions
diff --git a/include/acpi/acutils.h b/include/acpi/acutils.h index 192d0bea3884..0e7b0a3e3b5e 100644 --- a/include/acpi/acutils.h +++ b/include/acpi/acutils.h | |||
@@ -120,10 +120,6 @@ u8 | |||
120 | acpi_ut_valid_object_type ( | 120 | acpi_ut_valid_object_type ( |
121 | acpi_object_type type); | 121 | acpi_object_type type); |
122 | 122 | ||
123 | acpi_owner_id | ||
124 | acpi_ut_allocate_owner_id ( | ||
125 | u32 id_type); | ||
126 | |||
127 | 123 | ||
128 | /* | 124 | /* |
129 | * utinit - miscellaneous initialization and shutdown | 125 | * utinit - miscellaneous initialization and shutdown |
@@ -306,47 +302,63 @@ acpi_ut_track_stack_ptr ( | |||
306 | void | 302 | void |
307 | acpi_ut_trace ( | 303 | acpi_ut_trace ( |
308 | u32 line_number, | 304 | u32 line_number, |
309 | struct acpi_debug_print_info *dbg_info); | 305 | const char *function_name, |
306 | char *module_name, | ||
307 | u32 component_id); | ||
310 | 308 | ||
311 | void | 309 | void |
312 | acpi_ut_trace_ptr ( | 310 | acpi_ut_trace_ptr ( |
313 | u32 line_number, | 311 | u32 line_number, |
314 | struct acpi_debug_print_info *dbg_info, | 312 | const char *function_name, |
313 | char *module_name, | ||
314 | u32 component_id, | ||
315 | void *pointer); | 315 | void *pointer); |
316 | 316 | ||
317 | void | 317 | void |
318 | acpi_ut_trace_u32 ( | 318 | acpi_ut_trace_u32 ( |
319 | u32 line_number, | 319 | u32 line_number, |
320 | struct acpi_debug_print_info *dbg_info, | 320 | const char *function_name, |
321 | char *module_name, | ||
322 | u32 component_id, | ||
321 | u32 integer); | 323 | u32 integer); |
322 | 324 | ||
323 | void | 325 | void |
324 | acpi_ut_trace_str ( | 326 | acpi_ut_trace_str ( |
325 | u32 line_number, | 327 | u32 line_number, |
326 | struct acpi_debug_print_info *dbg_info, | 328 | const char *function_name, |
329 | char *module_name, | ||
330 | u32 component_id, | ||
327 | char *string); | 331 | char *string); |
328 | 332 | ||
329 | void | 333 | void |
330 | acpi_ut_exit ( | 334 | acpi_ut_exit ( |
331 | u32 line_number, | 335 | u32 line_number, |
332 | struct acpi_debug_print_info *dbg_info); | 336 | const char *function_name, |
337 | char *module_name, | ||
338 | u32 component_id); | ||
333 | 339 | ||
334 | void | 340 | void |
335 | acpi_ut_status_exit ( | 341 | acpi_ut_status_exit ( |
336 | u32 line_number, | 342 | u32 line_number, |
337 | struct acpi_debug_print_info *dbg_info, | 343 | const char *function_name, |
344 | char *module_name, | ||
345 | u32 component_id, | ||
338 | acpi_status status); | 346 | acpi_status status); |
339 | 347 | ||
340 | void | 348 | void |
341 | acpi_ut_value_exit ( | 349 | acpi_ut_value_exit ( |
342 | u32 line_number, | 350 | u32 line_number, |
343 | struct acpi_debug_print_info *dbg_info, | 351 | const char *function_name, |
352 | char *module_name, | ||
353 | u32 component_id, | ||
344 | acpi_integer value); | 354 | acpi_integer value); |
345 | 355 | ||
346 | void | 356 | void |
347 | acpi_ut_ptr_exit ( | 357 | acpi_ut_ptr_exit ( |
348 | u32 line_number, | 358 | u32 line_number, |
349 | struct acpi_debug_print_info *dbg_info, | 359 | const char *function_name, |
360 | char *module_name, | ||
361 | u32 component_id, | ||
350 | u8 *ptr); | 362 | u8 *ptr); |
351 | 363 | ||
352 | void | 364 | void |
@@ -378,7 +390,9 @@ void ACPI_INTERNAL_VAR_XFACE | |||
378 | acpi_ut_debug_print ( | 390 | acpi_ut_debug_print ( |
379 | u32 requested_debug_level, | 391 | u32 requested_debug_level, |
380 | u32 line_number, | 392 | u32 line_number, |
381 | struct acpi_debug_print_info *dbg_info, | 393 | const char *function_name, |
394 | char *module_name, | ||
395 | u32 component_id, | ||
382 | char *format, | 396 | char *format, |
383 | ...) ACPI_PRINTF_LIKE_FUNC; | 397 | ...) ACPI_PRINTF_LIKE_FUNC; |
384 | 398 | ||
@@ -386,7 +400,9 @@ void ACPI_INTERNAL_VAR_XFACE | |||
386 | acpi_ut_debug_print_raw ( | 400 | acpi_ut_debug_print_raw ( |
387 | u32 requested_debug_level, | 401 | u32 requested_debug_level, |
388 | u32 line_number, | 402 | u32 line_number, |
389 | struct acpi_debug_print_info *dbg_info, | 403 | const char *function_name, |
404 | char *module_name, | ||
405 | u32 component_id, | ||
390 | char *format, | 406 | char *format, |
391 | ...) ACPI_PRINTF_LIKE_FUNC; | 407 | ...) ACPI_PRINTF_LIKE_FUNC; |
392 | 408 | ||
@@ -477,8 +493,8 @@ acpi_ut_allocate_object_desc_dbg ( | |||
477 | u32 line_number, | 493 | u32 line_number, |
478 | u32 component_id); | 494 | u32 component_id); |
479 | 495 | ||
480 | #define acpi_ut_create_internal_object(t) acpi_ut_create_internal_object_dbg (_THIS_MODULE,__LINE__,_COMPONENT,t) | 496 | #define acpi_ut_create_internal_object(t) acpi_ut_create_internal_object_dbg (_acpi_module_name,__LINE__,_COMPONENT,t) |
481 | #define acpi_ut_allocate_object_desc() acpi_ut_allocate_object_desc_dbg (_THIS_MODULE,__LINE__,_COMPONENT) | 497 | #define acpi_ut_allocate_object_desc() acpi_ut_allocate_object_desc_dbg (_acpi_module_name,__LINE__,_COMPONENT) |
482 | 498 | ||
483 | void | 499 | void |
484 | acpi_ut_delete_object_desc ( | 500 | acpi_ut_delete_object_desc ( |
@@ -557,16 +573,6 @@ void | |||
557 | acpi_ut_delete_generic_state ( | 573 | acpi_ut_delete_generic_state ( |
558 | union acpi_generic_state *state); | 574 | union acpi_generic_state *state); |
559 | 575 | ||
560 | #ifdef ACPI_ENABLE_OBJECT_CACHE | ||
561 | void | ||
562 | acpi_ut_delete_generic_state_cache ( | ||
563 | void); | ||
564 | |||
565 | void | ||
566 | acpi_ut_delete_object_cache ( | ||
567 | void); | ||
568 | #endif | ||
569 | |||
570 | 576 | ||
571 | /* | 577 | /* |
572 | * utmath | 578 | * utmath |
@@ -589,13 +595,21 @@ acpi_ut_short_divide ( | |||
589 | * utmisc | 595 | * utmisc |
590 | */ | 596 | */ |
591 | acpi_status | 597 | acpi_status |
598 | acpi_ut_allocate_owner_id ( | ||
599 | acpi_owner_id *owner_id); | ||
600 | |||
601 | void | ||
602 | acpi_ut_release_owner_id ( | ||
603 | acpi_owner_id *owner_id); | ||
604 | |||
605 | acpi_status | ||
592 | acpi_ut_walk_package_tree ( | 606 | acpi_ut_walk_package_tree ( |
593 | union acpi_operand_object *source_object, | 607 | union acpi_operand_object *source_object, |
594 | void *target_object, | 608 | void *target_object, |
595 | acpi_pkg_callback walk_callback, | 609 | acpi_pkg_callback walk_callback, |
596 | void *context); | 610 | void *context); |
597 | 611 | ||
598 | char * | 612 | void |
599 | acpi_ut_strupr ( | 613 | acpi_ut_strupr ( |
600 | char *src_string); | 614 | char *src_string); |
601 | 615 | ||
@@ -622,22 +636,6 @@ acpi_ut_strtoul64 ( | |||
622 | 636 | ||
623 | #define ACPI_ANY_BASE 0 | 637 | #define ACPI_ANY_BASE 0 |
624 | 638 | ||
625 | acpi_status | ||
626 | acpi_ut_mutex_initialize ( | ||
627 | void); | ||
628 | |||
629 | void | ||
630 | acpi_ut_mutex_terminate ( | ||
631 | void); | ||
632 | |||
633 | acpi_status | ||
634 | acpi_ut_acquire_mutex ( | ||
635 | acpi_mutex_handle mutex_id); | ||
636 | |||
637 | acpi_status | ||
638 | acpi_ut_release_mutex ( | ||
639 | acpi_mutex_handle mutex_id); | ||
640 | |||
641 | u8 * | 639 | u8 * |
642 | acpi_ut_get_resource_end_tag ( | 640 | acpi_ut_get_resource_end_tag ( |
643 | union acpi_operand_object *obj_desc); | 641 | union acpi_operand_object *obj_desc); |
@@ -666,22 +664,35 @@ acpi_ut_display_init_pathname ( | |||
666 | 664 | ||
667 | 665 | ||
668 | /* | 666 | /* |
669 | * utalloc - memory allocation and object caching | 667 | * utmutex - mutex support |
670 | */ | 668 | */ |
671 | void * | 669 | acpi_status |
672 | acpi_ut_acquire_from_cache ( | 670 | acpi_ut_mutex_initialize ( |
673 | u32 list_id); | 671 | void); |
674 | 672 | ||
675 | void | 673 | void |
676 | acpi_ut_release_to_cache ( | 674 | acpi_ut_mutex_terminate ( |
677 | u32 list_id, | 675 | void); |
678 | void *object); | ||
679 | 676 | ||
680 | #ifdef ACPI_ENABLE_OBJECT_CACHE | 677 | acpi_status |
681 | void | 678 | acpi_ut_acquire_mutex ( |
682 | acpi_ut_delete_generic_cache ( | 679 | acpi_mutex_handle mutex_id); |
683 | u32 list_id); | 680 | |
684 | #endif | 681 | acpi_status |
682 | acpi_ut_release_mutex ( | ||
683 | acpi_mutex_handle mutex_id); | ||
684 | |||
685 | |||
686 | /* | ||
687 | * utalloc - memory allocation and object caching | ||
688 | */ | ||
689 | acpi_status | ||
690 | acpi_ut_create_caches ( | ||
691 | void); | ||
692 | |||
693 | acpi_status | ||
694 | acpi_ut_delete_caches ( | ||
695 | void); | ||
685 | 696 | ||
686 | acpi_status | 697 | acpi_status |
687 | acpi_ut_validate_buffer ( | 698 | acpi_ut_validate_buffer ( |