10 return "Uninitialized";
30 return "ObjectReference";
32 return "OperationRegion";
36 return "PowerResource";
40 return "RawDataBuffer";
50 return "PredefinedScope";
65 return "SystemMemory";
71 return "EmbeddedControl";
77 return "PCIBarTarget";
81 return "GeneralPurposeIO";
83 return "GenericSerialBus";
136 return "WriteAsOnes";
138 return "WriteAsZeros";
153 switch (object->type)
160 for (
uint64_t i = 0; i <
object->buffer.length && i < 8; i++)
#define NULL
Pointer error value.
aml_access_type_t
Enum for all field access types, bits 0-3 of FieldFlags.
aml_lock_rule_t
Enum for all field lock rules, bit 4 of FieldFlags.
aml_update_rule_t
Enum for all field update rules, bits 5-6 of FieldFlags.
aml_region_space_t
Region Space Encoding.
@ AML_UPDATE_RULE_PRESERVE
@ AML_UPDATE_RULE_WRITE_AS_ZEROS
@ AML_UPDATE_RULE_WRITE_AS_ONES
@ AML_REGION_GENERIC_SERIAL_BUS
@ AML_REGION_PCI_BAR_TARGET
@ AML_REGION_GENERAL_PURPOSE_IO
@ AML_REGION_EMBEDDED_CONTROL
@ AML_REGION_SYSTEM_MEMORY
#define AML_NAME_TO_STRING(name)
Macro to convert an aml_name_t to a stack allocated string.
aml_type_t
ACPI data types.
@ AML_UNRESOLVED
Not in the spec, used internally to represent unresolved references.
@ AML_ALIAS
Not in the spec, used internally to represent Aliases.
@ AML_ARG
Not in the spec, used internally to represent method arguments.
@ AML_LOCAL
Not in the spec, used internally to represent method local variables.
@ AML_PREDEFINED_SCOPE
Not in the spec, used internally to represent _SB, _GPE, etc.
const char * aml_update_rule_to_string(aml_update_rule_t updateRule)
Convert an aml UpdateRule to a string.
const char * aml_access_type_to_string(aml_access_type_t accessType)
Convert an aml AccessType to a string.
const char * aml_name_string_to_string(const aml_name_string_t *nameString)
Convert an aml NameString to a string.
const char * aml_type_to_string(aml_type_t type)
Convert an aml data type to a string.
const char * aml_region_space_to_string(aml_region_space_t space)
Convert an aml RegionSpace to a string.
const char * aml_object_to_string(aml_object_t *object)
Convert an aml object to a string.
const char * aml_lock_rule_to_string(aml_lock_rule_t lockRule)
Convert an aml LockRule to a string.
EFI_PHYSICAL_ADDRESS buffer
_PUBLIC int snprintf(char *_RESTRICT s, size_t n, const char *_RESTRICT format,...)
_PUBLIC size_t strlen(const char *s)
_PUBLIC void * memset(void *s, int c, size_t n)
aml_bit_size_t bitSize
Used for Field, IndexField and BankField.
aml_bit_size_t bitOffset
Used for Field, IndexField and BankField.
uint8_t argCount
Amount of arguments (0-7)
aml_method_flags_t methodFlags
aml_sync_level_t syncLevel
aml_name_seg_t * segments
Array of segments in the name path.
uint64_t segmentCount
Number of segments in the name path.
aml_prefix_path_t prefixPath
aml_field_unit_t fieldUnit
aml_processor_t processor
aml_power_resource_t powerResource
aml_object_reference_t objectReference
aml_buffer_field_t bufferField
aml_resource_order_t resourceOrder
aml_system_level_t systemLevel
bool present
If the first character is a root character ('\'), if yes, the name string is absolute.