ixgbe: add driver support for x520 OCP adapter.
authorDon Skidmore <donald.c.skidmore@intel.com>
Fri, 5 Apr 2013 05:49:34 +0000 (05:49 +0000)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Thu, 25 Apr 2013 00:35:12 +0000 (17:35 -0700)
This patch adds support for the new OCP x520 adapter.  This support
includes WoL.

Signed-off-by: Don Skidmore <donald.c.skidmore@intel.com>
Tested-by: Phil Schmitt <phillip.j.schmitt@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
drivers/net/ethernet/intel/ixgbe/ixgbe_main.c
drivers/net/ethernet/intel/ixgbe/ixgbe_type.h

index 9afc959c1499891dffaa40dd19b56885e490ffbf..783efbb1f7c3f31cd4545b2d020e7fa04ec15c6a 100644 (file)
@@ -7216,6 +7216,14 @@ int ixgbe_wol_supported(struct ixgbe_adapter *adapter, u16 device_id,
                        break;
                }
                break;
+       case IXGBE_DEV_ID_82599EN_SFP:
+               /* Only this subdevice supports WOL */
+               switch (subdevice_id) {
+               case IXGBE_SUBDEV_ID_82599EN_SFP_OCP1:
+                       is_wol_supported = 1;
+                       break;
+               }
+               break;
        case IXGBE_DEV_ID_82599_COMBO_BACKPLANE:
                /* All except this subdevice support WOL */
                if (subdevice_id != IXGBE_SUBDEV_ID_82599_KX4_KR_MEZZ)
index 402f1a2ada3ee4d15b02c1716a1ef581b4a75f69..2661dcf98ee0f22a8d37e26dacf4da193e996fe9 100644 (file)
@@ -61,6 +61,7 @@
 #define IXGBE_DEV_ID_82599_SFP_EM        0x1507
 #define IXGBE_DEV_ID_82599_SFP_SF2       0x154D
 #define IXGBE_DEV_ID_82599EN_SFP         0x1557
+#define IXGBE_SUBDEV_ID_82599EN_SFP_OCP1 0x0001
 #define IXGBE_DEV_ID_82599_XAUI_LOM      0x10FC
 #define IXGBE_DEV_ID_82599_COMBO_BACKPLANE 0x10F8
 #define IXGBE_SUBDEV_ID_82599_KX4_KR_MEZZ  0x000C