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/mips/include/clock.h

Version: -  FREEBSD  -  FREEBSD-12-STABLE  -  FREEBSD-12-0  -  FREEBSD-11-STABLE  -  FREEBSD-11-2  -  FREEBSD-11-1  -  FREEBSD-11-0  -  FREEBSD-10-STABLE  -  FREEBSD-10-4  -  FREEBSD-10-3  -  FREEBSD-10-2  -  FREEBSD-10-1  -  FREEBSD-10-0  -  FREEBSD-9-STABLE  -  FREEBSD-9-3  -  FREEBSD-9-2  -  FREEBSD-9-1  -  FREEBSD-9-0  -  FREEBSD-8-STABLE  -  FREEBSD-8-4  -  FREEBSD-8-3  -  FREEBSD-8-2  -  FREEBSD-8-1  -  FREEBSD-8-0  -  FREEBSD-7-STABLE  -  FREEBSD-7-4  -  FREEBSD-7-3  -  FREEBSD-7-2  -  FREEBSD-7-1  -  FREEBSD-7-0  -  FREEBSD-6-STABLE  -  FREEBSD-6-4  -  FREEBSD-6-3  -  FREEBSD-6-2  -  FREEBSD-6-1  -  FREEBSD-6-0  -  FREEBSD-5-STABLE  -  FREEBSD-5-5  -  FREEBSD-5-4  -  FREEBSD-5-3  -  FREEBSD-5-2  -  FREEBSD-5-1  -  FREEBSD-5-0  -  FREEBSD-4-STABLE  -  FREEBSD-3-STABLE  -  FREEBSD22  -  linux-2.6  -  linux-2.4.22  -  MK83  -  MK84  -  PLAN9  -  DFBSD  -  NETBSD  -  NETBSD5  -  NETBSD4  -  NETBSD3  -  NETBSD20  -  OPENBSD  -  xnu-517  -  xnu-792  -  xnu-792.6.70  -  xnu-1228  -  xnu-1456.1.26  -  xnu-1699.24.8  -  xnu-2050.18.24  -  OPENSOLARIS  -  minix-3-1-1 
SearchContext: -  none  -  3  -  10 

    1 /*
    2  * Garrett Wollman, September 1994.
    3  * This file is in the public domain.
    4  * Kernel interface to machine-dependent clock driver.
    5  *
    6  *      JNPR: clock.h,v 1.6.2.1 2007/08/29 09:36:05 girish
    7  *      from: src/sys/alpha/include/clock.h,v 1.5 1999/12/29 04:27:55 peter
    8  * $FreeBSD: stable/8/sys/mips/include/clock.h 215938 2010-11-27 12:26:40Z jchandra $
    9  */
   10 
   11 #ifndef _MACHINE_CLOCK_H_
   12 #define _MACHINE_CLOCK_H_
   13 
   14 #include <sys/bus.h>
   15 
   16 #ifdef _KERNEL
   17 
   18 extern int cpu_clock;
   19 
   20 extern uint32_t clockintr(uint32_t, struct trapframe *);
   21 
   22 #define wall_cmos_clock 0
   23 #define adjkerntz 0
   24 
   25 /*
   26  * Default is to assume a CPU pipeline clock of 100Mhz, and
   27  * that CP0_COUNT increments every 2 cycles.
   28  */
   29 #define MIPS_DEFAULT_HZ         (100 * 1000 * 1000)
   30 
   31 void    mips_timer_early_init(uint64_t clock_hz);
   32 void    mips_timer_init_params(uint64_t, int);
   33 
   34 extern uint64_t counter_freq;
   35 extern int      clocks_running;
   36 
   37 /*
   38  * The 'platform_timecounter' pointer may be used to register a
   39  * platform-specific timecounter.
   40  *
   41  * A default timecounter based on the CP0 COUNT register is always registered.
   42  */
   43 extern struct timecounter *platform_timecounter;
   44 
   45 #endif
   46 
   47 #endif /* !_MACHINE_CLOCK_H_ */

Cache object: 74f4f0d612e24ec7716bb229206929a2


[ 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.