The Design and Implementation of the FreeBSD Operating System, Second Edition
Now available: The Design and Implementation of the FreeBSD Operating System (Second Edition)


[ source navigation ] [ diff markup ] [ identifier search ] [ freetext search ] [ file search ] [ list types ] [ track identifier ]

FreeBSD/Linux Kernel Cross Reference
sys/i386/include/clock.h

Version: -  FREEBSD  -  FREEBSD-13-STABLE  -  FREEBSD-13-0  -  FREEBSD-12-STABLE  -  FREEBSD-12-0  -  FREEBSD-11-STABLE  -  FREEBSD-11-0  -  FREEBSD-10-STABLE  -  FREEBSD-10-0  -  FREEBSD-9-STABLE  -  FREEBSD-9-0  -  FREEBSD-8-STABLE  -  FREEBSD-8-0  -  FREEBSD-7-STABLE  -  FREEBSD-7-0  -  FREEBSD-6-STABLE  -  FREEBSD-6-0  -  FREEBSD-5-STABLE  -  FREEBSD-5-0  -  FREEBSD-4-STABLE  -  FREEBSD-3-STABLE  -  FREEBSD22  -  l41  -  OPENBSD  -  linux-2.6  -  MK84  -  PLAN9  -  xnu-8792 
SearchContext: -  none  -  3  -  10 

    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$
    7  */
    8 
    9 #ifndef _MACHINE_CLOCK_H_
   10 #define _MACHINE_CLOCK_H_
   11 
   12 #ifdef KERNEL
   13 /*
   14  * i386 to clock driver interface.
   15  * XXX large parts of the driver and its interface are misplaced.
   16  */
   17 extern int      adjkerntz;
   18 extern int      disable_rtc_set;
   19 extern int      statclock_disable;
   20 extern u_int    timer_freq;
   21 extern int      timer0_max_count;
   22 extern u_int    tsc_freq;
   23 extern int      tsc_is_broken;
   24 extern int      wall_cmos_clock;
   25 #ifdef APIC_IO
   26 extern int      apic_8254_intr;
   27 #endif
   28 
   29 /*
   30  * Driver to clock driver interface.
   31  */
   32 struct clockframe;
   33 
   34 void    DELAY __P((int usec));
   35 int     acquire_timer0 __P((int rate,
   36                             void (*function)(struct clockframe *frame)));
   37 int     acquire_timer2 __P((int mode));
   38 int     release_timer0 __P((void));
   39 int     release_timer2 __P((void));
   40 #ifndef PC98
   41 int     rtcin __P((int val));
   42 #else
   43 int     acquire_timer1 __P((int mode));
   44 int     release_timer1 __P((void));
   45 #endif
   46 int     sysbeep __P((int pitch, int period));
   47 void    i8254_restore __P((void));
   48 
   49 #endif /* KERNEL */
   50 
   51 #endif /* !_MACHINE_CLOCK_H_ */

Cache object: a0a45a962bc31ba5c867517a88600fb0


[ source navigation ] [ diff markup ] [ identifier search ] [ freetext search ] [ file search ] [ list types ] [ track identifier ]


This page is part of the FreeBSD/Linux Linux Kernel Cross-Reference, and was automatically generated using a modified version of the LXR engine.