|
ReactOS 0.4.17-dev-684-ga6524ef
|
#include <uacpi/internal/io.h>#include <uacpi/internal/stdlib.h>#include <uacpi/internal/log.h>#include <uacpi/internal/opregion.h>#include <uacpi/internal/utilities.h>#include <uacpi/internal/mutex.h>#include <uacpi/internal/namespace.h>
Go to the source code of this file.
Classes | |
| struct | bit_span |
| union | integer_data |
Macros | |
| #define | SERIAL_HEADER_SIZE 2 |
| #define | IPMI_DATA_SIZE 64 |
|
static |
Definition at line 246 of file io.c.
Referenced by do_read_misaligned_field_unit(), handle_special_field(), uacpi_read_field_unit(), and write_generic_field_unit().
Definition at line 48 of file io.c.
Referenced by do_misaligned_buffer_read(), do_read_misaligned_field_unit(), do_write_misaligned_buffer_field(), and write_generic_field_unit().
|
static |
Definition at line 38 of file io.c.
Referenced by do_read_misaligned_field_unit(), and write_generic_field_unit().
|
static |
Definition at line 16 of file io.c.
Referenced by uacpi_read_buffer_field(), and uacpi_read_field_unit().
|
static |
Definition at line 97 of file io.c.
Referenced by uacpi_read_buffer_field().
|
static |
Definition at line 476 of file io.c.
Referenced by uacpi_read_field_unit().
|
static |
Definition at line 130 of file io.c.
Referenced by uacpi_write_buffer_field().
|
static |
Definition at line 238 of file io.c.
Referenced by access_field_unit().
|
static |
Definition at line 178 of file io.c.
Referenced by field_unit_needs_global_lock(), lock_field_unit_transaction(), and unlock_field_unit_transaction().
Definition at line 750 of file io.c.
Referenced by gas_validate().
|
static |
Definition at line 796 of file io.c.
Referenced by uacpi_map_gas_noalloc().
|
static |
Definition at line 378 of file io.c.
Referenced by uacpi_read_field_unit(), and uacpi_write_field_unit().
|
static |
Definition at line 211 of file io.c.
Referenced by uacpi_read_field_unit(), and uacpi_write_field_unit().
| uacpi_status uacpi_field_unit_get_bit_length | ( | struct uacpi_field_unit * | field, |
| uacpi_size * | out_length | ||
| ) |
Definition at line 721 of file io.c.
Referenced by field_byte_size().
| uacpi_status uacpi_field_unit_get_read_type | ( | struct uacpi_field_unit * | field, |
| uacpi_object_type * | out_type | ||
| ) |
Definition at line 692 of file io.c.
Referenced by field_get_read_type().
| uacpi_status uacpi_gas_read | ( | const struct acpi_gas * | gas, |
| uacpi_u64 * | out_value | ||
| ) |
| uacpi_status uacpi_gas_read_mapped | ( | const uacpi_mapped_gas * | gas, |
| uacpi_u64 * | value | ||
| ) |
Same as uacpi_gas_{read,write} but operates on a pre-mapped handle for faster access and/or ability to use in critical sections/irq contexts.
Definition at line 846 of file io.c.
Referenced by detect_gpes(), do_read_one(), maybe_dispatch_gpe(), set_gpe_state(), uacpi_gas_read(), and uacpi_gpe_info().
| uacpi_status uacpi_gas_write | ( | const struct acpi_gas * | gas, |
| uacpi_u64 | in_value | ||
| ) |
| uacpi_status uacpi_gas_write_mapped | ( | const uacpi_mapped_gas * | gas, |
| uacpi_u64 | in_value | ||
| ) |
Definition at line 885 of file io.c.
Referenced by clear_gpe(), create_gpe_block(), do_write_one(), gpe_block_apply_action(), gpe_block_mask_safe(), set_gpe_state(), and uacpi_gas_write().
| uacpi_status uacpi_map_gas | ( | const struct acpi_gas * | gas, |
| uacpi_mapped_gas ** | out_mapped | ||
| ) |
Map a GAS for faster access in the future. The handle returned via 'out_mapped' must be freed & unmapped using uacpi_unmap_gas() when no longer needed.
| uacpi_status uacpi_map_gas_noalloc | ( | const struct acpi_gas * | gas, |
| uacpi_mapped_gas * | out_mapped | ||
| ) |
Definition at line 927 of file io.c.
Referenced by create_gpe_block(), map_one(), uacpi_gas_read(), uacpi_gas_write(), and uacpi_map_gas().
| uacpi_status uacpi_pci_read | ( | uacpi_handle | handle, |
| uacpi_size | offset, | ||
| uacpi_u8 | width, | ||
| uacpi_u64 * | out | ||
| ) |
Definition at line 1185 of file io.c.
Referenced by pci_region_do_rw().
| uacpi_status uacpi_pci_write | ( | uacpi_handle | handle, |
| uacpi_size | offset, | ||
| uacpi_u8 | width, | ||
| uacpi_u64 | in | ||
| ) |
Definition at line 1217 of file io.c.
Referenced by pci_region_do_rw().
| void uacpi_read_buffer_field | ( | const uacpi_buffer_field * | field, |
| void * | dst | ||
| ) |
Definition at line 113 of file io.c.
Referenced by handle_field_read(), and handle_inc_dec().
| uacpi_status uacpi_read_field_unit | ( | uacpi_field_unit * | field, |
| void * | dst, | ||
| uacpi_size | size, | ||
| uacpi_data_view * | wtr_response | ||
| ) |
Definition at line 530 of file io.c.
Referenced by access_field_unit(), handle_field_read(), and handle_inc_dec().
| uacpi_size uacpi_round_up_bits_to_bytes | ( | uacpi_size | bit_length | ) |
Definition at line 11 of file io.c.
Referenced by do_misaligned_buffer_read(), field_byte_size(), uacpi_read_buffer_field(), uacpi_read_field_unit(), and uacpi_write_buffer_field().
| uacpi_status uacpi_system_io_read | ( | uacpi_handle | handle, |
| uacpi_size | offset, | ||
| uacpi_u8 | width, | ||
| uacpi_u64 * | out | ||
| ) |
Definition at line 1126 of file io.c.
Referenced by io_region_do_rw(), and uacpi_map_gas_noalloc().
| uacpi_status uacpi_system_io_write | ( | uacpi_handle | handle, |
| uacpi_size | offset, | ||
| uacpi_u8 | width, | ||
| uacpi_u64 | in | ||
| ) |
Definition at line 1158 of file io.c.
Referenced by io_region_do_rw(), and uacpi_map_gas_noalloc().
| uacpi_status uacpi_system_memory_read | ( | void * | ptr, |
| uacpi_size | offset, | ||
| uacpi_u8 | width, | ||
| uacpi_u64 * | out | ||
| ) |
Definition at line 1067 of file io.c.
Referenced by memory_region_do_rw(), table_data_region_do_rw(), and uacpi_map_gas_noalloc().
| uacpi_status uacpi_system_memory_write | ( | void * | ptr, |
| uacpi_size | offset, | ||
| uacpi_u8 | width, | ||
| uacpi_u64 | in | ||
| ) |
Definition at line 1093 of file io.c.
Referenced by memory_region_do_rw(), table_data_region_do_rw(), and uacpi_map_gas_noalloc().
| void uacpi_unmap_gas | ( | uacpi_mapped_gas * | gas | ) |
| void uacpi_unmap_gas_nofree | ( | uacpi_mapped_gas * | gas | ) |
Definition at line 984 of file io.c.
Referenced by uacpi_deinitialize_registers(), uacpi_gas_read(), uacpi_gas_write(), uacpi_unmap_gas(), and uninstall_gpe_block().
| void uacpi_write_buffer_field | ( | uacpi_buffer_field * | field, |
| const void * | src, | ||
| uacpi_size | size | ||
| ) |
Definition at line 148 of file io.c.
Referenced by object_assign_with_implicit_cast().
| uacpi_status uacpi_write_field_unit | ( | uacpi_field_unit * | field, |
| const void * | src, | ||
| uacpi_size | size, | ||
| uacpi_data_view * | wtr_response | ||
| ) |
Definition at line 662 of file io.c.
Referenced by access_field_unit(), and object_assign_with_implicit_cast().
|
static |
Definition at line 230 of file io.c.
Referenced by uacpi_read_field_unit(), and uacpi_write_field_unit().
|
static |
Definition at line 921 of file io.c.
Referenced by uacpi_map_gas_noalloc().
|
static |
Definition at line 591 of file io.c.
Referenced by uacpi_write_field_unit().
|
static |
Definition at line 317 of file io.c.
Referenced by handle_special_field().