PatchworkOS
Loading...
Searching...
No Matches
Namespace Modifier Objects

Namespace Modifier Objects Encoding. More...

Functions

uint64_t aml_def_alias_read (aml_term_list_ctx_t *ctx)
 Reads a DefAlias structure from the AML byte stream.
 
uint64_t aml_def_name_read (aml_term_list_ctx_t *ctx)
 Reads a DefName structure from the AML byte stream.
 
uint64_t aml_def_scope_read (aml_term_list_ctx_t *ctx)
 Reads a DefScope structure from the AML byte stream.
 
uint64_t aml_namespace_modifier_obj_read (aml_term_list_ctx_t *ctx)
 Reads a NameSpaceModifierObj structure from the AML byte stream.
 

Detailed Description

Namespace Modifier Objects Encoding.

See also
Section 20.2.5.1 of the ACPI specification for more details.

Function Documentation

◆ aml_def_alias_read()

uint64_t aml_def_alias_read ( aml_term_list_ctx_t ctx)

Reads a DefAlias structure from the AML byte stream.

A DefAlias structure is defined as DefAlias := AliasOp NameString NameString.

See also
Section 19.6.4 of the ACPI specification for more details.
Parameters
ctxThe context of the TermList that this structure is part of.
Returns
On success, 0. On failure, ERR and errno is set.

Definition at line 18 of file namespace_modifier.c.

References AML_ALIAS_OP, aml_alias_set(), AML_DEBUG_ERROR, aml_name_string_read(), aml_name_string_read_and_resolve(), aml_name_string_to_string(), aml_namespace_add_by_name_string(), aml_object_new(), aml_token_expect(), DEREF_DEFER, ERR, NULL, aml_state_t::overlay, aml_term_list_ctx_t::scope, and aml_term_list_ctx_t::state.

Referenced by aml_namespace_modifier_obj_read().

◆ aml_def_name_read()

uint64_t aml_def_name_read ( aml_term_list_ctx_t ctx)

Reads a DefName structure from the AML byte stream.

A DefName structure is defined as DefName := NameOp NameString DataRefObject.

See also
Section 19.6.90 of the ACPI specification for more details.
Parameters
ctxThe context of the TermList that this structure is part of.
Returns
On success, 0. On failure, ERR and errno is set.

Definition at line 58 of file namespace_modifier.c.

References aml_data_ref_object_read(), AML_DEBUG_ERROR, AML_NAME_OP, aml_name_string_read(), aml_name_string_to_string(), aml_namespace_add_by_name_string(), aml_object_new(), aml_token_expect(), DEREF_DEFER, ERR, NULL, aml_state_t::overlay, aml_term_list_ctx_t::scope, and aml_term_list_ctx_t::state.

Referenced by aml_namespace_modifier_obj_read().

◆ aml_def_scope_read()

uint64_t aml_def_scope_read ( aml_term_list_ctx_t ctx)

Reads a DefScope structure from the AML byte stream.

A DefScope structure is defined as DefScope := ScopeOp PkgLength NameString TermList.

See also
Section 19.6.122 of the ACPI specification for more details.
Parameters
ctxThe context of the TermList that this structure is part of.
Returns
On success, 0. On failure, ERR and errno is set.

Definition at line 90 of file namespace_modifier.c.

References AML_DEBUG_ERROR, AML_DEVICE, aml_name_string_read_and_resolve(), aml_pkg_length_read(), AML_POWER_RESOURCE, AML_PREDEFINED_SCOPE, AML_PROCESSOR, AML_SCOPE_OP, aml_term_list_read(), AML_THERMAL_ZONE, aml_token_expect(), aml_type_to_string(), aml_term_list_ctx_t::current, DEREF_DEFER, EILSEQ, ERR, errno, NULL, start(), and aml_term_list_ctx_t::state.

Referenced by aml_namespace_modifier_obj_read().

◆ aml_namespace_modifier_obj_read()

uint64_t aml_namespace_modifier_obj_read ( aml_term_list_ctx_t ctx)

Reads a NameSpaceModifierObj structure from the AML byte stream.

A NameSpaceModifierObj structure is defined as NameSpaceModifierObj := DefAlias | DefName | DefScope.

Parameters
ctxThe context of the TermList that this structure is part of.
opThe AML op, should have been read by the caller.
Returns
On success, 0. On failure, ERR and errno is set.

Definition at line 136 of file namespace_modifier.c.

References AML_ALIAS_OP, AML_DEBUG_ERROR, aml_def_alias_read(), aml_def_name_read(), aml_def_scope_read(), AML_NAME_OP, AML_SCOPE_OP, aml_token_peek(), EILSEQ, ERR, errno, and aml_token_t::num.

Referenced by aml_object_read().