1: /*
2: * Copyright (c) 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 1.1 (2.10BSD Berkeley) 12/1/86
7: */
8:
9: #define SECDAY ((unsigned)(24*60*60)) /* seconds per day */
10: #define SECYR ((unsigned)(365*SECDAY)) /* per common year */
11:
12: #define LKS ((u_short *)0177546) /* line clock */
13: #define KW11P_CCSR ((u_short *)0172540) /* programmable clock */
14: #define KW11P_CCSB ((u_short *)0172542) /* count set buffer */
15: #define KW11P_CCNT ((u_short *)0172544) /* counter */
16:
17: #define K_RUN 0x01 /* start counter */
18: #define K_10KRATE 0x02 /* 10kHz frequency */
19: #define K_LFRATE 0x04 /* line frequency */
20: #define K_MODE 0x08 /* repeat interrupt */
21: #define K_IENB 0x40 /* interrupt enable */
Defined macros
K_RUN
defined in line
17; used 2 times
LKS
defined in line
12; used 1 times
SECDAY
defined in line
9; used 1 times
SECYR
defined in line
10;
never used
Usage of this include