aboutsummaryrefslogtreecommitdiff
path: root/src/kernel/acpi/acpi.h
diff options
context:
space:
mode:
authorMarvin Borner2019-10-28 15:49:45 +0100
committerMarvin Borner2019-10-28 15:49:45 +0100
commit644d9da7c883e7bef4598254fa0679a3cea5f001 (patch)
treef7633f6aec9e5e8257bf29d1c89329b2354889de /src/kernel/acpi/acpi.h
parent00cfe0fbe1c80f535ff31beba598770064f13f12 (diff)
Added cmos based rtc date & time
Diffstat (limited to 'src/kernel/acpi/acpi.h')
-rw-r--r--src/kernel/acpi/acpi.h28
1 files changed, 28 insertions, 0 deletions
diff --git a/src/kernel/acpi/acpi.h b/src/kernel/acpi/acpi.h
index 53c57b4..1d18182 100644
--- a/src/kernel/acpi/acpi.h
+++ b/src/kernel/acpi/acpi.h
@@ -17,4 +17,32 @@ void reboot();
*/
void acpi_poweroff();
+struct RSDPtr {
+ char Signature[8];
+ char CheckSum;
+ char OemID[6];
+ char Revision;
+ uint32_t *rsdt_address;
+};
+
+struct FACP {
+ char Signature[4];
+ uint32_t Length;
+ char unneded1[40 - 8];
+ uint32_t *DSDT;
+ char unneded2[48 - 44];
+ uint32_t *SMI_CMD;
+ char ACPI_ENABLE;
+ char ACPI_DISABLE;
+ char unneded3[64 - 54];
+ uint32_t *PM1a_CNT_BLK;
+ uint32_t *PM1b_CNT_BLK;
+ char unneded4[89 - 72];
+ char PM1_CNT_LEN;
+ char unneeded5[18];
+ char century;
+};
+
+extern struct FACP *facp;
+
#endif