summaryrefslogtreecommitdiff
path: root/kc/core/pit8253.h
diff options
context:
space:
mode:
authorAda Christine <adachristine18@gmail.com>2022-02-18 17:24:17 +0000
committerAda Christine <adachristine18@gmail.com>2022-02-18 17:24:17 +0000
commit21bcfa6b707403a43ea8ac4a285114951cf29059 (patch)
treeb99a41fb9e38e5032a2987b495039e20cb30eeff /kc/core/pit8253.h
parent91ad310687ae37339db3dd5d51d47db87f2cf749 (diff)
timer callback interface
Diffstat (limited to 'kc/core/pit8253.h')
-rw-r--r--kc/core/pit8253.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/kc/core/pit8253.h b/kc/core/pit8253.h
index 32cb9b1..b6f3d10 100644
--- a/kc/core/pit8253.h
+++ b/kc/core/pit8253.h
@@ -10,6 +10,9 @@ void pit8253_stop(void);
void pit8253_set_frequency(uint32_t frequency);
uint32_t pit8253_get_frequency(void);
+int pit8253_append_callback(timer_callback func);
+void pit8253_delete_callback(timer_callback func);
+
uint64_t pit8253_nanoseconds_elapsed(void);
uint64_t pit8253_nanoseconds_delta(void);