From owner-freebsd-current Mon Jun 10 12:05:30 1996 Return-Path: owner-current Received: (from root@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id MAA04768 for current-outgoing; Mon, 10 Jun 1996 12:05:30 -0700 (PDT) Received: from rocky.sri.MT.net (rocky.sri.MT.net [204.182.243.10]) by freefall.freebsd.org (8.7.5/8.7.3) with SMTP id MAA04751 for ; Mon, 10 Jun 1996 12:05:23 -0700 (PDT) Received: (from nate@localhost) by rocky.sri.MT.net (8.6.12/8.6.12) id NAA09662; Mon, 10 Jun 1996 13:05:22 -0600 Date: Mon, 10 Jun 1996 13:05:22 -0600 From: Nate Williams Message-Id: <199606101905.NAA09662@rocky.sri.MT.net> To: current@FreeBSD.org Subject: Attention 3C5X9 owners Sender: owner-current@FreeBSD.org X-Loop: FreeBSD.org Precedence: bulk Can you please test out this patch to /sys/i386/isa/if_ep.c to make sure this works? This changes the way the driver selects the different card ports (AUI/BNC), and is needed for the PCCARD support (not included). In order to get the BNC connector working on my 3C589 card, but since it's based on code that was originally for the 3C509 I suspect it should work. I need folks who have AUI connections, and folks who have BNC connections to test this to make sure it works, or even better folks who have both can test it to make sure it works fine with both. Thanks! Nate ----------- Index: if_ep.c =================================================================== RCS file: /home/CVS/src/sys/i386/isa/if_ep.c,v retrieving revision 1.44 diff -c -r1.44 if_ep.c *** if_ep.c 1996/05/24 15:22:36 1.44 --- if_ep.c 1996/06/10 19:02:33 *************** *** 644,651 **** if(ifp->if_flags & IFF_LINK0 && sc->ep_connectors & AUI) { /* nothing */ } else if(ifp->if_flags & IFF_LINK1 && sc->ep_connectors & BNC) { outw(BASE + EP_COMMAND, START_TRANSCEIVER); ! DELAY(1000); } else if(ifp->if_flags & IFF_LINK2 && sc->ep_connectors & UTP) { GO_WINDOW(4); outw(BASE + EP_W4_MEDIA_TYPE, ENABLE_UTP); --- 644,655 ---- if(ifp->if_flags & IFF_LINK0 && sc->ep_connectors & AUI) { /* nothing */ } else if(ifp->if_flags & IFF_LINK1 && sc->ep_connectors & BNC) { + 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); } else if(ifp->if_flags & IFF_LINK2 && sc->ep_connectors & UTP) { GO_WINDOW(4); outw(BASE + EP_W4_MEDIA_TYPE, ENABLE_UTP);