Hi,
This diff from FreeBSD adds Atheros F1 and F2 phys.
Index: atphy.c
===================================================================
RCS file: /cvs/src/sys/dev/mii/atphy.c,v
retrieving revision 1.4
diff -u -p -r1.4 atphy.c
--- atphy.c 25 Jul 2009 12:23:40 -0000 1.4
+++ atphy.c 21 Jan 2011 06:47:03 -0000
@@ -81,9 +81,13 @@ const struct mii_phy_funcs atphy_funcs =
atphy_service, atphy_status, atphy_reset,
};
-static const struct mii_phydesc etphys[] = {
+static const struct mii_phydesc atphys[] = {
{ MII_OUI_ATHEROS, MII_MODEL_ATHEROS_F1,
MII_STR_ATHEROS_F1 },
+ { MII_OUI_ATHEROS, MII_MODEL_ATHEROS_F1_7,
+ MII_STR_ATHEROS_F1_7 },
+ { MII_OUI_ATHEROS, MII_MODEL_ATHEROS_F2,
+ MII_STR_ATHEROS_F2 },
{ 0, 0,
NULL },
};
@@ -102,7 +106,7 @@ atphy_match(struct device *parent, void
{
struct mii_attach_args *ma = aux;
- if (mii_phy_match(ma, etphys) != NULL)
+ if (mii_phy_match(ma, atphys) != NULL)
return (10);
return (0);
@@ -116,7 +120,7 @@ atphy_attach(struct device *parent, stru
struct mii_data *mii = ma->mii_data;
const struct mii_phydesc *mpd;
- mpd = mii_phy_match(ma, etphys);
+ mpd = mii_phy_match(ma, atphys);
printf(": %s, rev. %d\n", mpd->mpd_name, MII_REV(ma->mii_id2));
sc->mii_inst = mii->mii_instance;
Index: miidevs
===================================================================
RCS file: /cvs/src/sys/dev/mii/miidevs,v
retrieving revision 1.115
diff -u -p -r1.115 miidevs
--- miidevs 15 Jan 2011 04:35:34 -0000 1.115
+++ miidevs 21 Jan 2011 06:47:04 -0000
@@ -120,6 +120,7 @@ model AGERE ET1011 0x0004 ET1011 10/100
/* Atheros PHYs */
model ATHEROS F1 0x0001 F1 10/100/1000 PHY
model ATHEROS F2 0x0002 F2 10/100 PHY
+model ATHEROS F1_7 0x0007 F1 10/100/1000 PHY
/* Altima PHYs */
model xxALTIMA AC_UNKNOWN 0x0001 AC_UNKNOWN 10/100 PHY