|
ReactOS 0.4.17-dev-684-ga6524ef
|
#include <uacpi/uacpi.h>#include <uacpi/acpi.h>#include <uacpi/internal/log.h>#include <uacpi/internal/context.h>#include <uacpi/internal/utilities.h>#include <uacpi/internal/tables.h>#include <uacpi/internal/interpreter.h>#include <uacpi/internal/namespace.h>#include <uacpi/internal/opregion.h>#include <uacpi/internal/registers.h>#include <uacpi/internal/event.h>#include <uacpi/internal/notify.h>#include <uacpi/internal/osi.h>
Go to the source code of this file.
Classes | |
| struct | table_load_stats |
| struct | ns_init_context |
Macros | |
| #define | TRACE_BAD_RET(path_fmt, type, ...) |
| #define | TRACE_NO_RET(path_fmt, ...) |
Enumerations | |
| enum | hw_mode { HW_MODE_ACPI = 0 , HW_MODE_LEGACY = 1 } |
Variables | |
| struct uacpi_runtime_context | g_uacpi_rt_ctx = { 0 } |
| #define TRACE_NO_RET | ( | path_fmt, | |
| ... | |||
| ) |
| Enumerator | |
|---|---|
| HW_MODE_ACPI | |
| HW_MODE_LEGACY | |
|
static |
Definition at line 566 of file uacpi.c.
Referenced by uacpi_namespace_initialize().
Definition at line 406 of file uacpi.c.
Referenced by taskdialog_callback_proc_timer(), uacpi_namespace_initialize(), and uacpi_namespace_load().
Definition at line 302 of file uacpi.c.
Referenced by uacpi_initialize().
|
static |
Definition at line 259 of file uacpi.c.
Referenced by enter_acpi_mode_initial(), uacpi_enter_acpi_mode(), and uacpi_leave_acpi_mode().
|
static |
Definition at line 535 of file uacpi.c.
Referenced by do_sta_ini(), and uacpi_namespace_initialize().
|
static |
Definition at line 397 of file uacpi.c.
Referenced by uacpi_namespace_load().
Definition at line 199 of file uacpi.c.
Referenced by enter_mode(), and set_mode().
|
static |
Definition at line 215 of file uacpi.c.
Referenced by enter_mode(), and FT_Set_Renderer().
|
static |
Definition at line 548 of file uacpi.c.
Referenced by do_sta_ini().
|
static |
Definition at line 822 of file uacpi.c.
Referenced by uacpi_eval_typed().
|
static |
Definition at line 386 of file uacpi.c.
Referenced by uacpi_namespace_load().
| void uacpi_context_set_log_level | ( | uacpi_log_level | lvl | ) |
Set the minimum log level to be accepted by the logging facilities. Any logs below this level are discarded and not passed to uacpi_kernel_log, etc.
0 is treated as a special value that resets the setting to the default value.
E.g. for a log level of UACPI_LOG_INFO: UACPI_LOG_DEBUG -> discarded UACPI_LOG_TRACE -> discarded UACPI_LOG_INFO -> allowed UACPI_LOG_WARN -> allowed UACPI_LOG_ERROR -> allowed
Definition at line 28 of file uacpi.c.
Referenced by uacpi_logger_initialize().
Set the maximum number of seconds a While loop is allowed to run for before getting timed out.
0 is treated a special value that resets the setting to the default value.
Definition at line 172 of file uacpi.c.
Referenced by uacpi_initialize().
Set the maximum call stack depth AML can reach before getting aborted.
0 is treated as a special value that resets the setting to the default value.
Definition at line 180 of file uacpi.c.
Referenced by uacpi_initialize().
| void uacpi_context_set_proactive_table_checksum | ( | uacpi_bool | setting | ) |
Enables table checksum validation at installation time instead of first use. Note that this makes uACPI map the entire table at once, which not all hosts are able to handle at early init.
Definition at line 52 of file uacpi.c.
| uacpi_status uacpi_enter_acpi_mode | ( | void | ) |
| uacpi_status uacpi_eval | ( | uacpi_namespace_node * | parent, |
| const uacpi_char * | path, | ||
| const uacpi_object_array * | args, | ||
| uacpi_object ** | ret | ||
| ) |
Evaluate an object within the namespace and get back its value. Either root or path must be valid. A value of NULL for 'parent' implies uacpi_namespace_root() relative lookups, unless 'path' is already absolute.
Definition at line 709 of file uacpi.c.
Referenced by eval_sleep_helper(), ini_eval(), uacpi_eval_simple(), uacpi_eval_typed(), uacpi_execute(), uacpi_execute_simple(), uacpi_set_interrupt_model(), and uacpi_set_resources().
| uacpi_status uacpi_eval_buffer | ( | uacpi_namespace_node * | parent, |
| const uacpi_char * | path, | ||
| const uacpi_object_array * | args, | ||
| uacpi_object ** | ret | ||
| ) |
A shorthand for uacpi_eval_typed with UACPI_OBJECT_BUFFER_BIT.
Use uacpi_object_get_buffer to retrieve the resulting buffer data.
Definition at line 961 of file uacpi.c.
| uacpi_status uacpi_eval_integer | ( | uacpi_namespace_node * | parent, |
| const uacpi_char * | path, | ||
| const uacpi_object_array * | args, | ||
| uacpi_u64 * | out_value | ||
| ) |
A shorthand for uacpi_eval_typed with UACPI_OBJECT_INTEGER_BIT.
Definition at line 892 of file uacpi.c.
Referenced by uacpi_eval_adr(), uacpi_eval_simple_integer(), and uacpi_eval_sta().
| uacpi_status uacpi_eval_package | ( | uacpi_namespace_node * | parent, |
| const uacpi_char * | path, | ||
| const uacpi_object_array * | args, | ||
| uacpi_object ** | ret | ||
| ) |
| uacpi_status uacpi_eval_simple | ( | uacpi_namespace_node * | parent, |
| const uacpi_char * | path, | ||
| uacpi_object ** | ret | ||
| ) |
| uacpi_status uacpi_eval_simple_buffer | ( | uacpi_namespace_node * | parent, |
| const uacpi_char * | path, | ||
| uacpi_object ** | ret | ||
| ) |
| uacpi_status uacpi_eval_simple_integer | ( | uacpi_namespace_node * | parent, |
| const uacpi_char * | path, | ||
| uacpi_u64 * | out_value | ||
| ) |
Definition at line 912 of file uacpi.c.
Referenced by pci_region_attach().
| uacpi_status uacpi_eval_simple_package | ( | uacpi_namespace_node * | parent, |
| const uacpi_char * | path, | ||
| uacpi_object ** | ret | ||
| ) |
| uacpi_status uacpi_eval_simple_string | ( | uacpi_namespace_node * | parent, |
| const uacpi_char * | path, | ||
| uacpi_object ** | ret | ||
| ) |
| uacpi_status uacpi_eval_simple_string_or_buffer | ( | uacpi_namespace_node * | parent, |
| const uacpi_char * | path, | ||
| uacpi_object ** | ret | ||
| ) |
| uacpi_status uacpi_eval_simple_typed | ( | uacpi_namespace_node * | parent, |
| const uacpi_char * | path, | ||
| uacpi_object_type_bits | ret_mask, | ||
| uacpi_object ** | ret | ||
| ) |
| uacpi_status uacpi_eval_string | ( | uacpi_namespace_node * | parent, |
| const uacpi_char * | path, | ||
| const uacpi_object_array * | args, | ||
| uacpi_object ** | ret | ||
| ) |
A shorthand for uacpi_eval_typed with UACPI_OBJECT_STRING_BIT.
Use uacpi_object_get_string to retrieve the resulting buffer data.
| uacpi_status uacpi_eval_string_or_buffer | ( | uacpi_namespace_node * | parent, |
| const uacpi_char * | path, | ||
| const uacpi_object_array * | args, | ||
| uacpi_object ** | ret | ||
| ) |
| uacpi_status uacpi_eval_typed | ( | uacpi_namespace_node * | parent, |
| const uacpi_char * | path, | ||
| const uacpi_object_array * | args, | ||
| uacpi_object_type_bits | ret_mask, | ||
| uacpi_object ** | ret | ||
| ) |
Same as uacpi_eval, but the return value type is validated against the 'ret_mask'. UACPI_STATUS_TYPE_MISMATCH is returned on error.
Definition at line 854 of file uacpi.c.
Referenced by get_slp_type_for_state(), uacpi_eval_buffer(), uacpi_eval_cid(), uacpi_eval_cls(), uacpi_eval_dstate_method_template(), uacpi_eval_hid(), uacpi_eval_integer(), uacpi_eval_package(), uacpi_eval_simple_buffer(), uacpi_eval_simple_package(), uacpi_eval_simple_string(), uacpi_eval_simple_string_or_buffer(), uacpi_eval_simple_typed(), uacpi_eval_string(), uacpi_eval_string_or_buffer(), uacpi_eval_uid(), and uacpi_get_pci_routing_table().
| uacpi_status uacpi_execute | ( | uacpi_namespace_node * | parent, |
| const uacpi_char * | path, | ||
| const uacpi_object_array * | args | ||
| ) |
Same as uacpi_eval() but without a return value.
| uacpi_status uacpi_execute_simple | ( | uacpi_namespace_node * | parent, |
| const uacpi_char * | path | ||
| ) |
| uacpi_status uacpi_get_aml_bitness | ( | uacpi_u8 * | out_bitness | ) |
Get the bitness of the currently loaded AML code according to the DSDT.
Returns either 32 or 64.
Definition at line 999 of file uacpi.c.
Referenced by uacpi_object_create_integer_safe().
| uacpi_init_level uacpi_get_current_init_level | ( | void | ) |
Definition at line 310 of file uacpi.c.
Referenced by uacpi_initialize_opregion_node().
| uacpi_status uacpi_initialize | ( | uacpi_u64 | flags | ) |
Initializes the uACPI subsystem, iterates & records all relevant RSDT/XSDT tables. Enters ACPI mode.
'flags' is any combination of UACPI_FLAG_* above
Definition at line 315 of file uacpi.c.
Referenced by ACPIInitUACPI().
| uacpi_status uacpi_is_platform_reduced_hardware | ( | uacpi_bool * | out_value | ) |
Returns UACPI_TRUE via 'out_value' if the current platform is reduced ACPI hardware, UACPI_FALSE otherwise.
This getter becomes available along with the table subsystem, use uacpi_table_subsystem_available() to check.
Definition at line 19 of file uacpi.c.
| uacpi_status uacpi_leave_acpi_mode | ( | void | ) |
Definition at line 297 of file uacpi.c.
Referenced by uacpi_state_reset().
Definition at line 36 of file uacpi.c.
Referenced by uacpi_initialize(), and uacpi_setup_early_table_access().
| uacpi_status uacpi_namespace_initialize | ( | void | ) |
Initializes all the necessary objects in the namespaces by calling _STA/_INI etc.
Definition at line 620 of file uacpi.c.
| uacpi_status uacpi_namespace_load | ( | void | ) |
Parses & executes all of the DSDT/SSDT tables. Initializes the event subsystem.
Definition at line 437 of file uacpi.c.
Reset the global uACPI state by freeing all internally allocated data structures & resetting any global variables. After this call, uACPI must be re-initialized from scratch to be used again.
This is called by uACPI automatically if a fatal error occurs during a call to uacpi_initialize/uacpi_namespace_load etc. in order to prevent accidental use of partially uninitialized subsystems.
Definition at line 133 of file uacpi.c.
Referenced by uacpi_initialize(), uacpi_namespace_initialize(), and uacpi_namespace_load().
| const uacpi_char * uacpi_status_to_string | ( | uacpi_status | st | ) |
Definition at line 60 of file uacpi.c.
Referenced by ACPIInitUACPI(), async_restore_gpe(), async_run_gpe_handler(), dispatch_gpe(), do_initialize_gpe_block(), enter_mode(), eval_sleep_helper(), get_slp_type_for_state(), initialize_gpes(), report_table_id_find_error(), trace_named_object_lookup_or_creation_failure(), trace_table_load_failure(), uacpi_eval_dstate_method_template(), uacpi_execute_control_method(), uacpi_get_pci_routing_table(), uacpi_initialize_events(), uacpi_namespace_load(), uacpi_notify_all(), and uacpi_trace_region_error().
|
static |
Definition at line 411 of file uacpi.c.
Referenced by uacpi_namespace_load().
| struct uacpi_runtime_context g_uacpi_rt_ctx = { 0 } |
Definition at line 17 of file uacpi.c.
Referenced by begin_block_execution(), buffer_field_get_read_type(), debug_store_no_recurse(), do_binary_math(), do_notify(), DYNAMIC_ARRAY_WITH_INLINE_STORAGE(), enter_acpi_mode_initial(), enter_sleep_state_hw_full(), enter_sleep_state_hw_reduced(), extract_handlers(), fadt_relative(), find_or_create_gpe_interrupt_ctx(), get_op(), handle_global_lock(), initialize_fadt(), initialize_from_rsdp(), initialize_gpes(), lock_field_unit_transaction(), make_object_for_predefined(), ones(), prepare_for_wake_from_sleep_state_hw_full(), prepare_for_wake_from_sleep_state_hw_reduced(), prepare_method_call(), read_mode(), set_mode(), sizeof_int(), split_event_blocks(), truncate_number_if_needed(), uacpi_acquire_aml_mutex(), uacpi_acquire_global_lock(), uacpi_acquire_global_lock_from_firmware(), uacpi_check_flag(), uacpi_context_get_loop_timeout(), uacpi_context_set_log_level(), uacpi_context_set_loop_timeout(), uacpi_context_set_max_call_stack_depth(), uacpi_context_set_proactive_table_checksum(), uacpi_deinitialize_events(), uacpi_deinitialize_namespace(), uacpi_enter_sleep_state(), uacpi_field_unit_get_read_type(), uacpi_get_aml_bitness(), uacpi_get_current_init_level(), uacpi_initialize(), uacpi_initialize_events(), uacpi_initialize_tables(), uacpi_install_address_space_handler_with_flags(), uacpi_install_notify_handler(), uacpi_is_hardware_reduced(), uacpi_logger_initialize(), uacpi_namespace_initialize(), uacpi_namespace_load(), uacpi_node_get_address_space_handlers(), uacpi_notify_all(), uacpi_prepare_for_sleep_state(), uacpi_reboot(), uacpi_release_aml_mutex(), uacpi_release_global_lock(), uacpi_release_global_lock_to_firmware(), uacpi_set_waking_vector(), uacpi_should_log(), uacpi_state_reset(), uacpi_table_fadt(), uacpi_uninstall_notify_handler(), uninstall_gpe_block(), unlock_field_unit_transaction(), verify_and_install_table(), wake_from_sleep_state_hw_full(), and wake_from_sleep_state_hw_reduced().