1 /* 2 * Copyright (c) 1988 University of Utah. 3 * Copyright (c) 1992, 1993 4 * The Regents of the University of California. All rights reserved. 5 * 6 * This code is derived from software contributed to Berkeley by 7 * the Systems Programming Group of the University of Utah Computer 8 * Science Department, Ralph Campbell, Sony Corp. and Kazumasa 9 * Utashiro of Software Research Associates, Inc. 10 * 11 * %sccs.include.redist.c% 12 * 13 * from: Utah $Hdr: clockreg.h 1.14 91/01/18$ 14 * 15 * @(#)clockreg.h 8.1 (Berkeley) 06/11/93 16 */ 17 18 #define SECMIN ((unsigned)60) /* seconds per minute */ 19 #define SECHOUR ((unsigned)(60*SECMIN)) /* seconds per hour */ 20 #define SECDAY ((unsigned)(24*SECHOUR)) /* seconds per day */ 21 #define SECYR ((unsigned)(365*SECDAY)) /* seconds per common year */ 22 23 #define YRREF 1970 24 #define LEAPYEAR(year) (((year) % 4) == 0) 25 26 #define MK48T02 27 28 #define SET_CLOCK 0x80 29 #define READ_CLOCK 0x40 30