Commit | Line | Data |
---|---|---|
984263bc MD |
1 | /* |
2 | * Kernel interface to machine-dependent clock driver. | |
3 | * Garrett Wollman, September 1994. | |
4 | * This file is in the public domain. | |
5 | * | |
6 | * $FreeBSD: src/sys/i386/include/clock.h,v 1.38.2.1 2002/11/02 04:41:50 iwasaki Exp $ | |
870b0161 | 7 | * $DragonFly: src/sys/platform/pc32/include/clock.h,v 1.9 2008/05/10 17:24:08 dillon Exp $ |
984263bc MD |
8 | */ |
9 | ||
10 | #ifndef _MACHINE_CLOCK_H_ | |
11 | #define _MACHINE_CLOCK_H_ | |
12 | ||
13 | #ifdef _KERNEL | |
1bd40720 MD |
14 | |
15 | #ifndef _SYS_TYPES_H_ | |
16 | #include <sys/types.h> | |
17 | #endif | |
18 | ||
984263bc MD |
19 | /* |
20 | * i386 to clock driver interface. | |
21 | * XXX large parts of the driver and its interface are misplaced. | |
22 | */ | |
23 | extern int adjkerntz; | |
24 | extern int disable_rtc_set; | |
25 | extern int statclock_disable; | |
26 | extern u_int timer_freq; | |
27 | extern int timer0_max_count; | |
8b3ec75a | 28 | extern int tsc_present; |
870b0161 | 29 | extern int64_t tsc_frequency; |
984263bc MD |
30 | extern int tsc_is_broken; |
31 | extern int wall_cmos_clock; | |
79b62055 | 32 | #ifdef SMP /* APIC-IO */ |
984263bc MD |
33 | extern int apic_8254_intr; |
34 | #endif | |
35 | ||
36 | /* | |
37 | * Driver to clock driver interface. | |
38 | */ | |
984263bc | 39 | |
3ae0cd58 | 40 | int rtcin (int val); |
88c4d2f6 MD |
41 | int acquire_timer2 (int mode); |
42 | int release_timer2 (void); | |
3ae0cd58 RG |
43 | int sysbeep (int pitch, int period); |
44 | void timer_restore (void); | |
984263bc MD |
45 | |
46 | #endif /* _KERNEL */ | |
47 | ||
48 | #endif /* !_MACHINE_CLOCK_H_ */ |