diff options
| author | dyoung <dyoung@NetBSD.org> | 2004-01-10 07:41:18 +0000 |
|---|---|---|
| committer | dyoung <dyoung@NetBSD.org> | 2004-01-10 07:41:18 +0000 |
| commit | 005d4641ca67a56329ab21d52ff4f7ffd4408161 (patch) | |
| tree | cb5080c6126d21d90d42fd2ba9566708ef4d61eb /sys/dev | |
| parent | d9cff0a9f6177e7392f29e519dd9128a659566b7 (diff) | |
Report received-early interrupt with a debug printf.
Print the Serial EEPROM and the MAC address it contains when
atw_debug > 0, because atw_debug > 1 is a little too strict.
Diffstat (limited to 'sys/dev')
| -rw-r--r-- | sys/dev/ic/atw.c | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/sys/dev/ic/atw.c b/sys/dev/ic/atw.c index 6a471fdd0e6..ed265d05151 100644 --- a/sys/dev/ic/atw.c +++ b/sys/dev/ic/atw.c @@ -1,4 +1,4 @@ -/* $NetBSD: atw.c,v 1.14 2004/01/10 07:03:28 dyoung Exp $ */ +/* $NetBSD: atw.c,v 1.15 2004/01/10 07:41:18 dyoung Exp $ */ /*- * Copyright (c) 1998, 1999, 2000, 2002, 2003, 2004 The NetBSD Foundation, Inc. @@ -41,7 +41,7 @@ */ #include <sys/cdefs.h> -__KERNEL_RCSID(0, "$NetBSD: atw.c,v 1.14 2004/01/10 07:03:28 dyoung Exp $"); +__KERNEL_RCSID(0, "$NetBSD: atw.c,v 1.15 2004/01/10 07:41:18 dyoung Exp $"); #include "bpfilter.h" @@ -393,14 +393,14 @@ atw_read_srom(struct atw_softc *sc) #ifdef ATW_DEBUG { int i; - ATW_DPRINTF2(("\nSerial EEPROM:\n\t")); + ATW_DPRINTF(("\nSerial EEPROM:\n\t")); for (i = 0; i < sc->sc_sromsz/2; i = i + 1) { if (((i % 8) == 0) && (i != 0)) { - ATW_DPRINTF2(("\n\t")); + ATW_DPRINTF(("\n\t")); } - ATW_DPRINTF2((" 0x%x", sc->sc_srom[i])); + ATW_DPRINTF((" 0x%x", sc->sc_srom[i])); } - ATW_DPRINTF2(("\n")); + ATW_DPRINTF(("\n")); } #endif /* ATW_DEBUG */ return 0; @@ -646,7 +646,7 @@ atw_attach(struct atw_softc *sc) */ sc->sc_flags |= ATWF_ATTACHED /* | ATWF_RTSCTS */; - ATW_DPRINTF2((" SROM MAC %04x%04x%04x", + ATW_DPRINTF((" SROM MAC %04x%04x%04x", htole16(sc->sc_srom[ATW_SR_MAC00]), htole16(sc->sc_srom[ATW_SR_MAC01]), htole16(sc->sc_srom[ATW_SR_MAC10]))); @@ -2719,6 +2719,7 @@ atw_intr(arg) PRINTINTR(ATW_INTR_LINKON); PRINTINTR(ATW_INTR_RCI); PRINTINTR(ATW_INTR_RDU); + PRINTINTR(ATW_INTR_REIS); PRINTINTR(ATW_INTR_RPS); PRINTINTR(ATW_INTR_TCI); PRINTINTR(ATW_INTR_TDU); |
