1: /*
   2:  * Copyright (c) 1982, 1986 Regents of the University of California.
   3:  * All rights reserved.  The Berkeley software License Agreement
   4:  * specifies the terms and conditions for redistribution.
   5:  *
   6:  *	@(#)clock.h	7.1 (Berkeley) 6/5/86
   7:  */
   8: 
   9: /*
  10:  * VAX clock registers
  11:  */
  12: 
  13: #define ICCS_RUN    0x00000001
  14: #define ICCS_TRANS  0x00000010
  15: #define ICCS_SS     0x00000020
  16: #define ICCS_IE     0x00000040
  17: #define ICCS_INT    0x00000080
  18: #define ICCS_ERR    0x80000000
  19: 
  20: #define SECDAY      ((unsigned)(24*60*60))      /* seconds per day */
  21: #define SECYR       ((unsigned)(365*SECDAY))    /* per common year */
  22: /*
  23:  * TODRZERO is the what the TODR should contain when the ``year'' begins.
  24:  * The TODR should always contain a number between 0 and SECYR+SECDAY.
  25:  */
  26: #define TODRZERO    ((unsigned)(1<<28))
  27: 
  28: #define YRREF       1970
  29: #define LEAPYEAR(year)  ((year)%4==0)   /* good till time becomes negative */
  30: 
  31: /*
  32:  * Has the time-of-day clock wrapped around?
  33:  */
  34: #define clkwrap()   (((unsigned)mfpr(TODR) - TODRZERO)/100 > SECYR+SECDAY)
  35: 
  36: /*
  37:  * Software clock is software interrupt level 8,
  38:  * implemented as mtpr(SIRR, 0x8) in asm.sed.
  39:  */

Defined macros

ICCS_ERR defined in line 18; used 2 times
ICCS_IE defined in line 16; used 3 times
ICCS_RUN defined in line 13; used 2 times
ICCS_SS defined in line 15; never used
ICCS_TRANS defined in line 14; used 1 times
LEAPYEAR defined in line 29; used 7 times
SECDAY defined in line 20; used 12 times
SECYR defined in line 21; used 8 times
TODRZERO defined in line 26; used 4 times
YRREF defined in line 28; used 2 times
clkwrap defined in line 34; never used

Usage of this include

Last modified: 1986-06-05
Generated: 2016-12-26
Generated by src2html V0.67
page hit count: 771
Valid CSS Valid XHTML 1.0 Strict