aboutsummaryrefslogtreecommitdiff
path: root/src/pit.h
diff options
context:
space:
mode:
authorKevin O'Connor <kevin@koconnor.net>2013-07-20 11:06:51 -0400
committerKevin O'Connor <kevin@koconnor.net>2013-07-20 19:29:52 -0400
commit118605f1dd2a30813c89b35420edb472875d4bd2 (patch)
tree7881eb98b9a099c8e84d714b9f07e5563d8651d6 /src/pit.h
parentc6e8c0763dee3f7c28d6ab3f2fb5c36986c288cb (diff)
downloadseabios-hppa-118605f1dd2a30813c89b35420edb472875d4bd2.zip
seabios-hppa-118605f1dd2a30813c89b35420edb472875d4bd2.tar.gz
seabios-hppa-118605f1dd2a30813c89b35420edb472875d4bd2.tar.bz2
Don't pass khz to pmtimer_setup - it's always PM_TIMER_FREQUENCY.
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
Diffstat (limited to 'src/pit.h')
-rw-r--r--src/pit.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/pit.h b/src/pit.h
index 6d58895..7b5e5e8 100644
--- a/src/pit.h
+++ b/src/pit.h
@@ -2,6 +2,9 @@
#ifndef __PIT_H
#define __PIT_H
+/* PM Timer ticks per second (HZ) */
+#define PM_TIMER_FREQUENCY 3579545
+
#define PIT_TICK_RATE 1193180 // Underlying HZ of PIT
#define PIT_TICK_INTERVAL 65536 // Default interval for 18.2Hz timer
#define TICKS_PER_DAY (u32)((u64)60*60*24*PIT_TICK_RATE / PIT_TICK_INTERVAL)