bios_timer.h
Go to the documentation of this file.00001 #ifndef _GPXE_BIOS_TIMER_H
00002 #define _GPXE_BIOS_TIMER_H
00003
00004
00005
00006
00007
00008
00009
00010 FILE_LICENCE ( GPL2_OR_LATER );
00011
00012 #ifdef TIMER_PCBIOS
00013 #define TIMER_PREFIX_pcbios
00014 #else
00015 #define TIMER_PREFIX_pcbios __pcbios_
00016 #endif
00017
00018 #include <gpxe/timer2.h>
00019
00020
00021
00022
00023
00024
00025 static inline __always_inline void
00026 TIMER_INLINE ( pcbios, udelay ) ( unsigned long usecs ) {
00027
00028
00029
00030 timer2_udelay ( usecs );
00031 }
00032
00033
00034
00035
00036
00037
00038 static inline __always_inline unsigned long
00039 TIMER_INLINE ( pcbios, ticks_per_sec ) ( void ) {
00040
00041 return 18;
00042 }
00043
00044 #endif