summaryrefslogtreecommitdiff
path: root/kc/core/pit8253.h
diff options
context:
space:
mode:
authorAda Christine <adachristine18@gmail.com>2022-02-17 13:40:55 +0000
committerAda Christine <adachristine18@gmail.com>2022-02-17 13:40:55 +0000
commit9b63c0000b2e0d9d0a306e56dbc7bc28403e5549 (patch)
tree17ef5aa53d37c4232f8efcca97c5f118a96fb96f /kc/core/pit8253.h
parentb8ef8b401d9dd1e15f2703eb997fb79a70ae531a (diff)
many changes have happned
- updates to panic() interface - genericized timer interface - (yet unused) additions to task management
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;