PatchworkOS
Loading...
Searching...
No Matches
devices.h
Go to the documentation of this file.
1#pragma once
2
3#include <stdint.h>
4#include <sys/io.h>
5
34
42#define ACPI_STA_FLAGS_DEFAULT (ACPI_STA_PRESENT | ACPI_STA_ENABLED | ACPI_STA_SHOW_IN_UI | ACPI_STA_FUNCTIONAL)
43
61void acpi_devices_init(void);
62
void acpi_devices_init(void)
Enumerate and configure ACPI devices.
Definition devices.c:98
acpi_sta_flags_t
Flags for the _STA method.
Definition devices.h:26
@ ACPI_STA_BATTERY_PRESENT
Set if a battery is present.
Definition devices.h:32
@ ACPI_STA_SHOW_IN_UI
Set if the device should be shown in the UI.
Definition devices.h:29
@ ACPI_STA_PRESENT
Set if the device is present.
Definition devices.h:27
@ ACPI_STA_FUNCTIONAL
Set if the device is functioning properly (cleared if device failed its diagnostics)
Definition devices.h:30
@ ACPI_STA_ENABLED
Set if the device is enabled and decoding its resources.
Definition devices.h:28