aboutsummaryrefslogtreecommitdiff
path: root/src/util.h
diff options
context:
space:
mode:
authorKevin O'Connor <kevin@koconnor.net>2013-07-20 12:08:48 -0400
committerKevin O'Connor <kevin@koconnor.net>2013-07-20 19:29:54 -0400
commit69013378972c07c9a1e46fa6ec274070cad1a532 (patch)
tree4e9c270ca2aa83fa098ecd54b49528d4a102c9fa /src/util.h
parent118605f1dd2a30813c89b35420edb472875d4bd2 (diff)
downloadseabios-hppa-69013378972c07c9a1e46fa6ec274070cad1a532.zip
seabios-hppa-69013378972c07c9a1e46fa6ec274070cad1a532.tar.gz
seabios-hppa-69013378972c07c9a1e46fa6ec274070cad1a532.tar.bz2
Add helper functions to convert timer irqs to milliseconds.
Add ticks_to_ms() and ticks_from_ms() helpers. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
Diffstat (limited to 'src/util.h')
-rw-r--r--src/util.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/util.h b/src/util.h
index 15982e2..a91b7f8 100644
--- a/src/util.h
+++ b/src/util.h
@@ -282,6 +282,8 @@ void useRTC(void);
void releaseRTC(void);
// timer.c
+u32 ticks_to_ms(u32 ticks);
+u32 ticks_from_ms(u32 ms);
void pmtimer_setup(u16 ioport);
int check_tsc(u64 end);
void timer_setup(void);