mirror of
https://github.com/Mathewnd/Astral.git
synced 2026-10-27 12:48:22 +00:00
Merge pull request #8 from d-tatianin/uacpi-integration
uACPI integration
This commit is contained in:
@@ -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
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user