|
ReactOS 0.4.17-dev-1190-g4c812f4
|
#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 |
Macros | |
| #define | PCC_COMMAND_OFFSET 8 |
| #define | PCC_COMMAND_SIZE 4 |
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 |
| #define PCC_COMMAND_OFFSET 8 |
Definition at line 1140 of file opregion.c.
| #define PCC_COMMAND_SIZE 4 |
Definition at line 1141 of file opregion.c.
| Enumerator | |
|---|---|
| OPREGION_ITER_ACTION_UNINSTALL | |
| OPREGION_ITER_ACTION_INSTALL | |
Definition at line 509 of file opregion.c.
| Enumerator | |
|---|---|
| UNREG_NO | |
| UNREG_YES | |
Definition at line 367 of file opregion.c.
|
static |
Definition at line 527 of file opregion.c.
Referenced by uacpi_install_address_space_handler_with_flags(), and uacpi_uninstall_address_space_handler().
|
static |
Definition at line 710 of file opregion.c.
Referenced by run_orphan_ec_regs().
|
static |
Definition at line 616 of file opregion.c.
Referenced by reg_all_opregions().
|
static |
Definition at line 827 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 202 of file opregion.c.
Referenced by do_install_or_uninstall_handler(), handler_is_installed(), node_has_handler(), reg_all_opregions(), uacpi_initialize_opregion_node(), uacpi_install_address_space_handler_with_flags(), and uacpi_uninstall_address_space_handler().
|
static |
Definition at line 219 of file opregion.c.
Referenced by region_uninstall_handler().
|
static |
Definition at line 522 of file opregion.c.
Referenced by do_install_or_uninstall_handler(), and uacpi_install_address_space_handler_with_flags().
|
static |
|
static |
Definition at line 1143 of file opregion.c.
Referenced by uacpi_dispatch_opregion_io().
|
static |
Definition at line 780 of file opregion.c.
Referenced by uacpi_install_address_space_handler_with_flags(), and uacpi_reg_all_opregions().
|
static |
Definition at line 356 of file opregion.c.
Referenced by do_install_or_uninstall_handler(), and uacpi_initialize_opregion_node().
|
static |
Definition at line 372 of file opregion.c.
Referenced by do_install_or_uninstall_handler(), and uacpi_opregion_uninstall_handler().
|
static |
Definition at line 762 of file opregion.c.
Referenced by reg_all_opregions().
|
static |
Definition at line 671 of file opregion.c.
Referenced by do_run_orphan_ec_reg(), and reg_all_opregions().
|
static |
Definition at line 123 of file opregion.c.
Referenced by do_run_reg(), region_uninstall_handler(), run_orphan_reg(), and uacpi_initialize_opregion_node().
|
static |
Definition at line 1125 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(), and uacpi_reg_all_opregions().
|
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 502 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 1162 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 1065 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 977 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 882 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 1111 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 179 of file opregion.c.
Referenced by do_install_or_uninstall_handler(), node_has_handler(), reg_all_opregions(), uacpi_initialize_opregion_node(), and uacpi_namespace_initialize().
| uacpi_status uacpi_opregion_attach | ( | uacpi_namespace_node * | node | ) |
Definition at line 240 of file opregion.c.
Referenced by uacpi_dispatch_opregion_io().
| void uacpi_opregion_uninstall_handler | ( | uacpi_namespace_node * | node | ) |
Definition at line 492 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 847 of file opregion.c.
Referenced by uacpi_namespace_initialize().
Definition at line 487 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_uninstall_handler(), and uacpi_dispatch_opregion_io().
| uacpi_status uacpi_uninstall_address_space_handler | ( | uacpi_namespace_node * | device_node, |
| enum uacpi_address_space | space, | ||
| uacpi_region_handler | handler | ||
| ) |
Uninstall a handler of type 'space' previously installed to a device node.
'handler' must be the handler that is currently installed there, otherwise nothing is uninstalled, and UACPI_STATUS_INVALID_ARGUMENT is returned. This makes sure that a handler that was installed by somebody else in the meantime is not uninstalled by mistake.
Definition at line 987 of file opregion.c.
| uacpi_status uacpi_upgrade_to_opregion_lock | ( | void | ) |
Definition at line 472 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().