Go to the source code of this file.
◆ uacpi_mapped_gas
Definition at line 17 of file io.h.
◆ uacpi_gas_read()
Definition at line 995 of file io.c.
996{
999
1003
1006
1008}
#define uacpi_unlikely_error(expr)
void uacpi_unmap_gas_nofree(uacpi_mapped_gas *gas)
uacpi_status uacpi_map_gas_noalloc(const struct acpi_gas *gas, uacpi_mapped_gas *out_mapped)
uacpi_status uacpi_gas_read_mapped(const uacpi_mapped_gas *gas, uacpi_u64 *out_value)
GLenum GLenum GLenum GLenum mapping
◆ uacpi_gas_read_mapped()
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.
849{
855
858
860
861 if (access_byte_width < 8)
863
864 *out_value = 0;
865
866 while (bits_left) {
870 } else {
874 }
875
879 offset += access_byte_width;
880 }
881
883}
GLint GLenum GLsizei GLsizei GLsizei GLint GLsizei const GLvoid * data
uacpi_u8 access_bit_width
uacpi_status(* read)(uacpi_handle, uacpi_size offset, uacpi_u8 width, uacpi_u64 *out)
Referenced by detect_gpes(), do_read_one(), maybe_dispatch_gpe(), set_gpe_state(), uacpi_gas_read(), and uacpi_gpe_info().
◆ uacpi_gas_write()
Definition at line 1010 of file io.c.
1011{
1014
1018
1021
1023}
uacpi_status uacpi_gas_write_mapped(const uacpi_mapped_gas *gas, uacpi_u64 in_value)
◆ uacpi_gas_write_mapped()
◆ uacpi_map_gas()
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.
Definition at line 963 of file io.c.
966{
969
973
978 }
979
982}
#define uacpi_free(mem, _)
@ UACPI_STATUS_OUT_OF_MEMORY
void * uacpi_kernel_alloc(uacpi_size size)
◆ uacpi_unmap_gas()
Definition at line 989 of file io.c.