clock.h (835bd1ce62ebd0b706c83528cc57a9f4a005d617) | clock.h (e30f001135d8f835c2d750ae17c91268fa9d0bb2) |
---|---|
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 * $Id: clock.h,v 1.19 1996/10/17 17:31:25 bde Exp $ | 6 * $Id: clock.h,v 1.20 1996/10/25 13:01:08 bde Exp $ |
7 */ 8 9#ifndef _MACHINE_CLOCK_H_ 10#define _MACHINE_CLOCK_H_ 11 12#if defined(I586_CPU) || defined(I686_CPU) 13#define CPU_CLOCKUPDATE(otime, ntime) cpu_clockupdate((otime), (ntime)) 14#else --- 45 unchanged lines hidden (view full) --- 60void rtc_serialcombit __P((int i)); 61void rtc_serialcom __P((int i)); 62void rtc_outb __P((int val)); 63#endif 64int sysbeep __P((int pitch, int period)); 65 66#ifdef CLOCK_HAIR 67 | 7 */ 8 9#ifndef _MACHINE_CLOCK_H_ 10#define _MACHINE_CLOCK_H_ 11 12#if defined(I586_CPU) || defined(I686_CPU) 13#define CPU_CLOCKUPDATE(otime, ntime) cpu_clockupdate((otime), (ntime)) 14#else --- 45 unchanged lines hidden (view full) --- 60void rtc_serialcombit __P((int i)); 61void rtc_serialcom __P((int i)); 62void rtc_outb __P((int val)); 63#endif 64int sysbeep __P((int pitch, int period)); 65 66#ifdef CLOCK_HAIR 67 |
68#ifdef PC98 69#include <pc98/pc98/pc98.h> /* XXX */ 70#else |
|
68#include <i386/isa/isa.h> /* XXX */ | 71#include <i386/isa/isa.h> /* XXX */ |
72#endif |
|
69#include <i386/isa/timerreg.h> /* XXX */ 70 71static __inline u_int 72clock_latency(void) 73{ 74 u_char high, low; 75 76 outb(TIMER_MODE, TIMER_SEL0 | TIMER_LATCH); --- 45 unchanged lines hidden --- | 73#include <i386/isa/timerreg.h> /* XXX */ 74 75static __inline u_int 76clock_latency(void) 77{ 78 u_char high, low; 79 80 outb(TIMER_MODE, TIMER_SEL0 | TIMER_LATCH); --- 45 unchanged lines hidden --- |