PatchworkOS
Loading...
Searching...
No Matches
convert.h File Reference
#include <kernel/acpi/aml/object.h>
#include <stdint.h>

Go to the source code of this file.

Functions

uint64_t aml_convert (aml_state_t *state, aml_object_t *src, aml_object_t *dest, aml_type_t allowedTypes)
 Converts the data in the source object to a allowed type and stores it in the destination object.
 
uint64_t aml_convert_result (aml_state_t *state, aml_object_t *result, aml_object_t *target)
 Performs a "Implicit Result Object Conversion" acording to the rules in section 19.3.5.5 of the ACPI specification.
 
uint64_t aml_convert_source (aml_state_t *state, aml_object_t *src, aml_object_t **dest, aml_type_t allowedTypes)
 Performs a "Implicit Source Operand Conversion" acording to the rules in section 19.3.5.4 of the ACPI specification.
 
uint64_t aml_convert_to_buffer (aml_state_t *state, aml_object_t *src, aml_object_t **dest)
 Converts a Integer, String or Buffer source object to a Buffer destination object.
 
uint64_t aml_convert_to_decimal_string (aml_state_t *state, aml_object_t *src, aml_object_t **dest)
 Converts a Integer, String or Buffer source object to a String destination object in decimal format.
 
uint64_t aml_convert_to_hex_string (aml_state_t *state, aml_object_t *src, aml_object_t **dest)
 Converts a Integer, String or Buffer source object to a String destination object in hexadecimal format.
 
uint64_t aml_convert_to_integer (aml_state_t *state, aml_object_t *src, aml_object_t **dest)
 Converts a Integer, String or Buffer source object to an Integer destination object.
 
uint64_t aml_convert_integer_to_bcd (aml_integer_t value, aml_integer_t *out)
 Converts an integer to its Binary-Coded Decimal (BCD) representation.