PatchworkOS  966e257
A non-POSIX operating system.
Loading...
Searching...
No Matches
buffer_field.h
Go to the documentation of this file.
1#pragma once
2
4
5#include <stdint.h>
6
7/**
8 * @brief Buffer Field
9 * @defgroup modules_acpi_aml_buffer_field Buffer Field
10 * @ingroup modules_acpi_aml
11 *
12 * @{
13 */
14
15/**
16 * @brief Read the value stored in a BufferField and store it in the out object.
17 *
18 * A BufferField is a view into a buffer, it has a bit offset and a bit size, and can be used to read or write parts of
19 * the buffer.
20 *
21 * @see @ref modules_acpi_aml_evaluate
22 *
23 * @param bufferField The buffer field to read from.
24 * @param out Pointer to the buffer where the result will be stored, will be an integer or a buffer.
25 * @return On success, `0`. On failure, `ERR` and `errno` is set.
26 */
28
29/**
30 * @brief Write a value to a BufferField.
31 *
32 * A BufferField is a view into a buffer, it has a bit offset and a bit size, and can be used to read or write parts of
33 * the buffer.
34 *
35 * @see @ref modules_acpi_aml_evaluate
36 *
37 * @param bufferField The buffer field to write to.
38 * @param in Pointer to the object containing the value to write, must be an integer or a buffer.
39 * @return On success, `0`. On failure, `ERR` and `errno` is set.
40 */
42
43/** @} */
uint64_t aml_buffer_field_store(aml_buffer_field_t *bufferField, aml_object_t *in)
Write a value to a BufferField.
uint64_t aml_buffer_field_load(aml_buffer_field_t *bufferField, aml_object_t *out)
Read the value stored in a BufferField and store it in the out object.
Definition buffer_field.c:9
__UINT64_TYPE__ uint64_t
Definition stdint.h:17
Data for a buffer field object.
Definition object.h:225
ACPI object.
Definition object.h:447