Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/sparc64/sparc64 Remove unused <sys/dev/ic/intersil7...



details:   https://anonhg.NetBSD.org/src/rev/afca6f637923
branches:  trunk
changeset: 495343:afca6f637923
user:      pk <pk%NetBSD.org@localhost>
date:      Wed Jul 26 12:39:20 2000 +0000

description:
Remove unused <sys/dev/ic/intersil7170.h>
Remove unused `extern struct idprom idprom'
Pull in <dev/clock_subr.h>

diffstat:

 sys/arch/sparc64/sparc64/clock.c |  16 +++-------------
 1 files changed, 3 insertions(+), 13 deletions(-)

diffs (44 lines):

diff -r 133b044e7834 -r afca6f637923 sys/arch/sparc64/sparc64/clock.c
--- a/sys/arch/sparc64/sparc64/clock.c  Wed Jul 26 12:37:14 2000 +0000
+++ b/sys/arch/sparc64/sparc64/clock.c  Wed Jul 26 12:39:20 2000 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: clock.c,v 1.26 2000/07/19 15:41:53 eeh Exp $ */
+/*     $NetBSD: clock.c,v 1.27 2000/07/26 12:39:20 pk Exp $ */
 
 /*
  * Copyright (c) 1992, 1993
@@ -80,6 +80,8 @@
 #include <machine/eeprom.h>
 #include <machine/cpu.h>
 
+#include <dev/clock_subr.h>
+
 #include <sparc64/sparc64/clockreg.h>
 #include <sparc64/sparc64/intreg.h>
 #include <sparc64/sparc64/timerreg.h>
@@ -102,10 +104,6 @@
 int statmin;                   /* statclock interval - 1/2*variance */
 int timerok;
 
-#include <dev/ic/intersil7170.h>
-
-extern struct idprom idprom;
-
 static long tick_increment;
 
 static struct intrhand level10 = { clockintr };
@@ -686,14 +684,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