diff options
author | Michael Chan <mchan@broadcom.com> | 2008-11-12 19:02:45 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2008-11-12 19:02:45 -0500 |
commit | 40105c0b0753515711318db87d36c8338dc74490 (patch) | |
tree | fba1e682769648d1856ce1d09f1481c7d2eae170 /drivers/net/bnx2.c | |
parent | d8026d939495c105cf747c0196a8fa738cf2ad20 (diff) |
bnx2: Reorganize timeout constants.
Move all related timeout constants to the same location. BNX2
prefix is also added to make them more consistent.
Signed-off-by: Michael Chan <mchan@broadcom.com>
Signed-off-by: Matt Carlson <mcarlson@broadcom.com>
Signed-off-by: Benjamin Li <benli@broadcom.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/bnx2.c')
-rw-r--r-- | drivers/net/bnx2.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/net/bnx2.c b/drivers/net/bnx2.c index a52ffdc3b40a..84563b0b660e 100644 --- a/drivers/net/bnx2.c +++ b/drivers/net/bnx2.c | |||
@@ -1656,7 +1656,7 @@ bnx2_setup_serdes_phy(struct bnx2 *bp, u8 port) | |||
1656 | * exchanging base pages plus 3 next pages and | 1656 | * exchanging base pages plus 3 next pages and |
1657 | * normally completes in about 120 msec. | 1657 | * normally completes in about 120 msec. |
1658 | */ | 1658 | */ |
1659 | bp->current_interval = SERDES_AN_TIMEOUT; | 1659 | bp->current_interval = BNX2_SERDES_AN_TIMEOUT; |
1660 | bp->serdes_an_pending = 1; | 1660 | bp->serdes_an_pending = 1; |
1661 | mod_timer(&bp->timer, jiffies + bp->current_interval); | 1661 | mod_timer(&bp->timer, jiffies + bp->current_interval); |
1662 | } else { | 1662 | } else { |
@@ -2278,7 +2278,7 @@ bnx2_fw_sync(struct bnx2 *bp, u32 msg_data, int ack, int silent) | |||
2278 | return 0; | 2278 | return 0; |
2279 | 2279 | ||
2280 | /* wait for an acknowledgement. */ | 2280 | /* wait for an acknowledgement. */ |
2281 | for (i = 0; i < (FW_ACK_TIME_OUT_MS / 10); i++) { | 2281 | for (i = 0; i < (BNX2_FW_ACK_TIME_OUT_MS / 10); i++) { |
2282 | msleep(10); | 2282 | msleep(10); |
2283 | 2283 | ||
2284 | val = bnx2_shmem_rd(bp, BNX2_FW_MB); | 2284 | val = bnx2_shmem_rd(bp, BNX2_FW_MB); |
@@ -5705,7 +5705,7 @@ bnx2_5708_serdes_timer(struct bnx2 *bp) | |||
5705 | bnx2_read_phy(bp, bp->mii_bmcr, &bmcr); | 5705 | bnx2_read_phy(bp, bp->mii_bmcr, &bmcr); |
5706 | if (bmcr & BMCR_ANENABLE) { | 5706 | if (bmcr & BMCR_ANENABLE) { |
5707 | bnx2_enable_forced_2g5(bp); | 5707 | bnx2_enable_forced_2g5(bp); |
5708 | bp->current_interval = SERDES_FORCED_TIMEOUT; | 5708 | bp->current_interval = BNX2_SERDES_FORCED_TIMEOUT; |
5709 | } else { | 5709 | } else { |
5710 | bnx2_disable_forced_2g5(bp); | 5710 | bnx2_disable_forced_2g5(bp); |
5711 | bp->serdes_an_pending = 2; | 5711 | bp->serdes_an_pending = 2; |
@@ -6522,7 +6522,7 @@ bnx2_nway_reset(struct net_device *dev) | |||
6522 | 6522 | ||
6523 | spin_lock_bh(&bp->phy_lock); | 6523 | spin_lock_bh(&bp->phy_lock); |
6524 | 6524 | ||
6525 | bp->current_interval = SERDES_AN_TIMEOUT; | 6525 | bp->current_interval = BNX2_SERDES_AN_TIMEOUT; |
6526 | bp->serdes_an_pending = 1; | 6526 | bp->serdes_an_pending = 1; |
6527 | mod_timer(&bp->timer, jiffies + bp->current_interval); | 6527 | mod_timer(&bp->timer, jiffies + bp->current_interval); |
6528 | } | 6528 | } |