6 typedef unsigned long tick_t;
8 #define MSECS_IN_SEC (1000)
9 #define USECS_IN_SEC (1000*1000)
10 #define USECS_IN_MSEC (1000)
12 #define TICKS_PER_SEC USECS_IN_SEC
14 extern tick_t currticks ( void );
16 extern void generic_currticks_udelay ( unsigned int usecs );
22 * @ret rc Return status code
24 int ( * init ) ( void );
27 * @ret ticks Current time, in ticks
29 tick_t ( * currticks ) ( void );
32 * @v usecs Time to delay, in microseconds
34 void ( * udelay ) ( unsigned int usecs );
37 #define __timer( order ) __table ( struct timer, timers, order )
39 #endif /* GPXE_TIMER_H */