Martin Roth | 239b5df | 2022-07-26 22:18:26 -0600 | [diff] [blame] | 1 | /* SPDX-License-Identifier: GPL-2.0-only */ |
| 2 | |
Eric Biederman | 8ca8d76 | 2003-04-22 19:02:15 +0000 | [diff] [blame] | 3 | #ifndef DELAY_H |
| 4 | #define DELAY_H |
Stefan Reinauer | de3206a | 2010-02-22 06:09:43 +0000 | [diff] [blame] | 5 | |
Kyösti Mälkki | 5a15717 | 2019-07-01 10:12:45 +0300 | [diff] [blame] | 6 | #include <stdint.h> |
| 7 | |
| 8 | #if CONFIG_UDELAY_LAPIC_FIXED_FSB != 0 |
| 9 | static inline u32 get_timer_fsb(void) |
| 10 | { |
| 11 | return CONFIG_UDELAY_LAPIC_FIXED_FSB; |
| 12 | } |
| 13 | #else |
| 14 | u32 get_timer_fsb(void); |
| 15 | #endif |
| 16 | |
Stefan Reinauer | de3206a | 2010-02-22 06:09:43 +0000 | [diff] [blame] | 17 | void init_timer(void); |
Stefan Reinauer | de3206a | 2010-02-22 06:09:43 +0000 | [diff] [blame] | 18 | |
Lee Leahy | 0ca2a06 | 2017-03-06 18:01:04 -0800 | [diff] [blame] | 19 | void udelay(unsigned int usecs); |
| 20 | void mdelay(unsigned int msecs); |
| 21 | void delay(unsigned int secs); |
Eric Biederman | 8ca8d76 | 2003-04-22 19:02:15 +0000 | [diff] [blame] | 22 | #endif /* DELAY_H */ |