Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/hpcmips/vr RTC_NO_REG_W unsigned



details:   https://anonhg.NetBSD.org/src/rev/e90bda560ff3
branches:  trunk
changeset: 521957:e90bda560ff3
user:      sato <sato%NetBSD.org@localhost>
date:      Sat Feb 09 14:47:57 2002 +0000

description:
RTC_NO_REG_W unsigned

diffstat:

 sys/arch/hpcmips/vr/rtc.c    |  6 +++---
 sys/arch/hpcmips/vr/rtcreg.h |  4 ++--
 2 files changed, 5 insertions(+), 5 deletions(-)

diffs (45 lines):

diff -r ce6e52ef6101 -r e90bda560ff3 sys/arch/hpcmips/vr/rtc.c
--- a/sys/arch/hpcmips/vr/rtc.c Sat Feb 09 13:56:48 2002 +0000
+++ b/sys/arch/hpcmips/vr/rtc.c Sat Feb 09 14:47:57 2002 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: rtc.c,v 1.12 2002/01/27 14:18:12 takemura Exp $        */
+/*     $NetBSD: rtc.c,v 1.13 2002/02/09 14:47:57 sato Exp $    */
 
 /*-
  * Copyright (c) 1999 Shin Takemura. All rights reserved.
@@ -161,7 +161,7 @@
        bus_space_write_2(sc->sc_iot, sc->sc_ioh, RTCL2_H_REG_W, 0);
        bus_space_write_2(sc->sc_iot, sc->sc_ioh, RTCL2_L_REG_W, 0);
        /* Disable RTC TCLK intr */
-       if (TCLK_H_REG_W != RTC_NOREG_W) {
+       if (TCLK_H_REG_W != RTC_NO_REG_W) {
                bus_space_write_2(sc->sc_iot, sc->sc_ioh, TCLK_H_REG_W, 0);
                bus_space_write_2(sc->sc_iot, sc->sc_ioh, TCLK_L_REG_W, 0);
        }
@@ -393,7 +393,7 @@
        timel = bus_space_read_2(sc->sc_iot, sc->sc_ioh, RTCL2_CNT_L_REG_W);
        printf("clock_init()  LONG2 CNTL %04x%04x\n", timeh, timel);
 
-       if (TCLK_H_REG_W != RTC_NOREG_W) {
+       if (TCLK_H_REG_W != RTC_NO_REG_W) {
                timeh = bus_space_read_2(sc->sc_iot, sc->sc_ioh, TCLK_H_REG_W);
                timel = bus_space_read_2(sc->sc_iot, sc->sc_ioh, TCLK_L_REG_W);
                printf("clock_init()  TCLK %04x%04x\n", timeh, timel);
diff -r ce6e52ef6101 -r e90bda560ff3 sys/arch/hpcmips/vr/rtcreg.h
--- a/sys/arch/hpcmips/vr/rtcreg.h      Sat Feb 09 13:56:48 2002 +0000
+++ b/sys/arch/hpcmips/vr/rtcreg.h      Sat Feb 09 14:47:57 2002 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: rtcreg.h,v 1.6 2001/12/24 01:22:50 shin Exp $  */
+/*     $NetBSD: rtcreg.h,v 1.7 2002/02/09 14:47:57 sato Exp $  */
 
 /*-
  * Copyright (c) 1999 Shin Takemura. All rights reserved.
@@ -67,7 +67,7 @@
  *             start 0x0F000100 (Vr4122-4131)
  *             start 0x0B0000C0 (Vr4181)
  */
-#define RTC_NOREG_W            -1
+#define RTC_NO_REG_W           0xffffffff
 
 #define ETIME_L_REG_W          0x000   /* Elapsed Time L */
 #define ETIME_M_REG_W          0x002   /* Elapsed Time M */



Home | Main Index | Thread Index | Old Index