Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/arch/sparc/sparc Pull in <dev/clock_subr.h>.



details:   https://anonhg.NetBSD.org/src/rev/68130e362221
branches:  trunk
changeset: 495325:68130e362221
user:      pk <pk%NetBSD.org@localhost>
date:      Wed Jul 26 11:28:36 2000 +0000

description:
Pull in <dev/clock_subr.h>.

diffstat:

 sys/arch/sparc/sparc/clock.c |  12 +++---------
 1 files changed, 3 insertions(+), 9 deletions(-)

diffs (33 lines):

diff -r 4cd28b3611a4 -r 68130e362221 sys/arch/sparc/sparc/clock.c
--- a/sys/arch/sparc/sparc/clock.c      Wed Jul 26 11:07:45 2000 +0000
+++ b/sys/arch/sparc/sparc/clock.c      Wed Jul 26 11:28:36 2000 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: clock.c,v 1.72 2000/06/29 07:40:09 mrg Exp $ */
+/*     $NetBSD: clock.c,v 1.73 2000/07/26 11:28:36 pk Exp $ */
 
 /*
  * Copyright (c) 1992, 1993
@@ -77,6 +77,8 @@
 #include <machine/eeprom.h>
 #include <machine/cpu.h>
 
+#include <dev/clock_subr.h>
+
 #include <sparc/sparc/vaddrs.h>
 #include <sparc/sparc/cpuvar.h>
 #include <sparc/sparc/clockreg.h>
@@ -1030,14 +1032,6 @@
 }
 
 /*
- * BCD to decimal and decimal to BCD.
- */
-#define        FROMBCD(x)      (((x) >> 4) * 10 + ((x) & 0xf))
-#define        TOBCD(x)        (((x) / 10 * 16) + ((x) % 10))
-
-#define        SECDAY          (24 * 60 * 60)
-#define        SECYR           (SECDAY * 365)
-/*
  * should use something like
  * #define LEAPYEAR(y) ((((y) % 4) == 0 && ((y) % 100) != 0) || ((y) % 400) == 0)
  * but it's unlikely that we'll still be around in 2100.



Home | Main Index | Thread Index | Old Index