diff options
author | Yaniv Rosner <yaniv.rosner@broadcom.com> | 2010-09-07 07:41:04 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2010-09-07 16:15:30 -0400 |
commit | d90d96baf0cc044bcdedc9ee9e925b5937865673 (patch) | |
tree | 7d0861e20126ac481be80454ae33521aaed9f81d /drivers/net/bnx2x/bnx2x_link.h | |
parent | 7aa0711f32bf911add9e2ced165f8006864f973e (diff) |
bnx2x: Move common function into aggregated function
Move all PHY specific logic from bnx2x_main into bnx2x_link.
Signed-off-by: Yaniv Rosner <yanivr@broadcom.com>
Signed-off-by: Eilon Greenstein <eilong@broadcom.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/bnx2x/bnx2x_link.h')
-rw-r--r-- | drivers/net/bnx2x/bnx2x_link.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/drivers/net/bnx2x/bnx2x_link.h b/drivers/net/bnx2x/bnx2x_link.h index 9717cb1fbad0..d663c4f3c265 100644 --- a/drivers/net/bnx2x/bnx2x_link.h +++ b/drivers/net/bnx2x/bnx2x_link.h | |||
@@ -311,8 +311,16 @@ void bnx2x_sfx7101_sp_sw_reset(struct bnx2x *bp, struct bnx2x_phy *phy); | |||
311 | u8 bnx2x_read_sfp_module_eeprom(struct bnx2x_phy *phy, | 311 | u8 bnx2x_read_sfp_module_eeprom(struct bnx2x_phy *phy, |
312 | struct link_params *params, u16 addr, | 312 | struct link_params *params, u16 addr, |
313 | u8 byte_cnt, u8 *o_buf); | 313 | u8 byte_cnt, u8 *o_buf); |
314 | |||
315 | void bnx2x_hw_reset_phy(struct link_params *params); | ||
316 | |||
317 | /* Checks if HW lock is required for this phy/board type */ | ||
318 | u8 bnx2x_hw_lock_required(struct bnx2x *bp, u32 shmem_base); | ||
314 | /* Returns the aggregative supported attributes of the phys on board */ | 319 | /* Returns the aggregative supported attributes of the phys on board */ |
315 | u32 bnx2x_supported_attr(struct link_params *params, u8 phy_idx); | 320 | u32 bnx2x_supported_attr(struct link_params *params, u8 phy_idx); |
316 | /* Probe the phys on board, and populate them in "params" */ | 321 | /* Probe the phys on board, and populate them in "params" */ |
317 | u8 bnx2x_phy_probe(struct link_params *params); | 322 | u8 bnx2x_phy_probe(struct link_params *params); |
323 | /* Checks if fan failure detection is required on one of the phys on board */ | ||
324 | u8 bnx2x_fan_failure_det_req(struct bnx2x *bp, u32 shmem_base, u8 port); | ||
325 | |||
318 | #endif /* BNX2X_LINK_H */ | 326 | #endif /* BNX2X_LINK_H */ |