summaryrefslogtreecommitdiff
path: root/sys/dev/mii/exphy.c
diff options
context:
space:
mode:
authorBrad Smith <brad@cvs.openbsd.org>2005-02-04 23:23:57 +0000
committerBrad Smith <brad@cvs.openbsd.org>2005-02-04 23:23:57 +0000
commit9876048b2decfa2fdd4583a8f8ddb80968589ec1 (patch)
tree8c2d472ec672f3af8281d11d0628b3ef89f6c2a4 /sys/dev/mii/exphy.c
parent11a662bf9f70317285aebb354b229e39b5dbb2c1 (diff)
- attach 3com 3c905C PHY with bmtphy
- use mii_phy_reset() instead of bmtphy_reset() - use mii_phy_match() - sync bmtphyreg.h to NetBSD Tested on a few bce(4), gem(4), xl(4)
Diffstat (limited to 'sys/dev/mii/exphy.c')
-rw-r--r--sys/dev/mii/exphy.c22
1 files changed, 2 insertions, 20 deletions
diff --git a/sys/dev/mii/exphy.c b/sys/dev/mii/exphy.c
index c641b207b65..43eceeec73a 100644
--- a/sys/dev/mii/exphy.c
+++ b/sys/dev/mii/exphy.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: exphy.c,v 1.17 2005/01/28 18:27:55 brad Exp $ */
+/* $OpenBSD: exphy.c,v 1.18 2005/02/04 23:23:56 brad Exp $ */
/* $NetBSD: exphy.c,v 1.23 2000/02/02 23:34:56 thorpej Exp $ */
/*-
@@ -108,11 +108,6 @@ exphymatch(struct device *parent, void *match, void *aux)
{
struct mii_attach_args *ma = aux;
- if (MII_OUI(ma->mii_id1, ma->mii_id2) == MII_OUI_BROADCOM &&
- (MII_MODEL(ma->mii_id2) == MII_MODEL_BROADCOM_3C905B ||
- MII_MODEL(ma->mii_id2) == MII_MODEL_BROADCOM_3C905C))
- return (10);
-
/*
* Since 3com's PHY for some xl adapters is braindead and doesn't
* report the proper OUI/MODEL information, we have this stupid
@@ -135,20 +130,7 @@ exphyattach(struct device *parent, struct device *self, void *aux)
struct mii_attach_args *ma = aux;
struct mii_data *mii = ma->mii_data;
- 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 &&
- MII_MODEL(ma->mii_id2) == MII_MODEL_BROADCOM_3C905B)
- printf(": %s, rev. %d\n", MII_STR_BROADCOM_3C905B,
- MII_REV(ma->mii_id2));
- else if (MII_OUI(ma->mii_id1, ma->mii_id2) == MII_OUI_BROADCOM &&
- MII_MODEL(ma->mii_id2) == MII_MODEL_BROADCOM_3C905C)
- printf(": %s, rev. %d\n", MII_STR_BROADCOM_3C905C,
- MII_REV(ma->mii_id2));
- else
- printf(": unknown phy\n");
+ printf(": 3Com internal media interface\n");
sc->mii_inst = mii->mii_instance;
sc->mii_phy = ma->mii_phyno;