diff options
author | Stephen Hemminger <shemminger@osdl.org> | 2005-06-27 14:33:08 -0400 |
---|---|---|
committer | Jeff Garzik <jgarzik@pobox.com> | 2005-06-27 18:05:06 -0400 |
commit | b18f2091bc9f93548ea63752278fceaeacedab20 (patch) | |
tree | 6154380f95d261126525fc95eb149ddc8478eeea /drivers/net/skge.c | |
parent | 4707953454677f985289b4e4bcbea41f0cc651c2 (diff) |
[PATCH] skge: remove unused declarations
Get rid of definitions for chip versions and PHY chips that
this driver does not support.
Signed-off-by: Stephen Hemminger <shemminger@osdl.org>
Diffstat (limited to 'drivers/net/skge.c')
-rw-r--r-- | drivers/net/skge.c | 12 |
1 files changed, 2 insertions, 10 deletions
diff --git a/drivers/net/skge.c b/drivers/net/skge.c index 7be569d082b4..8fd7981e95a8 100644 --- a/drivers/net/skge.c +++ b/drivers/net/skge.c | |||
@@ -636,10 +636,6 @@ static void skge_led_on(struct skge_hw *hw, int port) | |||
636 | xm_phy_write(hw, port, PHY_BCOM_P_EXT_CTRL, | 636 | xm_phy_write(hw, port, PHY_BCOM_P_EXT_CTRL, |
637 | PHY_B_PEC_LED_ON); | 637 | PHY_B_PEC_LED_ON); |
638 | break; | 638 | break; |
639 | case SK_PHY_LONE: | ||
640 | xm_phy_write(hw, port, PHY_LONE_LED_CFG, | ||
641 | 0x0800); | ||
642 | break; | ||
643 | default: | 639 | default: |
644 | skge_write8(hw, SK_REG(port, TX_LED_TST), LED_T_ON); | 640 | skge_write8(hw, SK_REG(port, TX_LED_TST), LED_T_ON); |
645 | skge_write32(hw, SK_REG(port, TX_LED_VAL), 100); | 641 | skge_write32(hw, SK_REG(port, TX_LED_VAL), 100); |
@@ -670,10 +666,6 @@ static void skge_led_off(struct skge_hw *hw, int port) | |||
670 | xm_phy_write(hw, port, PHY_BCOM_P_EXT_CTRL, | 666 | xm_phy_write(hw, port, PHY_BCOM_P_EXT_CTRL, |
671 | PHY_B_PEC_LED_OFF); | 667 | PHY_B_PEC_LED_OFF); |
672 | break; | 668 | break; |
673 | case SK_PHY_LONE: | ||
674 | xm_phy_write(hw, port, PHY_LONE_LED_CFG, | ||
675 | PHY_L_LC_LEDT); | ||
676 | break; | ||
677 | default: | 669 | default: |
678 | skge_write32(hw, SK_REG(port, TX_LED_VAL), 0); | 670 | skge_write32(hw, SK_REG(port, TX_LED_VAL), 0); |
679 | skge_write8(hw, SK_REG(port, TX_LED_CTRL), LED_T_OFF); | 671 | skge_write8(hw, SK_REG(port, TX_LED_CTRL), LED_T_OFF); |
@@ -1202,7 +1194,7 @@ static void genesis_mac_init(struct skge_hw *hw, int port) | |||
1202 | case SK_PHY_BCOM: | 1194 | case SK_PHY_BCOM: |
1203 | ctrl1 = PHY_CT_SP1000; | 1195 | ctrl1 = PHY_CT_SP1000; |
1204 | ctrl2 = 0; | 1196 | ctrl2 = 0; |
1205 | ctrl3 = PHY_SEL_TYPE; | 1197 | ctrl3 = PHY_AN_CSMA; |
1206 | ctrl4 = PHY_B_PEC_EN_LTR; | 1198 | ctrl4 = PHY_B_PEC_EN_LTR; |
1207 | ctrl5 = PHY_B_AC_TX_TST; | 1199 | ctrl5 = PHY_B_AC_TX_TST; |
1208 | 1200 | ||
@@ -1624,7 +1616,7 @@ static void yukon_init(struct skge_hw *hw, int port) | |||
1624 | 1616 | ||
1625 | ctrl = 0; | 1617 | ctrl = 0; |
1626 | ct1000 = 0; | 1618 | ct1000 = 0; |
1627 | adv = PHY_SEL_TYPE; | 1619 | adv = PHY_AN_CSMA; |
1628 | 1620 | ||
1629 | if (skge->autoneg == AUTONEG_ENABLE) { | 1621 | if (skge->autoneg == AUTONEG_ENABLE) { |
1630 | if (iscopper(hw)) { | 1622 | if (iscopper(hw)) { |