diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 2002-02-17 07:38:07 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 2002-02-17 07:38:07 +0000 |
commit | 2e235cfb60464354c962ce59ccad3ad1b681a09b (patch) | |
tree | d7c64f2a3eebe4a93c81394a699c7d4a21cb7470 /sys/dev/ic/dc.c | |
parent | acba73bd3dae9118c29f2c6dd629538121a3083c (diff) |
drivers may not be noisy
Diffstat (limited to 'sys/dev/ic/dc.c')
-rw-r--r-- | sys/dev/ic/dc.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/sys/dev/ic/dc.c b/sys/dev/ic/dc.c index 036d3ccde75..f927b0506ab 100644 --- a/sys/dev/ic/dc.c +++ b/sys/dev/ic/dc.c @@ -1,4 +1,4 @@ -/* $OpenBSD: dc.c,v 1.45 2002/02/15 20:45:31 nordin Exp $ */ +/* $OpenBSD: dc.c,v 1.46 2002/02/17 07:38:06 deraadt Exp $ */ /* * Copyright (c) 1997, 1998, 1999 @@ -2461,19 +2461,25 @@ int dc_intr(arg) if (status & DC_ISR_TX_UNDERRUN) { u_int32_t cfg; +#if 0 printf("dc%d: TX underrun -- ", sc->dc_unit); +#endif if (DC_IS_DAVICOM(sc) || DC_IS_INTEL(sc)) dc_init(sc); cfg = CSR_READ_4(sc, DC_NETCFG); cfg &= ~DC_NETCFG_TX_THRESH; if (sc->dc_txthresh == DC_TXTHRESH_160BYTES) { +#if 0 printf("using store and forward mode\n"); +#endif DC_SETBIT(sc, DC_NETCFG, DC_NETCFG_STORENFWD); } else if (sc->dc_flags & DC_TX_STORENFWD) { printf("resetting\n"); } else { sc->dc_txthresh += 0x4000; +#if 0 printf("increasing TX threshold\n"); +#endif CSR_WRITE_4(sc, DC_NETCFG, cfg); DC_SETBIT(sc, DC_NETCFG, sc->dc_txthresh); DC_CLRBIT(sc, DC_NETCFG, DC_NETCFG_STORENFWD); |