summaryrefslogtreecommitdiff
path: root/kc/core/pit8253.h
diff options
context:
space:
mode:
Diffstat (limited to 'kc/core/pit8253.h')
-rw-r--r--kc/core/pit8253.h11
1 files changed, 9 insertions, 2 deletions
diff --git a/kc/core/pit8253.h b/kc/core/pit8253.h
index 25861f7..32cb9b1 100644
--- a/kc/core/pit8253.h
+++ b/kc/core/pit8253.h
@@ -1,10 +1,17 @@
#pragma once
+#include "timer.h"
#include <stdint.h>
void pit8253_init(void);
void pit8253_start(void);
void pit8253_stop(void);
-uint64_t pit8253_count(void);
-void pit8253_set_hz(uint16_t hz);
+
+void pit8253_set_frequency(uint32_t frequency);
+uint32_t pit8253_get_frequency(void);
+
+uint64_t pit8253_nanoseconds_elapsed(void);
+uint64_t pit8253_nanoseconds_delta(void);
+
+extern const struct timer_source pit8253_timer_source;