summaryrefslogtreecommitdiff
path: root/sys/dev/pci
diff options
context:
space:
mode:
authorJason Wright <jason@cvs.openbsd.org>1998-11-20 02:42:16 +0000
committerJason Wright <jason@cvs.openbsd.org>1998-11-20 02:42:16 +0000
commit835f74e5c5c864bd70d45d2589ed2877625dbd6d (patch)
tree925118d2874fe159930c143fe71d3ef0360d6e59 /sys/dev/pci
parent944e8edd97527165d4fd799a001eeab761673e4d (diff)
MII fixups, should be able to reliably switch modes manually now
Diffstat (limited to 'sys/dev/pci')
-rw-r--r--sys/dev/pci/if_rl.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/sys/dev/pci/if_rl.c b/sys/dev/pci/if_rl.c
index 942f1f82f9b..c28c16fe3a4 100644
--- a/sys/dev/pci/if_rl.c
+++ b/sys/dev/pci/if_rl.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: if_rl.c,v 1.6 1998/11/19 07:01:55 jason Exp $ */
+/* $OpenBSD: if_rl.c,v 1.7 1998/11/20 02:42:15 jason Exp $ */
/*
* Copyright (c) 1997, 1998
@@ -1134,6 +1134,11 @@ static void rl_init(xsc)
CSR_WRITE_1(sc, RL_CFG1, RL_CFG1_DRVLOAD|RL_CFG1_FULLDUPLEX);
+ /*
+ * Set current media.
+ */
+ mii_mediachg(&sc->sc_mii);
+
ifp->if_flags |= IFF_RUNNING;
ifp->if_flags &= ~IFF_OACTIVE;