summaryrefslogtreecommitdiff
path: root/sys/arch/sparc
diff options
context:
space:
mode:
authorJason Wright <jason@cvs.openbsd.org>2000-11-16 16:27:39 +0000
committerJason Wright <jason@cvs.openbsd.org>2000-11-16 16:27:39 +0000
commitd68ad6fd93490fefd7f26996a3a0a616e6f22c89 (patch)
tree99ee7e67713de9d1ab05d2bc6e820749b254faf9 /sys/arch/sparc
parent55b919213d98e93aea5055eb2a6235113c4b9196 (diff)
wait for the MACE to figure out whether it has media or not, and then
clear interrupt status and such before enabling rx and tx.
Diffstat (limited to 'sys/arch/sparc')
-rw-r--r--sys/arch/sparc/dev/qe.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/sys/arch/sparc/dev/qe.c b/sys/arch/sparc/dev/qe.c
index 4962b51f6d6..59f2c1b26a8 100644
--- a/sys/arch/sparc/dev/qe.c
+++ b/sys/arch/sparc/dev/qe.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: qe.c,v 1.10 2000/11/16 15:47:57 jason Exp $ */
+/* $OpenBSD: qe.c,v 1.11 2000/11/16 16:27:38 jason Exp $ */
/*
* Copyright (c) 1998, 2000 Jason L. Wright.
@@ -768,7 +768,11 @@ qeinit(sc)
qe_mcreset(sc);
mr->iac = 0;
- i = mr->mpc; /* cleared on read */
+ DELAY(50000);
+ i = mr->phycc;
+ i = sc->sc_qr->stat;
+ i = cr->stat;
+ i = mr->mpc;
ifp->if_flags |= IFF_RUNNING;
ifp->if_flags &= ~IFF_OACTIVE;