Merge pull request #8 from d-tatianin/uacpi-integration

uACPI integration
This commit is contained in:
Matheus
2024-09-01 19:32:10 -03:00
committed by GitHub
21 changed files with 822 additions and 267 deletions
+13
View File
@@ -0,0 +1,13 @@
#ifndef _ACPI_H
#define _ACPI_H
// Doesn't depend on PCI, only makes table search available
void acpi_early_init(void);
// Loads the actual ACPI namespace, hooks up the power button
void acpi_init(void);
int acpi_poweroff(void);
int acpi_reboot(void);
#endif
+2
View File
@@ -19,6 +19,7 @@
#define IPL_DISK 500
#define IPL_KEYBOARD 600
#define IPL_MOUSE 650
#define IPL_ACPI 700
#define IPL_DPC 900
#define IPL_NORMAL 1000
@@ -28,6 +29,7 @@ typedef struct _isr_t {
struct _isr_t *prev;
void (*func)(struct _isr_t *self, context_t *ctx);
void (*eoi)(struct _isr_t *self);
void *priv;
long id;
long priority;
bool pending;