|
PatchworkOS
2ca1c69
A non-POSIX operating system.
|
Predefined AML names and objects. More...
Predefined AML names and objects.
Functions | |
| aml_object_t * | aml_osi_implementation (aml_method_t *method, aml_object_t **args, uint64_t argCount) |
| Implementation of the _OSI predefined method. | |
| aml_object_t * | aml_rev_implementation (aml_method_t *method, aml_object_t **args, uint64_t argCount) |
| Implementation of the _REV predefined method. | |
| aml_object_t * | aml_os_implementation (aml_method_t *method, aml_object_t **args, uint64_t argCount) |
| Implementation of the _OS predefined method. | |
| aml_mutex_t * | aml_gl_get (void) |
| Get the global AML mutex. | |
| uint64_t | aml_predefined_init (void) |
| Initialize predefined AML names and objects. | |
| 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.
| method | The _OSI method object. |
| args | The arguments passed to the method. |
| argCount | The number of arguments passed to the method. |
ERR and errno is set. Definition at line 14 of file predefined.c.
| 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.
ACPI_REVISION| method | The _REV method object. |
| args | The arguments passed to the method. |
| argCount | The number of arguments passed to the method. |
ERR and errno is set. Definition at line 43 of file predefined.c.
| 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.
| method | The _OS method object. |
| args | The arguments passed to the method. |
| argCount | The number of arguments passed to the method. |
ERR and errno is set. Definition at line 69 of file predefined.c.
| aml_mutex_t * aml_gl_get | ( | void | ) |
Get the global AML mutex.
Definition at line 112 of file predefined.c.
| uint64_t aml_predefined_init | ( | void | ) |
Initialize predefined AML names and objects.
0. On failure, ERR and errno is set. Definition at line 117 of file predefined.c.