ixgb: Add CX4 PHY type detection and subdevice ID.
authorManasi Deval <manasi.deval@intel.com>
Wed, 16 Aug 2006 20:47:20 +0000 (13:47 -0700)
committerAuke Kok <juke-jan.h.kok@intel.com>
Wed, 16 Aug 2006 20:47:20 +0000 (13:47 -0700)
Signed-off-by: Manasi Deval <manasi.deval@intel.com>
Signed-off-by: Auke Kok <auke-jan.h.kok@intel.com>
drivers/net/ixgb/ixgb_hw.c
drivers/net/ixgb/ixgb_ids.h

index f7fa10e47fa2c8836c5d155ff1001202e1f1bbf2..2b1515574faf1e75744601697e1d0d1dd43c2092 100644 (file)
@@ -236,6 +236,17 @@ ixgb_identify_phy(struct ixgb_hw *hw)
                DEBUGOUT("Identified G6104 optics\n");
                phy_type = ixgb_phy_type_g6104;
                break;
+       case IXGB_DEVICE_ID_82597EX_CX4:
+               DEBUGOUT("Identified CX4\n");
+               xpak_vendor = ixgb_identify_xpak_vendor(hw);
+               if (xpak_vendor == ixgb_xpak_vendor_intel) {
+                       DEBUGOUT("Identified TXN17201 optics\n");
+                       phy_type = ixgb_phy_type_txn17201;
+               } else {
+                       DEBUGOUT("Identified G6005 optics\n");
+                       phy_type = ixgb_phy_type_g6005;
+               }
+               break;
        default:
                DEBUGOUT("Unknown physical layer module\n");
                phy_type = ixgb_phy_type_unknown;
index 40a085f94c7b84b625e5b62d91df8832f8da478f..9fd61189b4b29c73ad71343802fbbce0a4adbecc 100644 (file)
@@ -45,6 +45,7 @@
 
 #define IXGB_DEVICE_ID_82597EX_CX4   0x109E
 #define IXGB_SUBDEVICE_ID_A00C  0xA00C
+#define IXGB_SUBDEVICE_ID_A01C  0xA01C
 
 #endif /* #ifndef _IXGB_IDS_H_ */
 /* End of File */