2 * GeekOS timer interrupt support
3 * Copyright (c) 2001, David H. Hovemeyer <daveho@cs.umd.edu>
6 * This is free software. You are permitted to use,
7 * redistribute, and modify it as specified in the file "COPYING".
10 #ifndef GEEKOS_TIMER_H
11 #define GEEKOS_TIMER_H
15 extern volatile ulong_t g_numTicks;
17 typedef void (*timerCallback)(int);
19 void Init_Timer(void);
21 void Micro_Delay(int us);
25 int ticks; /* timer code decrements this */
26 int id; /* unqiue id for this timer even */
27 timerCallback callBack; /* Queue to wakeup on timer expire */
31 int Start_Timer(int ticks, timerCallback);
32 int Get_Remaing_Timer_Ticks(int id);
33 int Cancel_Timer(int id);
36 void Micro_Delay(int us);
38 #endif /* GEEKOS_TIMER_H */