|
ReactOS 0.4.17-dev-1190-g4c812f4
|
#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 274 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 504 of file io.c.
Referenced by uacpi_read_field_unit().
|
static |
Definition at line 134 of file io.c.
Referenced by uacpi_write_buffer_field().
|
static |
Definition at line 266 of file io.c.
Referenced by access_field_unit().
|
static |
Definition at line 186 of file io.c.
Referenced by field_unit_needs_global_lock(), lock_field_unit_transaction(), and unlock_field_unit_transaction().
Definition at line 815 of file io.c.
Referenced by gas_validate().
|
static |
Definition at line 861 of file io.c.
Referenced by uacpi_map_gas_noalloc().
|
static |
Definition at line 406 of file io.c.
Referenced by uacpi_read_field_unit(), and write_field_unit().
|
static |
Definition at line 219 of file io.c.
Referenced by uacpi_read_field_unit(), and write_field_unit().
| uacpi_status uacpi_field_unit_get_bit_length | ( | struct uacpi_field_unit * | field, |
| uacpi_size * | out_length | ||
| ) |
Definition at line 786 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 757 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 911 of file io.c.
Referenced by detect_gpes(), do_read_one(), gpe_try_claim(), maybe_dispatch_gpe(), set_gpe_state_unlocked(), 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 950 of file io.c.
Referenced by clear_gpe(), create_gpe_block(), do_write_one(), gpe_block_apply_action(), gpe_try_claim(), set_gpe_state_unlocked(), uacpi_gas_write(), and uninstall_gpe_block().
| 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 992 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 1250 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 1282 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 558 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(), object_assign_with_implicit_cast(), uacpi_read_buffer_field(), uacpi_read_field_unit(), uacpi_write_buffer_field(), and uacpi_write_field_unit_in_chunks().
| uacpi_status uacpi_system_io_read | ( | uacpi_handle | handle, |
| uacpi_size | offset, | ||
| uacpi_u8 | width, | ||
| uacpi_u64 * | out | ||
| ) |
Definition at line 1191 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 1223 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 1132 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 1158 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 1049 of file io.c.
Referenced by free_gpe_block(), uacpi_deinitialize_registers(), uacpi_gas_read(), uacpi_gas_write(), and uacpi_unmap_gas().
| void uacpi_write_buffer_field | ( | uacpi_buffer_field * | field, |
| const void * | src, | ||
| uacpi_size | size | ||
| ) |
Definition at line 152 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 738 of file io.c.
Referenced by access_field_unit(), and store_to_field_unit().
| uacpi_status uacpi_write_field_unit_in_chunks | ( | uacpi_field_unit * | field, |
| const void * | src, | ||
| uacpi_size | size, | ||
| uacpi_data_view * | wtr_response | ||
| ) |
Definition at line 746 of file io.c.
Referenced by store_to_field_unit().
|
static |
Definition at line 256 of file io.c.
Referenced by uacpi_read_field_unit(), and write_field_unit().
|
static |
Definition at line 986 of file io.c.
Referenced by uacpi_map_gas_noalloc().
|
static |
Definition at line 696 of file io.c.
Referenced by uacpi_write_field_unit(), and uacpi_write_field_unit_in_chunks().
|
static |
Definition at line 625 of file io.c.
Referenced by write_field_unit().
|
static |
Definition at line 345 of file io.c.
Referenced by handle_special_field().