|
ReactOS 0.4.17-dev-683-g0dafdc5
|
#include <uacpi/kernel_api.h>#include <uacpi/internal/opregion.h>#include <uacpi/internal/namespace.h>#include <uacpi/internal/stdlib.h>#include <uacpi/internal/log.h>#include <uacpi/internal/utilities.h>#include <uacpi/internal/mutex.h>#include <uacpi/internal/interpreter.h>
Go to the source code of this file.
Classes | |
| struct | opregion_iter_ctx |
| struct | reg_run_ctx |
Enumerations | |
| enum | unreg { UNREG_NO = 0 , UNREG_YES } |
| enum | opregion_iter_action { OPREGION_ITER_ACTION_UNINSTALL , OPREGION_ITER_ACTION_INSTALL } |
Variables | |
| struct uacpi_recursive_lock | g_opregion_lock |
| Enumerator | |
|---|---|
| OPREGION_ITER_ACTION_UNINSTALL | |
| OPREGION_ITER_ACTION_INSTALL | |
Definition at line 420 of file opregion.c.
| Enumerator | |
|---|---|
| UNREG_NO | |
| UNREG_YES | |
Definition at line 311 of file opregion.c.
|
static |
Definition at line 430 of file opregion.c.
Referenced by uacpi_install_address_space_handler_with_flags(), and uacpi_uninstall_address_space_handler().
|
static |
Definition at line 485 of file opregion.c.
Referenced by reg_or_unreg_all_opregions().
|
static |
Definition at line 570 of file opregion.c.
Referenced by uacpi_install_address_space_handler_with_flags(), uacpi_reg_all_opregions(), and uacpi_uninstall_address_space_handler().
|
static |
Definition at line 193 of file opregion.c.
Referenced by do_install_or_uninstall_handler(), reg_or_unreg_all_opregions(), uacpi_initialize_opregion_node(), uacpi_install_address_space_handler_with_flags(), and uacpi_uninstall_address_space_handler().
|
static |
Definition at line 210 of file opregion.c.
Referenced by region_uninstall_handler().
|
static |
Definition at line 525 of file opregion.c.
Referenced by uacpi_install_address_space_handler_with_flags(), uacpi_reg_all_opregions(), and uacpi_uninstall_address_space_handler().
|
static |
Definition at line 297 of file opregion.c.
Referenced by do_install_or_uninstall_handler(), and uacpi_initialize_opregion_node().
|
static |
Definition at line 122 of file opregion.c.
Referenced by do_run_reg(), region_uninstall_handler(), and uacpi_initialize_opregion_node().
|
static |
Definition at line 316 of file opregion.c.
Referenced by do_install_or_uninstall_handler(), and uacpi_opregion_uninstall_handler().
|
static |
Definition at line 847 of file opregion.c.
Referenced by uacpi_dispatch_opregion_io().
|
static |
Definition at line 112 of file opregion.c.
Referenced by uacpi_initialize_opregion_node(), uacpi_install_address_space_handler_with_flags(), uacpi_reg_all_opregions(), and uacpi_uninstall_address_space_handler().
|
static |
Definition at line 47 of file opregion.c.
Referenced by uacpi_dispatch_opregion_io().
| uacpi_bool uacpi_address_space_handler_is_default | ( | uacpi_address_space_handler * | handler | ) |
Definition at line 413 of file opregion.c.
Referenced by uacpi_namespace_initialize().
Definition at line 20 of file opregion.c.
Referenced by uacpi_state_reset().
| uacpi_status uacpi_dispatch_opregion_io | ( | uacpi_field_unit * | field, |
| uacpi_u32 | offset, | ||
| uacpi_region_op | op, | ||
| union uacpi_opregion_io_data | data | ||
| ) |
Definition at line 853 of file opregion.c.
Referenced by access_field_unit().
| uacpi_status uacpi_initialize_opregion | ( | void | ) |
Definition at line 15 of file opregion.c.
Referenced by uacpi_initialize().
| uacpi_status uacpi_initialize_opregion_node | ( | uacpi_namespace_node * | node | ) |
Definition at line 788 of file opregion.c.
Referenced by handle_create_data_region(), and handle_create_op_region().
| uacpi_status uacpi_install_address_space_handler | ( | uacpi_namespace_node * | device_node, |
| enum uacpi_address_space | space, | ||
| uacpi_region_handler | handler, | ||
| uacpi_handle | handler_context | ||
| ) |
Install an address space handler to a device node. The handler is recursively connected to all of the operation regions of type 'space' underneath 'device_node'. Note that this recursion stops as soon as another device node that already has an address space handler of this type installed is encountered.
Definition at line 706 of file opregion.c.
| uacpi_status uacpi_install_address_space_handler_with_flags | ( | uacpi_namespace_node * | device_node, |
| enum uacpi_address_space | space, | ||
| uacpi_region_handler | handler, | ||
| uacpi_handle | handler_context, | ||
| uacpi_u16 | flags | ||
| ) |
Definition at line 625 of file opregion.c.
Referenced by uacpi_install_address_space_handler(), and uacpi_install_default_address_space_handlers().
| uacpi_bool uacpi_is_buffer_access_address_space | ( | uacpi_address_space | space | ) |
Definition at line 833 of file opregion.c.
Referenced by space_needs_bounds_checking(), uacpi_field_unit_get_bit_length(), and uacpi_field_unit_get_read_type().
| uacpi_address_space_handlers * uacpi_node_get_address_space_handlers | ( | uacpi_namespace_node * | node | ) |
Definition at line 170 of file opregion.c.
Referenced by do_install_or_uninstall_handler(), reg_or_unreg_all_opregions(), uacpi_initialize_opregion_node(), and uacpi_namespace_initialize().
| uacpi_status uacpi_opregion_attach | ( | uacpi_namespace_node * | node | ) |
Definition at line 231 of file opregion.c.
Referenced by uacpi_dispatch_opregion_io().
| void uacpi_opregion_uninstall_handler | ( | uacpi_namespace_node * | node | ) |
Definition at line 403 of file opregion.c.
Referenced by namespace_node_detach_object(), and opregion_try_detach_from_parent().
| uacpi_status uacpi_reg_all_opregions | ( | uacpi_namespace_node * | device_node, |
| enum uacpi_address_space | space | ||
| ) |
Execute _REG(space, ACPI_REG_CONNECT) for all of the opregions with this address space underneath this device. This should only be called manually if you want to register an early handler that must be available before the call to uacpi_namespace_initialize().
Definition at line 590 of file opregion.c.
Referenced by uacpi_namespace_initialize().
Definition at line 398 of file opregion.c.
Referenced by unlock_field_unit_transaction().
| void uacpi_trace_region_error | ( | uacpi_namespace_node * | node, |
| uacpi_char * | message, | ||
| uacpi_status | ret | ||
| ) |
Definition at line 25 of file opregion.c.
Referenced by do_install_or_uninstall_handler(), find_pci_root(), handle_special_field(), io_region_attach(), memory_region_attach(), pci_region_attach(), region_run_reg(), region_uninstall_handler(), and uacpi_dispatch_opregion_io().
| uacpi_status uacpi_uninstall_address_space_handler | ( | uacpi_namespace_node * | device_node, |
| enum uacpi_address_space | space | ||
| ) |
Uninstall the handler of type 'space' from a given device node.
Definition at line 716 of file opregion.c.
| uacpi_status uacpi_upgrade_to_opregion_lock | ( | void | ) |
Definition at line 383 of file opregion.c.
Referenced by lock_field_unit_transaction(), uacpi_initialize_opregion_node(), and uacpi_opregion_uninstall_handler().
| struct uacpi_recursive_lock g_opregion_lock |
Definition at line 13 of file opregion.c.
Referenced by uacpi_deinitialize_opregion(), uacpi_initialize_opregion(), uacpi_initialize_opregion_node(), uacpi_install_address_space_handler_with_flags(), uacpi_opregion_uninstall_handler(), uacpi_reg_all_opregions(), uacpi_release_opregion_lock(), uacpi_uninstall_address_space_handler(), and uacpi_upgrade_to_opregion_lock().