clock.h (110370) | clock.h (114349) |
---|---|
1/* 2 * Kernel interface to machine-dependent clock driver. 3 * Garrett Wollman, September 1994. 4 * This file is in the public domain. 5 * | 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: head/sys/amd64/include/clock.h 110370 2003-02-05 09:20:40Z phk $ | 6 * $FreeBSD: head/sys/amd64/include/clock.h 114349 2003-05-01 01:05:25Z peter $ |
7 */ 8 9#ifndef _MACHINE_CLOCK_H_ 10#define _MACHINE_CLOCK_H_ 11 12#ifdef _KERNEL 13/* 14 * i386 to clock driver interface. --- 4 unchanged lines hidden (view full) --- 19extern int pscnt; 20extern int psdiv; 21extern int statclock_disable; 22extern u_int timer_freq; 23extern int timer0_max_count; 24extern uint64_t tsc_freq; 25extern int tsc_is_broken; 26extern int wall_cmos_clock; | 7 */ 8 9#ifndef _MACHINE_CLOCK_H_ 10#define _MACHINE_CLOCK_H_ 11 12#ifdef _KERNEL 13/* 14 * i386 to clock driver interface. --- 4 unchanged lines hidden (view full) --- 19extern int pscnt; 20extern int psdiv; 21extern int statclock_disable; 22extern u_int timer_freq; 23extern int timer0_max_count; 24extern uint64_t tsc_freq; 25extern int tsc_is_broken; 26extern int wall_cmos_clock; |
27#ifdef APIC_IO 28extern int apic_8254_intr; 29#endif | |
30 31/* 32 * Driver to clock driver interface. 33 */ 34struct clockframe; 35 36int acquire_timer0(int rate, void (*function)(struct clockframe *frame)); 37int acquire_timer2(int mode); 38int release_timer0(void); 39int release_timer2(void); | 27 28/* 29 * Driver to clock driver interface. 30 */ 31struct clockframe; 32 33int acquire_timer0(int rate, void (*function)(struct clockframe *frame)); 34int acquire_timer2(int mode); 35int release_timer0(void); 36int release_timer2(void); |
40#ifndef PC98 | |
41int rtcin(int val); | 37int rtcin(int val); |
42#else 43int acquire_timer1(int mode); 44int release_timer1(void); 45#endif | |
46int sysbeep(int pitch, int period); | 38int sysbeep(int pitch, int period); |
47void timer_restore(void); | |
48void init_TSC(void); 49 50#endif /* _KERNEL */ 51 52#endif /* !_MACHINE_CLOCK_H_ */ | 39void init_TSC(void); 40 41#endif /* _KERNEL */ 42 43#endif /* !_MACHINE_CLOCK_H_ */ |