This commit represents a major revamping of the clock interrupt and timebase
[dragonfly.git] / sys / i386 / include / clock.h
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 $
7  * $DragonFly: src/sys/i386/include/Attic/clock.h,v 1.5 2004/01/30 05:42:16 dillon Exp $
8  */
9
10 #ifndef _MACHINE_CLOCK_H_
11 #define _MACHINE_CLOCK_H_
12
13 #ifdef _KERNEL
14 /*
15  * i386 to clock driver interface.
16  * XXX large parts of the driver and its interface are misplaced.
17  */
18 extern int      adjkerntz;
19 extern int      disable_rtc_set;
20 extern int      statclock_disable;
21 extern u_int    timer_freq;
22 extern int      timer0_max_count;
23 extern u_int    tsc_freq;
24 extern int      tsc_is_broken;
25 extern int      wall_cmos_clock;
26 #ifdef APIC_IO
27 extern int      apic_8254_intr;
28 #endif
29
30 /*
31  * Driver to clock driver interface.
32  */
33
34 #ifndef PC98
35 int     rtcin (int val);
36 #endif
37 int     acquire_timer2 (int mode);
38 int     release_timer2 (void);
39 int     sysbeep (int pitch, int period);
40 void    timer_restore (void);
41
42 #endif /* _KERNEL */
43
44 #endif /* !_MACHINE_CLOCK_H_ */