5a157176dd
Common apic_timer code in cpu/x86 should not depend on intel header files. Change-Id: Ib099921d4b8e561daea47219385762bb00fc4548 Signed-off-by: Kyösti Mälkki <kyosti.malkki@gmail.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/34091 Reviewed-by: Arthur Heymans <arthur@aheymans.xyz> Reviewed-by: Marshall Dawson <marshalldawson3rd@gmail.com> Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
20 lines
355 B
C
20 lines
355 B
C
#ifndef DELAY_H
|
|
#define DELAY_H
|
|
|
|
#include <stdint.h>
|
|
|
|
#if CONFIG_UDELAY_LAPIC_FIXED_FSB != 0
|
|
static inline u32 get_timer_fsb(void)
|
|
{
|
|
return CONFIG_UDELAY_LAPIC_FIXED_FSB;
|
|
}
|
|
#else
|
|
u32 get_timer_fsb(void);
|
|
#endif
|
|
|
|
void init_timer(void);
|
|
|
|
void udelay(unsigned int usecs);
|
|
void mdelay(unsigned int msecs);
|
|
void delay(unsigned int secs);
|
|
#endif /* DELAY_H */
|