|
PatchworkOS
966e257
A non-POSIX operating system.
|
#include <kernel/cpu/io.h>#include <kernel/cpu/irq.h>#include <modules/acpi/aml/object.h>#include <modules/acpi/resources.h>#include <sys/io.h>Go to the source code of this file.
Data Structures | |
| struct | acpi_device_irq_t |
| Represents a IRQ assigned to an ACPI device. More... | |
| struct | acpi_device_io_t |
| Represents an IO port range assigned to an ACPI device. More... | |
| struct | acpi_device_cfg_t |
| ACPI device configuration structure. 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 | |
| uint64_t | acpi_devices_init (void) |
| Enumerate, configure and load modules for ACPI devices. | |
| acpi_device_cfg_t * | acpi_device_cfg_lookup (const char *name) |
| Retrieves the ACPI device configuration for a device by its name. | |
| uint64_t | acpi_device_cfg_get_port (acpi_device_cfg_t *cfg, uint64_t index, port_t *out) |
| Retrieves an the nth IO port assigned to an ACPI device. | |