Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/dev/ic Avoid stomping on the W0_CONFIG_CTRL register whi...



details:   https://anonhg.NetBSD.org/src/rev/fb3685834540
branches:  trunk
changeset: 485855:fb3685834540
user:      martin <martin%NetBSD.org@localhost>
date:      Sun May 07 14:03:25 2000 +0000

description:
Avoid stomping on the W0_CONFIG_CTRL register which seems not to be
implemented on EISA cards. This makes a 3Com 3C597 Fast Etherlink TX
work for me at last, fixing PR kern/7067.

diffstat:

 sys/dev/ic/elink3.c |  4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diffs (18 lines):

diff -r 814756343377 -r fb3685834540 sys/dev/ic/elink3.c
--- a/sys/dev/ic/elink3.c       Sun May 07 13:57:16 2000 +0000
+++ b/sys/dev/ic/elink3.c       Sun May 07 14:03:25 2000 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: elink3.c,v 1.79 2000/03/30 12:45:30 augustss Exp $     */
+/*     $NetBSD: elink3.c,v 1.80 2000/05/07 14:03:25 martin Exp $       */
 
 /*-
  * Copyright (c) 1998 The NetBSD Foundation, Inc.
@@ -766,7 +766,7 @@
         */
        epstop(sc);
 
-       if (sc->bustype != ELINK_BUS_PCI) {
+       if (sc->bustype != ELINK_BUS_PCI && sc->bustype != ELINK_BUS_EISA) {
                GO_WINDOW(0);
                bus_space_write_2(iot, ioh, ELINK_W0_CONFIG_CTRL, 0);
                bus_space_write_2(iot, ioh, ELINK_W0_CONFIG_CTRL,



Home | Main Index | Thread Index | Old Index