PatchworkOS  2ca1c69
A non-POSIX operating system.
Loading...
Searching...
No Matches
Predefined

Predefined AML names and objects. More...

Collaboration diagram for Predefined:

Detailed Description

Predefined AML names and objects.

Functions

aml_object_taml_osi_implementation (aml_method_t *method, aml_object_t **args, uint64_t argCount)
 Implementation of the _OSI predefined method.
 
aml_object_taml_rev_implementation (aml_method_t *method, aml_object_t **args, uint64_t argCount)
 Implementation of the _REV predefined method.
 
aml_object_taml_os_implementation (aml_method_t *method, aml_object_t **args, uint64_t argCount)
 Implementation of the _OS predefined method.
 
aml_mutex_taml_gl_get (void)
 Get the global AML mutex.
 
uint64_t aml_predefined_init (void)
 Initialize predefined AML names and objects.
 

Function Documentation

◆ aml_osi_implementation()

aml_object_t * aml_osi_implementation ( aml_method_t method,
aml_object_t **  args,
uint64_t  argCount 
)

Implementation of the _OSI predefined method.

The _OSI method is used by the ACPI firmware to query the operating system's capabilities. But for now we just return true for everything.

@See section 5.7.2 of the ACPI specification.

Parameters
methodThe _OSI method object.
argsThe arguments passed to the method.
argCountThe number of arguments passed to the method.
Returns
On success, the return value of the method. On failure, ERR and errno is set.
Todo:
Implement _OSI strings properly. For now, we just return true for everything.

Definition at line 14 of file predefined.c.

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

◆ aml_rev_implementation()

aml_object_t * aml_rev_implementation ( aml_method_t method,
aml_object_t **  args,
uint64_t  argCount 
)

Implementation of the _REV predefined method.

The _REV method returns the the revision of the ACPI Specification implemented by the OS.

See also
ACPI_REVISION
Parameters
methodThe _REV method object.
argsThe arguments passed to the method.
argCountThe number of arguments passed to the method.
Returns
On success, the return value of the method. On failure, ERR and errno is set.

Definition at line 43 of file predefined.c.

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

◆ aml_os_implementation()

aml_object_t * aml_os_implementation ( aml_method_t method,
aml_object_t **  args,
uint64_t  argCount 
)

Implementation of the _OS predefined method.

The _OS method evaluates to a string that identifies the operating system.

Parameters
methodThe _OS method object.
argsThe arguments passed to the method.
argCountThe number of arguments passed to the method.
Returns
On success, the return value of the method. On failure, ERR and errno is set.

Definition at line 69 of file predefined.c.

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

◆ aml_gl_get()

aml_mutex_t * aml_gl_get ( void  )

Get the global AML mutex.

Returns
Pointer to the global AML mutex.

Definition at line 112 of file predefined.c.

Here is the caller graph for this function:

◆ aml_predefined_init()

uint64_t aml_predefined_init ( void  )

Initialize predefined AML names and objects.

Returns
On success, 0. On failure, ERR and errno is set.
Todo:
Implement _GL properly.

Definition at line 117 of file predefined.c.

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