PatchworkOS
966e257
A non-POSIX operating system.
Theme:
Default
Round
Robot
Loading...
Searching...
No Matches
buffer_field.h
Go to the documentation of this file.
1
#pragma once
2
3
#include <
modules/acpi/aml/object.h
>
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
*/
27
uint64_t
aml_buffer_field_load
(
aml_buffer_field_t
* bufferField,
aml_object_t
* out);
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
*/
41
uint64_t
aml_buffer_field_store
(
aml_buffer_field_t
* bufferField,
aml_object_t
* in);
42
43
/** @} */
aml_buffer_field_store
uint64_t aml_buffer_field_store(aml_buffer_field_t *bufferField, aml_object_t *in)
Write a value to a BufferField.
Definition
buffer_field.c:62
aml_buffer_field_load
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
object.h
stdint.h
uint64_t
__UINT64_TYPE__ uint64_t
Definition
stdint.h:17
aml_buffer_field_t
Data for a buffer field object.
Definition
object.h:225
aml_object_t
ACPI object.
Definition
object.h:447
include
modules
acpi
aml
runtime
buffer_field.h
Generated on Mon Dec 15 2025 21:55:53 for PatchworkOS by
1.9.8