summaryrefslogtreecommitdiff
path: root/sys/dev/mii
diff options
context:
space:
mode:
authorHenning Brauer <henning@cvs.openbsd.org>2002-10-20 16:46:29 +0000
committerHenning Brauer <henning@cvs.openbsd.org>2002-10-20 16:46:29 +0000
commitdccdd51b88c74c7a74272545ae72bd99f77406ce (patch)
tree9e5af00ffa4c9aeb6a0214ca5192308d30113cb2 /sys/dev/mii
parent11abdfebcfbd965d8eaf56da7e752c9e213f702f (diff)
add support for intel 21145
This chip is some strange abnormal 21143 variant. It really only works with 10 MBit/s halfduplex only and autonegotiation is totally broken in hardware. Should also have a HomePNA phy, but we don't support that. for now requires and explicit "media 10BaseT". if anybody has such a chip please mail me. nick@ is the only one who has the hardware and did an incredible amount of testing. Thanks for all the help, Nick! some hints and ok jason@
Diffstat (limited to 'sys/dev/mii')
-rw-r--r--sys/dev/mii/dcphy.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/sys/dev/mii/dcphy.c b/sys/dev/mii/dcphy.c
index 10916328794..e99bb8a1174 100644
--- a/sys/dev/mii/dcphy.c
+++ b/sys/dev/mii/dcphy.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: dcphy.c,v 1.7 2002/05/04 11:30:06 fgsch Exp $ */
+/* $OpenBSD: dcphy.c,v 1.8 2002/10/20 16:46:28 henning Exp $ */
/*
* Copyright (c) 1997, 1998, 1999
@@ -168,6 +168,9 @@ dcphy_attach(parent, self, aux)
break;
}
+ if (dc_sc->dc_type == DC_TYPE_21145)
+ sc->mii_capabilities = BMSR_10THDX;
+
sc->mii_capabilities &= ma->mii_capmask;
if (sc->mii_capabilities & BMSR_MEDIAMASK)
mii_phy_add_media(sc);