7#define AML_BUFFER_FIELD_TEMP_SIZE 256
11 if (bufferField ==
NULL || out ==
NULL)
37 if (remainingBits == 0)
64 if (bufferField ==
NULL || in ==
NULL)
81 if (remainingBits == 0)
#define AML_BUFFER_FIELD_TEMP_SIZE
uint64_t aml_buffer_field_load(aml_buffer_field_obj_t *bufferField, aml_object_t *out)
Read the value stored in a BufferField and store it in the out object.
uint64_t aml_buffer_field_store(aml_buffer_field_obj_t *bufferField, aml_object_t *in)
Write a value to a BufferField.
uint8_t aml_integer_byte_size(void) PURE_FUNC
Get the byte size of an AML integer.
aml_type_t
ACPI data types.
uint64_t aml_integer_set(aml_object_t *object, aml_integer_t value)
Set a object as an integer with the given value and bit width.
uint64_t aml_object_set_bits_at(aml_object_t *object, aml_bit_size_t bitOffset, aml_bit_size_t bitSize, uint8_t *in)
Store bits into a object at the specified bit offset and size.
uint64_t aml_buffer_set_empty(aml_object_t *object, uint64_t length)
Set a object as an empty buffer with the given length.
void aml_object_clear(aml_object_t *object)
Clear the data of a object, setting its type to AML_UNINITIALIZED.
uint64_t aml_object_get_bits_at(aml_object_t *object, aml_bit_size_t bitOffset, aml_bit_size_t bitSize, uint8_t *out)
Retrieve bits from a object at the specified bit offset and size.
#define EINVAL
Invalid argument.
#define errno
Error number variable.
#define NULL
Pointer error value.
#define ERR
Integer error value.
Data for a buffer field object.