diff options
author | 2002-02-17 07:38:06 +0000 | |
---|---|---|
committer | 2002-02-17 07:38:06 +0000 | |
commit | 5b82e3e78026acdced679c3ce7fff3510eb7e1b9 (patch) | |
tree | 4463f6e257c08601774624b14ad8ea24ebe9783c | |
parent | ICANON is a t_lflag, not t_iflag; neelnatu@yahoo.com (diff) | |
download | wireguard-openbsd-5b82e3e78026acdced679c3ce7fff3510eb7e1b9.tar.xz wireguard-openbsd-5b82e3e78026acdced679c3ce7fff3510eb7e1b9.zip |
drivers may not be noisy
-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); |