diff options
author | Ben Hutchings <bhutchings@solarflare.com> | 2009-04-29 04:08:58 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2009-04-29 20:32:33 -0400 |
commit | 6b73e10d2d89f9ce773f9b47d61b195936d059ba (patch) | |
tree | 108a5d6ad55cb795d6afb0e0846c6782f42f5c90 /drivers/net/ixgbe/ixgbe_82599.c | |
parent | 0f07c4ee8c800923ae7918c231532a9256233eed (diff) |
ixgbe: Use generic MDIO definitions and functions
Compile-tested only.
Signed-off-by: Ben Hutchings <bhutchings@solarflare.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ixgbe/ixgbe_82599.c')
-rw-r--r-- | drivers/net/ixgbe/ixgbe_82599.c | 17 |
1 files changed, 8 insertions, 9 deletions
diff --git a/drivers/net/ixgbe/ixgbe_82599.c b/drivers/net/ixgbe/ixgbe_82599.c index 9e824b450416..6038ed14c9f9 100644 --- a/drivers/net/ixgbe/ixgbe_82599.c +++ b/drivers/net/ixgbe/ixgbe_82599.c | |||
@@ -314,14 +314,13 @@ static s32 ixgbe_get_copper_link_capabilities_82599(struct ixgbe_hw *hw, | |||
314 | *speed = 0; | 314 | *speed = 0; |
315 | *autoneg = true; | 315 | *autoneg = true; |
316 | 316 | ||
317 | status = hw->phy.ops.read_reg(hw, IXGBE_MDIO_PHY_SPEED_ABILITY, | 317 | status = hw->phy.ops.read_reg(hw, MDIO_SPEED, MDIO_MMD_PMAPMD, |
318 | IXGBE_MDIO_PMA_PMD_DEV_TYPE, | ||
319 | &speed_ability); | 318 | &speed_ability); |
320 | 319 | ||
321 | if (status == 0) { | 320 | if (status == 0) { |
322 | if (speed_ability & IXGBE_MDIO_PHY_SPEED_10G) | 321 | if (speed_ability & MDIO_SPEED_10G) |
323 | *speed |= IXGBE_LINK_SPEED_10GB_FULL; | 322 | *speed |= IXGBE_LINK_SPEED_10GB_FULL; |
324 | if (speed_ability & IXGBE_MDIO_PHY_SPEED_1G) | 323 | if (speed_ability & MDIO_PMA_SPEED_1000) |
325 | *speed |= IXGBE_LINK_SPEED_1GB_FULL; | 324 | *speed |= IXGBE_LINK_SPEED_1GB_FULL; |
326 | } | 325 | } |
327 | 326 | ||
@@ -1153,13 +1152,13 @@ u32 ixgbe_get_supported_physical_layer_82599(struct ixgbe_hw *hw) | |||
1153 | 1152 | ||
1154 | if (hw->phy.type == ixgbe_phy_tn || | 1153 | if (hw->phy.type == ixgbe_phy_tn || |
1155 | hw->phy.type == ixgbe_phy_cu_unknown) { | 1154 | hw->phy.type == ixgbe_phy_cu_unknown) { |
1156 | hw->phy.ops.read_reg(hw, IXGBE_MDIO_PHY_EXT_ABILITY, | 1155 | hw->phy.ops.read_reg(hw, MDIO_PMA_EXTABLE, MDIO_MMD_PMAPMD, |
1157 | IXGBE_MDIO_PMA_PMD_DEV_TYPE, &ext_ability); | 1156 | &ext_ability); |
1158 | if (ext_ability & IXGBE_MDIO_PHY_10GBASET_ABILITY) | 1157 | if (ext_ability & MDIO_PMA_EXTABLE_10GBT) |
1159 | physical_layer |= IXGBE_PHYSICAL_LAYER_10GBASE_T; | 1158 | physical_layer |= IXGBE_PHYSICAL_LAYER_10GBASE_T; |
1160 | if (ext_ability & IXGBE_MDIO_PHY_1000BASET_ABILITY) | 1159 | if (ext_ability & MDIO_PMA_EXTABLE_1000BT) |
1161 | physical_layer |= IXGBE_PHYSICAL_LAYER_1000BASE_T; | 1160 | physical_layer |= IXGBE_PHYSICAL_LAYER_1000BASE_T; |
1162 | if (ext_ability & IXGBE_MDIO_PHY_100BASETX_ABILITY) | 1161 | if (ext_ability & MDIO_PMA_EXTABLE_100BTX) |
1163 | physical_layer |= IXGBE_PHYSICAL_LAYER_100BASE_TX; | 1162 | physical_layer |= IXGBE_PHYSICAL_LAYER_100BASE_TX; |
1164 | goto out; | 1163 | goto out; |
1165 | } | 1164 | } |