diff options
author | Ingo Molnar <mingo@elte.hu> | 2008-09-05 12:56:57 -0400 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2008-09-05 12:56:57 -0400 |
commit | 616ad8c44281c0c6711a72b560e01ec335ff27e0 (patch) | |
tree | 0a20453ffedb09db6fb41a0c2208ccc2c7751d3a /drivers/net/bnx2x_link.h | |
parent | 99809963c99e1ed868d9ebeb4a5e7ee1cbe0309f (diff) | |
parent | b380b0d4f7dffcc235c0facefa537d4655619101 (diff) |
Merge branch 'linus' into x86/defconfig
Diffstat (limited to 'drivers/net/bnx2x_link.h')
-rw-r--r-- | drivers/net/bnx2x_link.h | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/drivers/net/bnx2x_link.h b/drivers/net/bnx2x_link.h index 714d37ac95de..86d54a17b411 100644 --- a/drivers/net/bnx2x_link.h +++ b/drivers/net/bnx2x_link.h | |||
@@ -55,14 +55,17 @@ struct link_params { | |||
55 | #define LOOPBACK_BMAC 2 | 55 | #define LOOPBACK_BMAC 2 |
56 | #define LOOPBACK_XGXS_10 3 | 56 | #define LOOPBACK_XGXS_10 3 |
57 | #define LOOPBACK_EXT_PHY 4 | 57 | #define LOOPBACK_EXT_PHY 4 |
58 | #define LOOPBACK_EXT 5 | ||
58 | 59 | ||
59 | u16 req_duplex; | 60 | u16 req_duplex; |
60 | u16 req_flow_ctrl; | 61 | u16 req_flow_ctrl; |
62 | u16 req_fc_auto_adv; /* Should be set to TX / BOTH when | ||
63 | req_flow_ctrl is set to AUTO */ | ||
61 | u16 req_line_speed; /* Also determine AutoNeg */ | 64 | u16 req_line_speed; /* Also determine AutoNeg */ |
62 | 65 | ||
63 | /* Device parameters */ | 66 | /* Device parameters */ |
64 | u8 mac_addr[6]; | 67 | u8 mac_addr[6]; |
65 | u16 mtu; | 68 | |
66 | 69 | ||
67 | 70 | ||
68 | /* shmem parameters */ | 71 | /* shmem parameters */ |
@@ -140,7 +143,7 @@ u8 bnx2x_cl45_write(struct bnx2x *bp, u8 port, u32 ext_phy_type, | |||
140 | u8 phy_addr, u8 devad, u16 reg, u16 val); | 143 | u8 phy_addr, u8 devad, u16 reg, u16 val); |
141 | 144 | ||
142 | /* Reads the link_status from the shmem, | 145 | /* Reads the link_status from the shmem, |
143 | and update the link vars accordinaly */ | 146 | and update the link vars accordingly */ |
144 | void bnx2x_link_status_update(struct link_params *input, | 147 | void bnx2x_link_status_update(struct link_params *input, |
145 | struct link_vars *output); | 148 | struct link_vars *output); |
146 | /* returns string representing the fw_version of the external phy */ | 149 | /* returns string representing the fw_version of the external phy */ |
@@ -149,7 +152,7 @@ u8 bnx2x_get_ext_phy_fw_version(struct link_params *params, u8 driver_loaded, | |||
149 | 152 | ||
150 | /* Set/Unset the led | 153 | /* Set/Unset the led |
151 | Basically, the CLC takes care of the led for the link, but in case one needs | 154 | Basically, the CLC takes care of the led for the link, but in case one needs |
152 | to set/unset the led unnatually, set the "mode" to LED_MODE_OPER to | 155 | to set/unset the led unnaturally, set the "mode" to LED_MODE_OPER to |
153 | blink the led, and LED_MODE_OFF to set the led off.*/ | 156 | blink the led, and LED_MODE_OFF to set the led off.*/ |
154 | u8 bnx2x_set_led(struct bnx2x *bp, u8 port, u8 mode, u32 speed, | 157 | u8 bnx2x_set_led(struct bnx2x *bp, u8 port, u8 mode, u32 speed, |
155 | u16 hw_led_mode, u32 chip_id); | 158 | u16 hw_led_mode, u32 chip_id); |
@@ -164,5 +167,7 @@ u8 bnx2x_flash_download(struct bnx2x *bp, u8 port, u32 ext_phy_config, | |||
164 | otherwise link is down*/ | 167 | otherwise link is down*/ |
165 | u8 bnx2x_test_link(struct link_params *input, struct link_vars *vars); | 168 | u8 bnx2x_test_link(struct link_params *input, struct link_vars *vars); |
166 | 169 | ||
170 | /* One-time initialization for external phy after power up */ | ||
171 | u8 bnx2x_common_init_phy(struct bnx2x *bp, u32 shmem_base); | ||
167 | 172 | ||
168 | #endif /* BNX2X_LINK_H */ | 173 | #endif /* BNX2X_LINK_H */ |