summaryrefslogtreecommitdiff
path: root/src/include/delay.h
blob: 327ad4df1bb8efe0b21b86197b16bd1002b4d065 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
/* SPDX-License-Identifier: GPL-2.0-only */

#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 */