PatchworkOS  a7b3d61
A non-POSIX operating system.
Loading...
Searching...
No Matches
Args

Arg Objecs Encoding. More...

Collaboration diagram for Args:

Detailed Description

Arg Objecs Encoding.

See also
Section 20.2.6.1 of the ACPI specification.

Macros

#define AML_MAX_ARGS   7
 Maximum number of arguments that can be passed to a method.
 

Functions

aml_object_taml_arg_obj_read (aml_term_list_ctx_t *ctx)
 Reads a ArgObj structure from the AML byte stream.
 

Macro Definition Documentation

◆ AML_MAX_ARGS

#define AML_MAX_ARGS   7

Maximum number of arguments that can be passed to a method.

Definition at line 19 of file arg.h.

Function Documentation

◆ aml_arg_obj_read()

aml_object_t * aml_arg_obj_read ( aml_term_list_ctx_t ctx)

Reads a ArgObj structure from the AML byte stream.

A ArgObj is defined as ArgObj := Arg0Op | Arg1Op | Arg2Op | Arg3Op | Arg4Op | Arg5Op | Arg6Op where

  • Arg0Op := 0x68,
  • Arg1Op := 0x69,
  • Arg2Op := 0x6A,
  • Arg3Op := 0x6B,
  • Arg4Op := 0x6C,
  • Arg5Op := 0x6D and
  • Arg6Op := 0x6E.

Note that if an ArgObj is storing a ObjectRefernce it will be Automatically dereferenced, so in such a situation out will point to the actual object and not an ObjectReference in the ArgObj.

See also
Section 19.3.5.8.1 of the ACPI specification for more details.
Parameters
statePointer to the AML state.
Returns
On success, the ArbObj. On failure, NULL and errno is set.

Definition at line 8 of file arg.c.

Here is the call graph for this function:
Here is the caller graph for this function: