RTC_NO_REG_W unsigned
This commit is contained in:
parent
811d644d8f
commit
f13492fb26
|
@ -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 @@ vrrtc_attach(struct device *parent, struct device *self, void *aux)
|
|||
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 @@ vrrtc_dump_regs(struct vrrtc_softc *sc)
|
|||
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);
|
||||
|
|
|
@ -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 */
|
||||
|
|
Loading…
Reference in New Issue