summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFederico G. Schwindt <fgsch@cvs.openbsd.org>2003-02-13 06:02:10 +0000
committerFederico G. Schwindt <fgsch@cvs.openbsd.org>2003-02-13 06:02:10 +0000
commit3fc2ba41cac37a221306974e6145301f8b563733 (patch)
tree912e986b6aab2117fd1407048a756ccc77b8d622
parent946db0b3e6554405981ec89c49a0cd34680d7b86 (diff)
support for 3C905B internal PHY; markus@ ok.
-rw-r--r--sys/dev/mii/exphy.c9
-rw-r--r--sys/dev/mii/miidevs.h6
2 files changed, 11 insertions, 4 deletions
diff --git a/sys/dev/mii/exphy.c b/sys/dev/mii/exphy.c
index 09b1ae3ca12..804c04fb990 100644
--- a/sys/dev/mii/exphy.c
+++ b/sys/dev/mii/exphy.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: exphy.c,v 1.11 2002/03/14 01:26:57 millert Exp $ */
+/* $OpenBSD: exphy.c,v 1.12 2003/02/13 06:02:09 fgsch Exp $ */
/* $NetBSD: exphy.c,v 1.23 2000/02/02 23:34:56 thorpej Exp $ */
/*-
@@ -109,7 +109,8 @@ exphymatch(parent, match, 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_3C905C)
+ (MII_MODEL(ma->mii_id2) == MII_MODEL_BROADCOM_3C905B ||
+ MII_MODEL(ma->mii_id2) == MII_MODEL_BROADCOM_3C905C))
return (10);
/*
@@ -141,6 +142,10 @@ exphyattach(parent, self, aux)
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));
diff --git a/sys/dev/mii/miidevs.h b/sys/dev/mii/miidevs.h
index 3df3df40cd4..1b536a5e9a6 100644
--- a/sys/dev/mii/miidevs.h
+++ b/sys/dev/mii/miidevs.h
@@ -1,10 +1,10 @@
-/* $OpenBSD: miidevs.h,v 1.34 2002/11/20 14:15:35 nate Exp $ */
+/* $OpenBSD: miidevs.h,v 1.35 2003/02/13 06:02:09 fgsch Exp $ */
/*
* THIS FILE AUTOMATICALLY GENERATED. DO NOT EDIT.
*
* generated from:
- * OpenBSD: miidevs,v 1.31 2002/11/20 14:14:21 nate Exp
+ * OpenBSD: miidevs,v 1.32 2003/02/13 05:49:58 fgsch Exp
*/
/* $NetBSD: miidevs,v 1.3 1998/11/05 03:43:43 thorpej Exp $ */
@@ -129,6 +129,8 @@
#define MII_STR_BROADCOM_BCM5401 "BCM5401 1000baseTX PHY"
#define MII_MODEL_BROADCOM_BCM5411 0x0007
#define MII_STR_BROADCOM_BCM5411 "BCM5411 1000baseTX PHY"
+#define MII_MODEL_BROADCOM_3C905B 0x0012
+#define MII_STR_BROADCOM_3C905B "Broadcom 3C905B internal PHY"
#define MII_MODEL_BROADCOM_3C905C 0x0017
#define MII_STR_BROADCOM_3C905C "Broadcom 3C905C internal PHY"
#define MII_MODEL_BROADCOM_BCM5221 0x001e