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/sqt/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  * Mach Operating System
    3  * Copyright (c) 1991 Carnegie Mellon University
    4  * Copyright (c) 1991 Sequent Computer Systems
    5  * All Rights Reserved.
    6  * 
    7  * Permission to use, copy, modify and distribute this software and its
    8  * documentation is hereby granted, provided that both the copyright
    9  * notice and this permission notice appear in all copies of the
   10  * software, derivative works or modified versions, and any portions
   11  * thereof, and that both notices appear in supporting documentation.
   12  * 
   13  * CARNEGIE MELLON AND SEQUENT COMPUTER SYSTEMS ALLOW FREE USE OF
   14  * THIS SOFTWARE IN ITS "AS IS" CONDITION.  CARNEGIE MELLON AND
   15  * SEQUENT COMPUTER SYSTEMS DISCLAIM ANY LIABILITY OF ANY KIND FOR
   16  * ANY DAMAGES WHATSOEVER RESULTING FROM THE USE OF THIS SOFTWARE.
   17  * 
   18  * Carnegie Mellon requests users of this software to return to
   19  * 
   20  *  Software Distribution Coordinator  or  Software.Distribution@CS.CMU.EDU
   21  *  School of Computer Science
   22  *  Carnegie Mellon University
   23  *  Pittsburgh PA 15213-3890
   24  * 
   25  * any improvements or extensions that they make and grant Carnegie Mellon 
   26  * the rights to redistribute these changes.
   27  */
   28 
   29 /*
   30  * HISTORY
   31  * $Log:        clock.h,v $
   32  * Revision 2.3  91/07/31  18:00:31  dbg
   33  *      Changed copyright.
   34  *      [91/07/31            dbg]
   35  * 
   36  * Revision 2.2  91/05/08  12:55:15  dbg
   37  *      Added, from Sequent SYMMETRY sources.
   38  *      [91/02/26            dbg]
   39  * 
   40  */
   41 
   42 /*
   43  * $Header: clock.h,v 2.3 91/07/31 18:00:31 dbg Exp $
   44  */
   45 
   46 /*
   47  * Revision 1.1  89/07/19  14:48:53  kak
   48  * Initial revision
   49  * 
   50  */
   51 
   52 #ifndef _SQT_CLOCK_H_
   53 #define _SQT_CLOCK_H_
   54 
   55 #define HZ      100
   56 
   57 #define TODFREQ         1000 / HZ                       /* 10 milliseconds */
   58 #define SECDAY          ((unsigned)(24*60*60))          /* seconds per day */
   59 #define SECYR           ((unsigned)(365*SECDAY))        /* per common year */
   60 
   61 #define YRREF           1970
   62 #define LEAPYEAR(year)  ((year)%4==0)   /* good till time becomes negative */
   63 
   64 /*
   65  * Local and tod clock bin and vector.  The vector is defined by SLIC as 0x00.
   66  */
   67 
   68 #define LCLKBIN         7               /* highest priority */
   69 #define LCLKVEC         0x00            /* according to SLIC */
   70 
   71 #define TODCLKBIN       7               /* highest priority */
   72 #define TODCLKVEC       0x01
   73 
   74 
   75 /*
   76  * System clock rate in Mhz
   77  */
   78 
   79 extern unsigned int sys_clock_rate;
   80 
   81 #endif  /* _SQT_CLOCK_H_ */

Cache object: 79fd87a7db079227940f441e9af44ae2


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