ixgbe: Add 82598 support for BX mezzanine devices
authorDon Skidmore <donald.c.skidmore@intel.com>
Sun, 1 Feb 2009 09:18:23 +0000 (01:18 -0800)
committerDavid S. Miller <davem@davemloft.net>
Sun, 1 Feb 2009 09:18:23 +0000 (01:18 -0800)
Add the device ID for BX devices using the 82598 MAC.

Signed-off-by: Don Skidmore <donald.c.skidmore@intel.com>
Signed-off-by: Peter P Waskiewicz Jr <peter.p.waskiewicz.jr@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ixgbe/ixgbe_82598.c
drivers/net/ixgbe/ixgbe_ethtool.c
drivers/net/ixgbe/ixgbe_main.c
drivers/net/ixgbe/ixgbe_type.h

index 6c7ddb96ed04f137d86cbbad2ebd31020b88143b..dffe7f062c8724083ab7803942a37e8fb007b95d 100644 (file)
@@ -214,7 +214,7 @@ static enum ixgbe_media_type ixgbe_get_media_type_82598(struct ixgbe_hw *hw)
        /* Media type for I82598 is based on device ID */
        switch (hw->device_id) {
        case IXGBE_DEV_ID_82598:
-               /* Default device ID is mezzanine card KX/KX4 */
+       case IXGBE_DEV_ID_82598_BX:
                media_type = ixgbe_media_type_backplane;
                break;
        case IXGBE_DEV_ID_82598AF_DUAL_PORT:
@@ -1011,6 +1011,8 @@ static s32 ixgbe_get_supported_physical_layer_82598(struct ixgbe_hw *hw)
                physical_layer = (IXGBE_PHYSICAL_LAYER_10GBASE_KX4 |
                                  IXGBE_PHYSICAL_LAYER_1000BASE_KX);
                break;
+       case IXGBE_DEV_ID_82598_BX:
+               physical_layer = IXGBE_PHYSICAL_LAYER_1000BASE_BX;
        case IXGBE_DEV_ID_82598EB_CX4:
        case IXGBE_DEV_ID_82598_CX4_DUAL_PORT:
                physical_layer = IXGBE_PHYSICAL_LAYER_10GBASE_CX4;
index 444200fa31e7704f6e085b5dfd003248720890b7..69eda891f59b8032f07c72f5c4b25342f0c5e294 100644 (file)
@@ -141,6 +141,14 @@ static int ixgbe_get_settings(struct net_device *netdev,
                                ADVERTISED_FIBRE);
                        ecmd->port = PORT_FIBRE;
                        break;
+               case IXGBE_DEV_ID_82598_BX:
+                       ecmd->supported = (SUPPORTED_1000baseT_Full |
+                                          SUPPORTED_FIBRE);
+                       ecmd->advertising = (ADVERTISED_1000baseT_Full |
+                                            ADVERTISED_FIBRE);
+                       ecmd->port = PORT_FIBRE;
+                       ecmd->autoneg = AUTONEG_DISABLE;
+                       break;
                }
        } else {
                ecmd->supported |= SUPPORTED_FIBRE;
index 88615f69976e2fd931944412c7bc1f4e0119ad26..82afc606c23852e5a355073c69d61c8e21c22425 100644 (file)
@@ -84,6 +84,8 @@ static struct pci_device_id ixgbe_pci_tbl[] = {
         board_82598 },
        {PCI_VDEVICE(INTEL, IXGBE_DEV_ID_82598EB_SFP_LOM),
         board_82598 },
+       {PCI_VDEVICE(INTEL, IXGBE_DEV_ID_82598_BX),
+        board_82598 },
 
        /* required last entry */
        {0, }
index e43f0c7c34121858ff6f3ac7648df3fa942d8bf3..883ff821153da5e14957c5a83de62690065561a9 100644 (file)
@@ -35,6 +35,7 @@
 
 /* Device IDs */
 #define IXGBE_DEV_ID_82598               0x10B6
+#define IXGBE_DEV_ID_82598_BX            0x1508
 #define IXGBE_DEV_ID_82598AF_DUAL_PORT   0x10C6
 #define IXGBE_DEV_ID_82598AF_SINGLE_PORT 0x10C7
 #define IXGBE_DEV_ID_82598EB_SFP_LOM     0x10DB