diff options
author | Peter Galbavy <peter@cvs.openbsd.org> | 2001-07-16 16:34:08 +0000 |
---|---|---|
committer | Peter Galbavy <peter@cvs.openbsd.org> | 2001-07-16 16:34:08 +0000 |
commit | 2c6284d8d1197a8f394d41952c3f566b40c142fc (patch) | |
tree | 7b65ef62c0a25142965e8fb10f7aa85794fb1726 /sys/dev | |
parent | cb2bd303dd3691e2e76f5d28f044cb9ecf578eb9 (diff) |
add support for the PHY on a 3c920 / 3c980C found on Tyan Thunder K7
boards. ok'd nate@
Diffstat (limited to 'sys/dev')
-rw-r--r-- | sys/dev/mii/exphy.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/sys/dev/mii/exphy.c b/sys/dev/mii/exphy.c index 990f03ee707..4940de441d6 100644 --- a/sys/dev/mii/exphy.c +++ b/sys/dev/mii/exphy.c @@ -1,4 +1,4 @@ -/* $OpenBSD: exphy.c,v 1.8 2000/08/26 20:04:17 nate Exp $ */ +/* $OpenBSD: exphy.c,v 1.9 2001/07/16 16:34:07 peter Exp $ */ /* $NetBSD: exphy.c,v 1.23 2000/02/02 23:34:56 thorpej Exp $ */ /*- @@ -113,6 +113,8 @@ exphymatch(parent, match, aux) */ if ((MII_OUI(ma->mii_id1, ma->mii_id2) != 0 || MII_MODEL(ma->mii_id2) != 0) && + (MII_OUI(ma->mii_id1, ma->mii_id2) != MII_OUI_3COM || + MII_MODEL(ma->mii_id2) != 0) && (MII_OUI(ma->mii_id1, ma->mii_id2) != MII_OUI_BROADCOM || MII_MODEL(ma->mii_id2) != MII_MODEL_BROADCOM_3C905C)) return (0); @@ -135,7 +137,8 @@ exphyattach(parent, self, aux) struct mii_attach_args *ma = aux; struct mii_data *mii = ma->mii_data; - if (MII_OUI(ma->mii_id1, ma->mii_id2) == 0 && + if ((MII_OUI(ma->mii_id1, ma->mii_id2) == 0 || + MII_OUI(ma->mii_id1, ma->mii_id2) == MII_OUI_3COM) && MII_MODEL(ma->mii_id2) == 0) printf(": 3Com internal media interface\n"); else if (MII_OUI(ma->mii_id1, ma->mii_id2) == MII_OUI_BROADCOM && |