From a16b708542875ee84fe25e333311c9ece27e9bf0 Mon Sep 17 00:00:00 2001 From: Nate Williams Date: Wed, 16 Aug 1995 23:34:28 +0000 Subject: [PATCH] Fix the 3C589 driver to work with the BNC connector. Note, I tested this on a NEC Versa, IBM 750C, and a IBM 755CX w/out problems. The card still works fine in TP mode. Submitted by: schwarz@alpharel.com (Steve Schwarz) Reviewed by: jleppek@suw2k.ess.harris.com (James Leppek) --- sys/i386/isa/if_zp.c | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/sys/i386/isa/if_zp.c b/sys/i386/isa/if_zp.c index e63024a5d37a..6ca4d2b6cb3b 100644 --- a/sys/i386/isa/if_zp.c +++ b/sys/i386/isa/if_zp.c @@ -34,7 +34,7 @@ * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. * * From: if_ep.c,v 1.9 1994/01/25 10:46:29 deraadt Exp $ - * $Id: if_zp.c,v 1.6 1995/05/30 08:02:31 rgrimes Exp $ + * $Id: if_zp.c,v 1.7 1995/07/25 22:18:56 bde Exp $ */ /*- * TODO: @@ -1071,8 +1071,12 @@ zpinit(unit) #ifdef ZP_DEBUG printf("START TRANCEIVER"); #endif /* ZP_DEBUG */ - outw(BASE + EP_COMMAND, START_TRANSCEIVER); - DELAY(1000); + GO_WINDOW(0); + /* set the xcvr */ + outw(BASE + EP_W0_ADDRESS_CFG, 3 << 14); + GO_WINDOW(2); + outw(BASE + EP_COMMAND, START_TRANSCEIVER); + GO_WINDOW(1); } #if defined(__NetBSD__) || defined(__FreeBSD__) if ((ifp->if_flags & IFF_LINK0) && (sc->ep_connectors & UTP)) {