My Kernel v0.1.0
acpi.h
1
32#pragma once
33
34#include <kernel/devices/driver.h>
35#include <kernel/error.h>
36
37#include <multiboot.h>
38
45 const char *const compatible;
46};
47
48#define ACPI_ID_MAX_LEN 8
49
55 char id[ACPI_ID_MAX_LEN];
56};
57
60
61#define ACPI_DECLARE_DRIVER(_name, _driver) \
62 DECLARE_DRIVER(_name, _driver, acpi_driver_register)
63
67error_t acpi_init(struct multiboot_info *mbt);
68
error_t acpi_init(struct multiboot_info *mbt)
Initialize the ACPI environment.
Definition: acpi.c:29
void acpi_driver_register(struct acpi_driver *)
Register an ACPI device driver.
Definition: acpi.c:161
Per-bus device struct for ACPI devices.
Definition: acpi.h:53
Per-bus driver struct for ACPI drivers.
Definition: acpi.h:42
struct device_driver driver
The ACPI ID of the device compatible with this driver.
Definition: acpi.h:43
The basic device driver structure.
Definition: driver.h:77
Represents a device inside the kernel.
Definition: device.h:78