aboutsummaryrefslogtreecommitdiff
path: root/kernel/inc/drivers
diff options
context:
space:
mode:
authorMarvin Borner2021-07-01 21:13:01 +0200
committerMarvin Borner2021-07-01 22:32:16 +0200
commitf3e85eedc434da973267f360abdbb79cb6f24100 (patch)
tree9fd71ec70454474a0a2cff479c7d9b949e779c74 /kernel/inc/drivers
parent340e841772eb13d9087235b8707c1cfeff8710cb (diff)
Timing is everything
Diffstat (limited to 'kernel/inc/drivers')
-rw-r--r--kernel/inc/drivers/int.h2
-rw-r--r--kernel/inc/drivers/pit.h8
-rw-r--r--kernel/inc/drivers/timer.h12
3 files changed, 10 insertions, 12 deletions
diff --git a/kernel/inc/drivers/int.h b/kernel/inc/drivers/int.h
index 8146898..9dd4a6f 100644
--- a/kernel/inc/drivers/int.h
+++ b/kernel/inc/drivers/int.h
@@ -44,6 +44,8 @@ struct idt_ptr {
} PACKED;
void idt_install(void);
+void int_enable(void);
+void int_disable(void);
void int_trap_handler_add(u32 int_no, void (*handler)(u32 esp));
void int_event_handler_add(u32 int_no, void (*handler)(void));
diff --git a/kernel/inc/drivers/pit.h b/kernel/inc/drivers/pit.h
new file mode 100644
index 0000000..b3cd507
--- /dev/null
+++ b/kernel/inc/drivers/pit.h
@@ -0,0 +1,8 @@
+// MIT License, Copyright (c) 2021 Marvin Borner
+
+#ifndef PIT_H
+#define PIT_H
+
+void pit_install(void);
+
+#endif
diff --git a/kernel/inc/drivers/timer.h b/kernel/inc/drivers/timer.h
deleted file mode 100644
index ea1643b..0000000
--- a/kernel/inc/drivers/timer.h
+++ /dev/null
@@ -1,12 +0,0 @@
-// MIT License, Copyright (c) 2020 Marvin Borner
-
-#ifndef TIMER_H
-#define TIMER_H
-
-#include <def.h>
-
-u32 timer_get(void);
-void timer_wait(u32 ticks);
-void timer_install(void);
-
-#endif