Hi,

Please add model 0x0005 and model 0x0006 to the list of rdcphy(4)
devices. Currently miidevs and driver defines only 0x0003 ("model RDC
R6040 0x0003 R6040 10/100 PHY"). 0x0006 can be found in the newest
Vortex86EX2 SoC, 0x0005 in few other ones (at least EX, DX2, DX3).
Thank you.

potential diff (without regen):

diff --git a/sys/dev/mii/miidevs b/sys/dev/mii/miidevs
index e5a947029cf..4d8a9d87d04 100644
--- a/sys/dev/mii/miidevs
+++ b/sys/dev/mii/miidevs
@@ -288,6 +288,8 @@ model QUALITYSEMI QS6612    0x0000  QS6612 10/100 PHY

 /* RDC Semi. PHYs */
 model RDC R6040                        0x0003  R6040 10/100 PHY
+model RDC R6040_2              0x0005  R6040 10/100 PHY
+model RDC R6040_3              0x0006  R6040 10/100 PHY

 /* Realtek PHYs */
 model xxREALTEK RTL8251                0x0000  RTL8251 PHY
diff --git a/sys/dev/mii/rdcphy.c b/sys/dev/mii/rdcphy.c
index cf7d75d57ef..4ef9258963e 100644
--- a/sys/dev/mii/rdcphy.c
+++ b/sys/dev/mii/rdcphy.c
@@ -102,6 +102,10 @@ const struct mii_phy_funcs rdcphy_funcs = {
 static const struct mii_phydesc rdcphys[] = {
        { MII_OUI_RDC,          MII_MODEL_RDC_R6040,
          MII_STR_RDC_R6040 },
+       { MII_OUI_RDC,          MII_MODEL_RDC_R6040_2,
+         MII_STR_RDC_R6040_2 },
+       { MII_OUI_RDC,          MII_MODEL_RDC_R6040_3,
+         MII_STR_RDC_R6040_3 },
        { 0,                    0,
          NULL },
 };

Regards,
Andrius V

Reply via email to