PatchworkOS  966e257
A non-POSIX operating system.
Loading...
Searching...
No Matches
to_string.h
Go to the documentation of this file.
1#pragma once
2
5
6/**
7 * @brief String Conversion
8 * @defgroup modules_acpi_aml_string_conversion String Conversion
9 * @ingroup modules_acpi_aml
10 *
11 * @{
12 */
13
14/**
15 * @brief Convert an aml data type to a string.
16 *
17 * @param type ACPI AML data type.
18 * @return String representation of the ACPI data type or "Unknown" if it is invalid.
19 */
20const char* aml_type_to_string(aml_type_t type);
21
22/**
23 * @brief Convert an aml RegionSpace to a string.
24 *
25 * @param space ACPI AML RegionSpace.
26 * @return String representation of the RegionSpace or "Unknown" if it is invalid.
27 */
29
30/**
31 * @brief Convert an aml AccessType to a string.
32 *
33 * @param accessType ACPI AML AccessType.
34 * @return String representation of the AccessType or "Unknown" if it is invalid.
35 */
36const char* aml_access_type_to_string(aml_access_type_t accessType);
37
38/**
39 * @brief Convert an aml LockRule to a string.
40 *
41 * @param lockRule ACPI AML LockRule.
42 * @return String representation of the LockRule or "Unknown" if it is invalid.
43 */
44const char* aml_lock_rule_to_string(aml_lock_rule_t lockRule);
45
46/**
47 * @brief Convert an aml UpdateRule to a string.
48 *
49 * @param updateRule ACPI AML UpdateRule.
50 * @return String representation of the UpdateRule or "Unknown" if it is invalid.
51 */
52const char* aml_update_rule_to_string(aml_update_rule_t updateRule);
53
54/**
55 * @brief Convert an aml object to a string.
56 *
57 * @param object ACPI AML object.
58 * @return String representation of the object or "Unknown" if it is invalid.
59 */
60const char* aml_object_to_string(aml_object_t* object);
61
62/**
63 * @brief Convert an aml NameString to a string.
64 *
65 * @param nameString ACPI AML NameString.
66 * @return String representation of the NameString or "Unknown" if it is invalid.
67 */
68const char* aml_name_string_to_string(const aml_name_string_t* nameString);
69
70/** @} */
aml_access_type_t
Enum for all field access types, bits 0-3 of FieldFlags.
Definition named.h:51
aml_lock_rule_t
Enum for all field lock rules, bit 4 of FieldFlags.
Definition named.h:65
aml_update_rule_t
Enum for all field update rules, bits 5-6 of FieldFlags.
Definition named.h:75
aml_region_space_t
Region Space Encoding.
Definition named.h:30
aml_type_t
ACPI data types.
Definition object.h:59
const char * aml_update_rule_to_string(aml_update_rule_t updateRule)
Convert an aml UpdateRule to a string.
Definition to_string.c:129
const char * aml_access_type_to_string(aml_access_type_t accessType)
Convert an aml AccessType to a string.
Definition to_string.c:95
const char * aml_name_string_to_string(const aml_name_string_t *nameString)
Convert an aml NameString to a string.
Definition to_string.c:254
const char * aml_type_to_string(aml_type_t type)
Convert an aml data type to a string.
Definition to_string.c:5
const char * aml_region_space_to_string(aml_region_space_t space)
Convert an aml RegionSpace to a string.
Definition to_string.c:60
const char * aml_object_to_string(aml_object_t *object)
Convert an aml object to a string.
Definition to_string.c:144
const char * aml_lock_rule_to_string(aml_lock_rule_t lockRule)
Convert an aml LockRule to a string.
Definition to_string.c:116
A NameString structure.
Definition name.h:87
ACPI object.
Definition object.h:447