|
PatchworkOS
|
#include <kernel/acpi/devices.h>#include <kernel/acpi/aml/aml.h>#include <kernel/acpi/aml/object.h>#include <kernel/acpi/aml/runtime/method.h>#include <kernel/acpi/aml/state.h>#include <kernel/acpi/aml/to_string.h>#include <kernel/log/log.h>#include <kernel/log/panic.h>#include <errno.h>Go to the source code of this file.
Functions | |
| static uint64_t | acpi_sta_get_flags (aml_state_t *state, aml_object_t *device, acpi_sta_flags_t *out) |
| static uint64_t | acpi_devices_init_children (aml_state_t *state, aml_object_t *parent) |
| void | acpi_devices_init (void) |
| Enumerate and configure ACPI devices. | |
|
inlinestatic |
Definition at line 42 of file devices.c.
References acpi_devices_init_children(), ACPI_STA_FUNCTIONAL, acpi_sta_get_flags(), ACPI_STA_PRESENT, AML_DEVICE, AML_METHOD, aml_method_evaluate_integer(), AML_NAME, AML_NAME_TO_STRING, aml_namespace_find(), aml_type_to_string(), DEREF_DEFER, ERR, LIST_FOR_EACH, LOG_ERR, LOG_INFO, and NULL.
Referenced by acpi_devices_init(), and acpi_devices_init_children().
|
inlinestatic |
Definition at line 13 of file devices.c.
References ACPI_STA_BATTERY_PRESENT, ACPI_STA_ENABLED, ACPI_STA_FLAGS_DEFAULT, ACPI_STA_FUNCTIONAL, ACPI_STA_PRESENT, ACPI_STA_SHOW_IN_UI, aml_method_evaluate_integer(), AML_NAME, AML_NAME_TO_STRING, aml_namespace_find(), DEREF_DEFER, EILSEQ, ERR, errno, LOG_ERR, NULL, and aml_state_t::overlay.
Referenced by acpi_devices_init_children().