diff options
author | Kevin O'Connor <kevin@koconnor.net> | 2013-07-20 10:51:58 -0400 |
---|---|---|
committer | Kevin O'Connor <kevin@koconnor.net> | 2013-07-20 19:29:07 -0400 |
commit | c6e8c0763dee3f7c28d6ab3f2fb5c36986c288cb (patch) | |
tree | 1f70586af44e6d8cb1f644d0ae6d85d80ff891b6 /src/util.h | |
parent | ed88f6515c18d9520efa4a41ccb70038dfbe43f9 (diff) | |
download | seabios-hppa-c6e8c0763dee3f7c28d6ab3f2fb5c36986c288cb.zip seabios-hppa-c6e8c0763dee3f7c28d6ab3f2fb5c36986c288cb.tar.gz seabios-hppa-c6e8c0763dee3f7c28d6ab3f2fb5c36986c288cb.tar.bz2 |
Move internal timer code from clock.c to a new file timer.c.
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
Diffstat (limited to 'src/util.h')
-rw-r--r-- | src/util.h | 13 |
1 files changed, 7 insertions, 6 deletions
@@ -275,8 +275,13 @@ void serial_setup(void); void lpt_setup(void); // clock.c -#define PIT_TICK_RATE 1193180 // Underlying HZ of PIT -#define PIT_TICK_INTERVAL 65536 // Default interval for 18.2Hz timer +void clock_setup(void); +void handle_1583(struct bregs *regs); +void handle_1586(struct bregs *regs); +void useRTC(void); +void releaseRTC(void); + +// timer.c void pmtimer_setup(u16 ioport, u32 khz); int check_tsc(u64 end); void timer_setup(void); @@ -291,10 +296,6 @@ u64 calc_future_tsc_usec(u32 usecs); u32 calc_future_timer_ticks(u32 count); u32 calc_future_timer(u32 msecs); int check_timer(u32 end); -void handle_1583(struct bregs *regs); -void handle_1586(struct bregs *regs); -void useRTC(void); -void releaseRTC(void); // apm.c void apm_shutdown(void); |