diff options
| author | jdolecek <jdolecek@NetBSD.org> | 2005-04-03 10:56:59 +0000 |
|---|---|---|
| committer | jdolecek <jdolecek@NetBSD.org> | 2005-04-03 10:56:59 +0000 |
| commit | fc38d3f3acd4d6bdb869db3d2123ddfe64588f97 (patch) | |
| tree | bb236b4a27e0a229a84f589316e17bff3c9a0d35 /sys/dev/mca | |
| parent | cc3c0f2c9cfdfcfe1089d1589bb22d932b645e92 (diff) | |
Make it possible for attachment to specify that the 16bit access shouldn't
be toggled in WE_MEM_{ENABLE|DISABLE} when receiving or transmitting packets.
Use this to switch the toggle off for MCA cards, since it causes NIC resets
there.
Fixes PR kern/26895 by Dave Barnes.
Diffstat (limited to 'sys/dev/mca')
| -rw-r--r-- | sys/dev/mca/if_we_mca.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/sys/dev/mca/if_we_mca.c b/sys/dev/mca/if_we_mca.c index ab46dede1d0..f1f850c7bd7 100644 --- a/sys/dev/mca/if_we_mca.c +++ b/sys/dev/mca/if_we_mca.c @@ -1,4 +1,4 @@ -/* $NetBSD: if_we_mca.c,v 1.12 2005/02/04 02:10:43 perry Exp $ */ +/* $NetBSD: if_we_mca.c,v 1.13 2005/04/03 10:56:59 jdolecek Exp $ */ /*- * Copyright (c) 1997, 1998, 2001 The NetBSD Foundation, Inc. @@ -60,7 +60,7 @@ */ #include <sys/cdefs.h> -__KERNEL_RCSID(0, "$NetBSD: if_we_mca.c,v 1.12 2005/02/04 02:10:43 perry Exp $"); +__KERNEL_RCSID(0, "$NetBSD: if_we_mca.c,v 1.13 2005/04/03 10:56:59 jdolecek Exp $"); #include <sys/param.h> #include <sys/systm.h> @@ -267,7 +267,8 @@ we_mca_attach(parent, self, aux) } wsc->sc_type = wep->we_type; - wsc->sc_16bitp = 1; /* all cards we support are 16bit */ + /* all cards we support are 16bit native (no need for reset) */ + wsc->sc_flags = WE_16BIT_ENABLE|WE_16BIT_NOTOGGLE; sc->is790 = 0; typestr = wep->we_typestr; |
