|
PatchworkOS
|
Device and Power Management. More...
Macros | |
| #define | ACPI_STA_FLAGS_DEFAULT (ACPI_STA_PRESENT | ACPI_STA_ENABLED | ACPI_STA_SHOW_IN_UI | ACPI_STA_FUNCTIONAL) |
| Default _STA flags if the _STA method does not exist. | |
Enumerations | |
| enum | acpi_sta_flags_t { ACPI_STA_PRESENT = 1 << 0 , ACPI_STA_ENABLED = 1 << 1 , ACPI_STA_SHOW_IN_UI = 1 << 2 , ACPI_STA_FUNCTIONAL , ACPI_STA_BATTERY_PRESENT = 1 << 4 } |
| Flags for the _STA method. More... | |
Functions | |
| void | acpi_devices_init (void) |
| Enumerate and configure ACPI devices. | |
Device and Power Management.
Handles enumeration and configuration of ACPI devices, along with dynamic loading of device drivers based on ACPI IDs.
TODO: Implement hotplugging support.
| #define ACPI_STA_FLAGS_DEFAULT (ACPI_STA_PRESENT | ACPI_STA_ENABLED | ACPI_STA_SHOW_IN_UI | ACPI_STA_FUNCTIONAL) |
| enum acpi_sta_flags_t |
Flags for the _STA method.
| void acpi_devices_init | ( | void | ) |
Enumerate and configure ACPI devices.
This function always evaluates the _SB._INI node if it exists, enumerates ACPI devices (found under _SB), evaulates their _STA object retrieving its present and functional status (if it exists) and then evaluates their _INI object acording to these rules:
Definition at line 98 of file devices.c.
References acpi_devices_init_children(), aml_big_mutex_get(), AML_METHOD, aml_method_evaluate_integer(), AML_NAME, aml_namespace_find(), aml_namespace_find_child(), aml_state_deinit(), aml_state_init(), aml_type_to_string(), DEREF_DEFER, ERR, LOG_ERR, LOG_INFO, MUTEX_SCOPE, NULL, and panic().
Referenced by init_finalize().