coreboot
coreboot is an Open Source project aimed at replacing the proprietary BIOS found in most computers.
delay.h
Go to the documentation of this file.
1 #ifndef DELAY_H
2 #define DELAY_H
3 
4 #include <stdint.h>
5 
6 #if CONFIG_UDELAY_LAPIC_FIXED_FSB != 0
7 static inline u32 get_timer_fsb(void)
8 {
9  return CONFIG_UDELAY_LAPIC_FIXED_FSB;
10 }
11 #else
12 u32 get_timer_fsb(void);
13 #endif
14 
15 void init_timer(void);
16 
17 void udelay(unsigned int usecs);
18 void mdelay(unsigned int msecs);
19 void delay(unsigned int secs);
20 #endif /* DELAY_H */
void delay(unsigned int secs)
Definition: delay.c:8
void mdelay(unsigned int msecs)
Definition: delay.c:2
void udelay(unsigned int usecs)
udelay - generates micro second delay.
Definition: udelay.c:15
void init_timer(void)
Init Global System Timers Unit (GTI).
Definition: arch_timer.c:12
u32 get_timer_fsb(void)
Definition: fsb.c:109
uint32_t u32
Definition: stdint.h:51