summaryrefslogtreecommitdiffstats
path: root/sys/i386/isa/if_zp.c
diff options
context:
space:
mode:
authornate <nate@FreeBSD.org>1995-08-16 23:34:28 +0000
committernate <nate@FreeBSD.org>1995-08-16 23:34:28 +0000
commit49de37c88791929bc81b67219fd52e735ac677fb (patch)
treea3a077b0bafa504bf541995d14391aca4f5dd9fd /sys/i386/isa/if_zp.c
parentde358b51395dcaf18a7105b50845833bda2c3c69 (diff)
downloadFreeBSD-src-49de37c88791929bc81b67219fd52e735ac677fb.zip
FreeBSD-src-49de37c88791929bc81b67219fd52e735ac677fb.tar.gz
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)
Diffstat (limited to 'sys/i386/isa/if_zp.c')
-rw-r--r--sys/i386/isa/if_zp.c10
1 files changed, 7 insertions, 3 deletions
diff --git a/sys/i386/isa/if_zp.c b/sys/i386/isa/if_zp.c
index e63024a..6ca4d2b 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)) {
OpenPOWER on IntegriCloud