diff options
author | Dmitry Kravkov <dmitry@broadcom.com> | 2011-05-04 19:52:40 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2011-05-05 13:44:36 -0400 |
commit | e8920674979705392abc4db4ebbe78feb68a4da1 (patch) | |
tree | 338d02748999d14b8c9a9a412bba5f22ded7c516 | |
parent | 5de924086aca9f17eee9ad569e0af2f699f591b3 (diff) |
bnx2x: function descriptions format fixed
Signed-off-by: Dmitry Kravkov <dmitry@broadcom.com>
Signed-off-by: Eilon Greenstein <eilong@broadcom.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
-rw-r--r-- | drivers/net/bnx2x/bnx2x_cmn.c | 45 | ||||
-rw-r--r-- | drivers/net/bnx2x/bnx2x_cmn.h | 305 | ||||
-rw-r--r-- | drivers/net/bnx2x/bnx2x_dcb.c | 26 | ||||
-rw-r--r-- | drivers/net/bnx2x/bnx2x_dcb.h | 6 | ||||
-rw-r--r-- | drivers/net/bnx2x/bnx2x_link.c | 14 | ||||
-rw-r--r-- | drivers/net/bnx2x/bnx2x_main.c | 64 |
6 files changed, 194 insertions, 266 deletions
diff --git a/drivers/net/bnx2x/bnx2x_cmn.c b/drivers/net/bnx2x/bnx2x_cmn.c index 269d6d1e0d2f..6ee6601b5176 100644 --- a/drivers/net/bnx2x/bnx2x_cmn.c +++ b/drivers/net/bnx2x/bnx2x_cmn.c | |||
@@ -308,13 +308,15 @@ static void bnx2x_tpa_start(struct bnx2x_fastpath *fp, u16 queue, | |||
308 | */ | 308 | */ |
309 | #define TPA_TSTAMP_OPT_LEN 12 | 309 | #define TPA_TSTAMP_OPT_LEN 12 |
310 | /** | 310 | /** |
311 | * Calculate the approximate value of the MSS for this | 311 | * bnx2x_set_lro_mss - calculate the approximate value of the MSS |
312 | * aggregation using the first packet of it. | ||
313 | * | 312 | * |
314 | * @param bp | 313 | * @bp: driver handle |
315 | * @param parsing_flags Parsing flags from the START CQE | 314 | * @parsing_flags: parsing flags from the START CQE |
316 | * @param len_on_bd Total length of the first packet for the | 315 | * @len_on_bd: total length of the first packet for the |
317 | * aggregation. | 316 | * aggregation. |
317 | * | ||
318 | * Approximate value of the MSS for this aggregation calculated using | ||
319 | * the first packet of it. | ||
318 | */ | 320 | */ |
319 | static inline u16 bnx2x_set_lro_mss(struct bnx2x *bp, u16 parsing_flags, | 321 | static inline u16 bnx2x_set_lro_mss(struct bnx2x *bp, u16 parsing_flags, |
320 | u16 len_on_bd) | 322 | u16 len_on_bd) |
@@ -2083,12 +2085,11 @@ static inline void bnx2x_set_pbd_gso_e2(struct sk_buff *skb, u32 *parsing_data, | |||
2083 | } | 2085 | } |
2084 | 2086 | ||
2085 | /** | 2087 | /** |
2086 | * Update PBD in GSO case. | 2088 | * bnx2x_set_pbd_gso - update PBD in GSO case. |
2087 | * | 2089 | * |
2088 | * @param skb | 2090 | * @skb: packet skb |
2089 | * @param tx_start_bd | 2091 | * @pbd: parse BD |
2090 | * @param pbd | 2092 | * @xmit_type: xmit flags |
2091 | * @param xmit_type | ||
2092 | */ | 2093 | */ |
2093 | static inline void bnx2x_set_pbd_gso(struct sk_buff *skb, | 2094 | static inline void bnx2x_set_pbd_gso(struct sk_buff *skb, |
2094 | struct eth_tx_parse_bd_e1x *pbd, | 2095 | struct eth_tx_parse_bd_e1x *pbd, |
@@ -2115,13 +2116,14 @@ static inline void bnx2x_set_pbd_gso(struct sk_buff *skb, | |||
2115 | } | 2116 | } |
2116 | 2117 | ||
2117 | /** | 2118 | /** |
2119 | * bnx2x_set_pbd_csum_e2 - update PBD with checksum and return header length | ||
2118 | * | 2120 | * |
2119 | * @param skb | 2121 | * @bp: driver handle |
2120 | * @param tx_start_bd | 2122 | * @skb: packet skb |
2121 | * @param pbd_e2 | 2123 | * @parsing_data: data to be updated |
2122 | * @param xmit_type | 2124 | * @xmit_type: xmit flags |
2123 | * | 2125 | * |
2124 | * @return header len | 2126 | * 57712 related |
2125 | */ | 2127 | */ |
2126 | static inline u8 bnx2x_set_pbd_csum_e2(struct bnx2x *bp, struct sk_buff *skb, | 2128 | static inline u8 bnx2x_set_pbd_csum_e2(struct bnx2x *bp, struct sk_buff *skb, |
2127 | u32 *parsing_data, u32 xmit_type) | 2129 | u32 *parsing_data, u32 xmit_type) |
@@ -2146,13 +2148,12 @@ static inline u8 bnx2x_set_pbd_csum_e2(struct bnx2x *bp, struct sk_buff *skb, | |||
2146 | } | 2148 | } |
2147 | 2149 | ||
2148 | /** | 2150 | /** |
2151 | * bnx2x_set_pbd_csum - update PBD with checksum and return header length | ||
2149 | * | 2152 | * |
2150 | * @param skb | 2153 | * @bp: driver handle |
2151 | * @param tx_start_bd | 2154 | * @skb: packet skb |
2152 | * @param pbd | 2155 | * @pbd: parse BD to be updated |
2153 | * @param xmit_type | 2156 | * @xmit_type: xmit flags |
2154 | * | ||
2155 | * @return Header length | ||
2156 | */ | 2157 | */ |
2157 | static inline u8 bnx2x_set_pbd_csum(struct bnx2x *bp, struct sk_buff *skb, | 2158 | static inline u8 bnx2x_set_pbd_csum(struct bnx2x *bp, struct sk_buff *skb, |
2158 | struct eth_tx_parse_bd_e1x *pbd, | 2159 | struct eth_tx_parse_bd_e1x *pbd, |
diff --git a/drivers/net/bnx2x/bnx2x_cmn.h b/drivers/net/bnx2x/bnx2x_cmn.h index 72f206e49911..fab161e8030d 100644 --- a/drivers/net/bnx2x/bnx2x_cmn.h +++ b/drivers/net/bnx2x/bnx2x_cmn.h | |||
@@ -63,43 +63,41 @@ extern int num_queues; | |||
63 | */ | 63 | */ |
64 | 64 | ||
65 | /** | 65 | /** |
66 | * Initialize link parameters structure variables. | 66 | * bnx2x_initial_phy_init - initialize link parameters structure variables. |
67 | * | 67 | * |
68 | * @param bp | 68 | * @bp: driver handle |
69 | * @param load_mode | 69 | * @load_mode: current mode |
70 | * | ||
71 | * @return u8 | ||
72 | */ | 70 | */ |
73 | u8 bnx2x_initial_phy_init(struct bnx2x *bp, int load_mode); | 71 | u8 bnx2x_initial_phy_init(struct bnx2x *bp, int load_mode); |
74 | 72 | ||
75 | /** | 73 | /** |
76 | * Configure hw according to link parameters structure. | 74 | * bnx2x_link_set - configure hw according to link parameters structure. |
77 | * | 75 | * |
78 | * @param bp | 76 | * @bp: driver handle |
79 | */ | 77 | */ |
80 | void bnx2x_link_set(struct bnx2x *bp); | 78 | void bnx2x_link_set(struct bnx2x *bp); |
81 | 79 | ||
82 | /** | 80 | /** |
83 | * Query link status | 81 | * bnx2x_link_test - query link status. |
84 | * | 82 | * |
85 | * @param bp | 83 | * @bp: driver handle |
86 | * @param is_serdes | 84 | * @is_serdes: bool |
87 | * | 85 | * |
88 | * @return 0 - link is UP | 86 | * Returns 0 if link is UP. |
89 | */ | 87 | */ |
90 | u8 bnx2x_link_test(struct bnx2x *bp, u8 is_serdes); | 88 | u8 bnx2x_link_test(struct bnx2x *bp, u8 is_serdes); |
91 | 89 | ||
92 | /** | 90 | /** |
93 | * Handles link status change | 91 | * bnx2x__link_status_update - handles link status change. |
94 | * | 92 | * |
95 | * @param bp | 93 | * @bp: driver handle |
96 | */ | 94 | */ |
97 | void bnx2x__link_status_update(struct bnx2x *bp); | 95 | void bnx2x__link_status_update(struct bnx2x *bp); |
98 | 96 | ||
99 | /** | 97 | /** |
100 | * Report link status to upper layer | 98 | * bnx2x_link_report - report link status to upper layer. |
101 | * | 99 | * |
102 | * @param bp | 100 | * @bp: driver handle |
103 | */ | 101 | */ |
104 | void bnx2x_link_report(struct bnx2x *bp); | 102 | void bnx2x_link_report(struct bnx2x *bp); |
105 | 103 | ||
@@ -107,212 +105,197 @@ void bnx2x_link_report(struct bnx2x *bp); | |||
107 | void __bnx2x_link_report(struct bnx2x *bp); | 105 | void __bnx2x_link_report(struct bnx2x *bp); |
108 | 106 | ||
109 | /** | 107 | /** |
110 | * calculates MF speed according to current linespeed and MF | 108 | * bnx2x_get_mf_speed - calculate MF speed. |
111 | * configuration | ||
112 | * | 109 | * |
113 | * @param bp | 110 | * @bp: driver handle |
114 | * | 111 | * |
115 | * @return u16 | 112 | * Takes into account current linespeed and MF configuration. |
116 | */ | 113 | */ |
117 | u16 bnx2x_get_mf_speed(struct bnx2x *bp); | 114 | u16 bnx2x_get_mf_speed(struct bnx2x *bp); |
118 | 115 | ||
119 | /** | 116 | /** |
120 | * MSI-X slowpath interrupt handler | 117 | * bnx2x_msix_sp_int - MSI-X slowpath interrupt handler |
121 | * | ||
122 | * @param irq | ||
123 | * @param dev_instance | ||
124 | * | 118 | * |
125 | * @return irqreturn_t | 119 | * @irq: irq number |
120 | * @dev_instance: private instance | ||
126 | */ | 121 | */ |
127 | irqreturn_t bnx2x_msix_sp_int(int irq, void *dev_instance); | 122 | irqreturn_t bnx2x_msix_sp_int(int irq, void *dev_instance); |
128 | 123 | ||
129 | /** | 124 | /** |
130 | * non MSI-X interrupt handler | 125 | * bnx2x_interrupt - non MSI-X interrupt handler |
131 | * | ||
132 | * @param irq | ||
133 | * @param dev_instance | ||
134 | * | 126 | * |
135 | * @return irqreturn_t | 127 | * @irq: irq number |
128 | * @dev_instance: private instance | ||
136 | */ | 129 | */ |
137 | irqreturn_t bnx2x_interrupt(int irq, void *dev_instance); | 130 | irqreturn_t bnx2x_interrupt(int irq, void *dev_instance); |
138 | #ifdef BCM_CNIC | 131 | #ifdef BCM_CNIC |
139 | 132 | ||
140 | /** | 133 | /** |
141 | * Send command to cnic driver | 134 | * bnx2x_cnic_notify - send command to cnic driver |
142 | * | 135 | * |
143 | * @param bp | 136 | * @bp: driver handle |
144 | * @param cmd | 137 | * @cmd: command |
145 | */ | 138 | */ |
146 | int bnx2x_cnic_notify(struct bnx2x *bp, int cmd); | 139 | int bnx2x_cnic_notify(struct bnx2x *bp, int cmd); |
147 | 140 | ||
148 | /** | 141 | /** |
149 | * Provides cnic information for proper interrupt handling | 142 | * bnx2x_setup_cnic_irq_info - provides cnic with IRQ information |
150 | * | 143 | * |
151 | * @param bp | 144 | * @bp: driver handle |
152 | */ | 145 | */ |
153 | void bnx2x_setup_cnic_irq_info(struct bnx2x *bp); | 146 | void bnx2x_setup_cnic_irq_info(struct bnx2x *bp); |
154 | #endif | 147 | #endif |
155 | 148 | ||
156 | /** | 149 | /** |
157 | * Enable HW interrupts. | 150 | * bnx2x_int_enable - enable HW interrupts. |
158 | * | 151 | * |
159 | * @param bp | 152 | * @bp: driver handle |
160 | */ | 153 | */ |
161 | void bnx2x_int_enable(struct bnx2x *bp); | 154 | void bnx2x_int_enable(struct bnx2x *bp); |
162 | 155 | ||
163 | /** | 156 | /** |
164 | * Disable interrupts. This function ensures that there are no | 157 | * bnx2x_int_disable_sync - disable interrupts. |
165 | * ISRs or SP DPCs (sp_task) are running after it returns. | 158 | * |
159 | * @bp: driver handle | ||
160 | * @disable_hw: true, disable HW interrupts. | ||
166 | * | 161 | * |
167 | * @param bp | 162 | * This function ensures that there are no |
168 | * @param disable_hw if true, disable HW interrupts. | 163 | * ISRs or SP DPCs (sp_task) are running after it returns. |
169 | */ | 164 | */ |
170 | void bnx2x_int_disable_sync(struct bnx2x *bp, int disable_hw); | 165 | void bnx2x_int_disable_sync(struct bnx2x *bp, int disable_hw); |
171 | 166 | ||
172 | /** | 167 | /** |
173 | * Loads device firmware | 168 | * bnx2x_init_firmware - loads device firmware |
174 | * | ||
175 | * @param bp | ||
176 | * | 169 | * |
177 | * @return int | 170 | * @bp: driver handle |
178 | */ | 171 | */ |
179 | int bnx2x_init_firmware(struct bnx2x *bp); | 172 | int bnx2x_init_firmware(struct bnx2x *bp); |
180 | 173 | ||
181 | /** | 174 | /** |
182 | * Init HW blocks according to current initialization stage: | 175 | * bnx2x_init_hw - init HW blocks according to current initialization stage. |
183 | * COMMON, PORT or FUNCTION. | ||
184 | * | 176 | * |
185 | * @param bp | 177 | * @bp: driver handle |
186 | * @param load_code: COMMON, PORT or FUNCTION | 178 | * @load_code: COMMON, PORT or FUNCTION |
187 | * | ||
188 | * @return int | ||
189 | */ | 179 | */ |
190 | int bnx2x_init_hw(struct bnx2x *bp, u32 load_code); | 180 | int bnx2x_init_hw(struct bnx2x *bp, u32 load_code); |
191 | 181 | ||
192 | /** | 182 | /** |
193 | * Init driver internals: | 183 | * bnx2x_nic_init - init driver internals. |
184 | * | ||
185 | * @bp: driver handle | ||
186 | * @load_code: COMMON, PORT or FUNCTION | ||
187 | * | ||
188 | * Initializes: | ||
194 | * - rings | 189 | * - rings |
195 | * - status blocks | 190 | * - status blocks |
196 | * - etc. | 191 | * - etc. |
197 | * | ||
198 | * @param bp | ||
199 | * @param load_code COMMON, PORT or FUNCTION | ||
200 | */ | 192 | */ |
201 | void bnx2x_nic_init(struct bnx2x *bp, u32 load_code); | 193 | void bnx2x_nic_init(struct bnx2x *bp, u32 load_code); |
202 | 194 | ||
203 | /** | 195 | /** |
204 | * Allocate driver's memory. | 196 | * bnx2x_alloc_mem - allocate driver's memory. |
205 | * | ||
206 | * @param bp | ||
207 | * | 197 | * |
208 | * @return int | 198 | * @bp: driver handle |
209 | */ | 199 | */ |
210 | int bnx2x_alloc_mem(struct bnx2x *bp); | 200 | int bnx2x_alloc_mem(struct bnx2x *bp); |
211 | 201 | ||
212 | /** | 202 | /** |
213 | * Release driver's memory. | 203 | * bnx2x_free_mem - release driver's memory. |
214 | * | 204 | * |
215 | * @param bp | 205 | * @bp: driver handle |
216 | */ | 206 | */ |
217 | void bnx2x_free_mem(struct bnx2x *bp); | 207 | void bnx2x_free_mem(struct bnx2x *bp); |
218 | 208 | ||
219 | /** | 209 | /** |
220 | * Setup eth Client. | 210 | * bnx2x_setup_client - setup eth client. |
221 | * | 211 | * |
222 | * @param bp | 212 | * @bp: driver handle |
223 | * @param fp | 213 | * @fp: pointer to fastpath structure |
224 | * @param is_leading | 214 | * @is_leading: boolean |
225 | * | ||
226 | * @return int | ||
227 | */ | 215 | */ |
228 | int bnx2x_setup_client(struct bnx2x *bp, struct bnx2x_fastpath *fp, | 216 | int bnx2x_setup_client(struct bnx2x *bp, struct bnx2x_fastpath *fp, |
229 | int is_leading); | 217 | int is_leading); |
230 | 218 | ||
231 | /** | 219 | /** |
232 | * Set number of queues according to mode | 220 | * bnx2x_set_num_queues - set number of queues according to mode. |
233 | * | ||
234 | * @param bp | ||
235 | * | 221 | * |
222 | * @bp: driver handle | ||
236 | */ | 223 | */ |
237 | void bnx2x_set_num_queues(struct bnx2x *bp); | 224 | void bnx2x_set_num_queues(struct bnx2x *bp); |
238 | 225 | ||
239 | /** | 226 | /** |
240 | * Cleanup chip internals: | 227 | * bnx2x_chip_cleanup - cleanup chip internals. |
228 | * | ||
229 | * @bp: driver handle | ||
230 | * @unload_mode: COMMON, PORT, FUNCTION | ||
231 | * | ||
241 | * - Cleanup MAC configuration. | 232 | * - Cleanup MAC configuration. |
242 | * - Close clients. | 233 | * - Closes clients. |
243 | * - etc. | 234 | * - etc. |
244 | * | ||
245 | * @param bp | ||
246 | * @param unload_mode | ||
247 | */ | 235 | */ |
248 | void bnx2x_chip_cleanup(struct bnx2x *bp, int unload_mode); | 236 | void bnx2x_chip_cleanup(struct bnx2x *bp, int unload_mode); |
249 | 237 | ||
250 | /** | 238 | /** |
251 | * Acquire HW lock. | 239 | * bnx2x_acquire_hw_lock - acquire HW lock. |
252 | * | ||
253 | * @param bp | ||
254 | * @param resource Resource bit which was locked | ||
255 | * | 240 | * |
256 | * @return int | 241 | * @bp: driver handle |
242 | * @resource: resource bit which was locked | ||
257 | */ | 243 | */ |
258 | int bnx2x_acquire_hw_lock(struct bnx2x *bp, u32 resource); | 244 | int bnx2x_acquire_hw_lock(struct bnx2x *bp, u32 resource); |
259 | 245 | ||
260 | /** | 246 | /** |
261 | * Release HW lock. | 247 | * bnx2x_release_hw_lock - release HW lock. |
262 | * | 248 | * |
263 | * @param bp driver handle | 249 | * @bp: driver handle |
264 | * @param resource Resource bit which was locked | 250 | * @resource: resource bit which was locked |
265 | * | ||
266 | * @return int | ||
267 | */ | 251 | */ |
268 | int bnx2x_release_hw_lock(struct bnx2x *bp, u32 resource); | 252 | int bnx2x_release_hw_lock(struct bnx2x *bp, u32 resource); |
269 | 253 | ||
270 | /** | 254 | /** |
271 | * Configure eth MAC address in the HW according to the value in | 255 | * bnx2x_set_eth_mac - configure eth MAC address in the HW |
272 | * netdev->dev_addr. | 256 | * |
257 | * @bp: driver handle | ||
258 | * @set: set or clear | ||
273 | * | 259 | * |
274 | * @param bp driver handle | 260 | * Configures according to the value in netdev->dev_addr. |
275 | * @param set | ||
276 | */ | 261 | */ |
277 | void bnx2x_set_eth_mac(struct bnx2x *bp, int set); | 262 | void bnx2x_set_eth_mac(struct bnx2x *bp, int set); |
278 | 263 | ||
279 | #ifdef BCM_CNIC | 264 | #ifdef BCM_CNIC |
280 | /** | 265 | /** |
281 | * Set/Clear FIP MAC(s) at the next enties in the CAM after the ETH | 266 | * bnx2x_set_fip_eth_mac_addr - Set/Clear FIP MAC(s) |
282 | * MAC(s). This function will wait until the ramdord completion | ||
283 | * returns. | ||
284 | * | 267 | * |
285 | * @param bp driver handle | 268 | * @bp: driver handle |
286 | * @param set set or clear the CAM entry | 269 | * @set: set or clear the CAM entry |
287 | * | 270 | * |
288 | * @return 0 if cussess, -ENODEV if ramrod doesn't return. | 271 | * Used next enties in the CAM after the ETH MAC(s). |
272 | * This function will wait until the ramdord completion returns. | ||
273 | * Return 0 if cussess, -ENODEV if ramrod doesn't return. | ||
289 | */ | 274 | */ |
290 | int bnx2x_set_fip_eth_mac_addr(struct bnx2x *bp, int set); | 275 | int bnx2x_set_fip_eth_mac_addr(struct bnx2x *bp, int set); |
291 | 276 | ||
292 | /** | 277 | /** |
293 | * Set/Clear ALL_ENODE mcast MAC. | 278 | * bnx2x_set_all_enode_macs - Set/Clear ALL_ENODE mcast MAC. |
294 | * | ||
295 | * @param bp | ||
296 | * @param set | ||
297 | * | 279 | * |
298 | * @return int | 280 | * @bp: driver handle |
281 | * @set: set or clear | ||
299 | */ | 282 | */ |
300 | int bnx2x_set_all_enode_macs(struct bnx2x *bp, int set); | 283 | int bnx2x_set_all_enode_macs(struct bnx2x *bp, int set); |
301 | #endif | 284 | #endif |
302 | 285 | ||
303 | /** | 286 | /** |
304 | * Set MAC filtering configurations. | 287 | * bnx2x_set_rx_mode - set MAC filtering configurations. |
305 | * | 288 | * |
306 | * @remarks called with netif_tx_lock from dev_mcast.c | 289 | * @dev: netdevice |
307 | * | 290 | * |
308 | * @param dev net_device | 291 | * called with netif_tx_lock from dev_mcast.c |
309 | */ | 292 | */ |
310 | void bnx2x_set_rx_mode(struct net_device *dev); | 293 | void bnx2x_set_rx_mode(struct net_device *dev); |
311 | 294 | ||
312 | /** | 295 | /** |
313 | * Configure MAC filtering rules in a FW. | 296 | * bnx2x_set_storm_rx_mode - configure MAC filtering rules in a FW. |
314 | * | 297 | * |
315 | * @param bp driver handle | 298 | * @bp: driver handle |
316 | */ | 299 | */ |
317 | void bnx2x_set_storm_rx_mode(struct bnx2x *bp); | 300 | void bnx2x_set_storm_rx_mode(struct bnx2x *bp); |
318 | 301 | ||
@@ -324,63 +307,59 @@ bool bnx2x_reset_is_done(struct bnx2x *bp); | |||
324 | void bnx2x_disable_close_the_gate(struct bnx2x *bp); | 307 | void bnx2x_disable_close_the_gate(struct bnx2x *bp); |
325 | 308 | ||
326 | /** | 309 | /** |
327 | * Perform statistics handling according to event | 310 | * bnx2x_stats_handle - perform statistics handling according to event. |
328 | * | 311 | * |
329 | * @param bp driver handle | 312 | * @bp: driver handle |
330 | * @param event bnx2x_stats_event | 313 | * @event: bnx2x_stats_event |
331 | */ | 314 | */ |
332 | void bnx2x_stats_handle(struct bnx2x *bp, enum bnx2x_stats_event event); | 315 | void bnx2x_stats_handle(struct bnx2x *bp, enum bnx2x_stats_event event); |
333 | 316 | ||
334 | /** | 317 | /** |
335 | * Handle ramrods completion | 318 | * bnx2x_sp_event - handle ramrods completion. |
336 | * | 319 | * |
337 | * @param fp fastpath handle for the event | 320 | * @fp: fastpath handle for the event |
338 | * @param rr_cqe eth_rx_cqe | 321 | * @rr_cqe: eth_rx_cqe |
339 | */ | 322 | */ |
340 | void bnx2x_sp_event(struct bnx2x_fastpath *fp, union eth_rx_cqe *rr_cqe); | 323 | void bnx2x_sp_event(struct bnx2x_fastpath *fp, union eth_rx_cqe *rr_cqe); |
341 | 324 | ||
342 | /** | 325 | /** |
343 | * Init/halt function before/after sending | 326 | * bnx2x_func_start - init function |
344 | * CLIENT_SETUP/CFC_DEL for the first/last client. | ||
345 | * | 327 | * |
346 | * @param bp | 328 | * @bp: driver handle |
347 | * | 329 | * |
348 | * @return int | 330 | * Must be called before sending CLIENT_SETUP for the first client. |
349 | */ | 331 | */ |
350 | int bnx2x_func_start(struct bnx2x *bp); | 332 | int bnx2x_func_start(struct bnx2x *bp); |
351 | 333 | ||
352 | /** | 334 | /** |
353 | * Prepare ILT configurations according to current driver | 335 | * bnx2x_ilt_set_info - prepare ILT configurations. |
354 | * parameters. | ||
355 | * | 336 | * |
356 | * @param bp | 337 | * @bp: driver handle |
357 | */ | 338 | */ |
358 | void bnx2x_ilt_set_info(struct bnx2x *bp); | 339 | void bnx2x_ilt_set_info(struct bnx2x *bp); |
359 | 340 | ||
360 | /** | 341 | /** |
361 | * Inintialize dcbx protocol | 342 | * bnx2x_dcbx_init - initialize dcbx protocol. |
362 | * | 343 | * |
363 | * @param bp | 344 | * @bp: driver handle |
364 | */ | 345 | */ |
365 | void bnx2x_dcbx_init(struct bnx2x *bp); | 346 | void bnx2x_dcbx_init(struct bnx2x *bp); |
366 | 347 | ||
367 | /** | 348 | /** |
368 | * Set power state to the requested value. Currently only D0 and | 349 | * bnx2x_set_power_state - set power state to the requested value. |
369 | * D3hot are supported. | ||
370 | * | 350 | * |
371 | * @param bp | 351 | * @bp: driver handle |
372 | * @param state D0 or D3hot | 352 | * @state: required state D0 or D3hot |
373 | * | 353 | * |
374 | * @return int | 354 | * Currently only D0 and D3hot are supported. |
375 | */ | 355 | */ |
376 | int bnx2x_set_power_state(struct bnx2x *bp, pci_power_t state); | 356 | int bnx2x_set_power_state(struct bnx2x *bp, pci_power_t state); |
377 | 357 | ||
378 | /** | 358 | /** |
379 | * Updates MAX part of MF configuration in HW | 359 | * bnx2x_update_max_mf_config - update MAX part of MF configuration in HW. |
380 | * (if required) | ||
381 | * | 360 | * |
382 | * @param bp | 361 | * @bp: driver handle |
383 | * @param value | 362 | * @value: new value |
384 | */ | 363 | */ |
385 | void bnx2x_update_max_mf_config(struct bnx2x *bp, u32 value); | 364 | void bnx2x_update_max_mf_config(struct bnx2x *bp, u32 value); |
386 | 365 | ||
@@ -420,51 +399,51 @@ void bnx2x_netif_stop(struct bnx2x *bp, int disable_hw); | |||
420 | void bnx2x_netif_start(struct bnx2x *bp); | 399 | void bnx2x_netif_start(struct bnx2x *bp); |
421 | 400 | ||
422 | /** | 401 | /** |
423 | * Fill msix_table, request vectors, update num_queues according | 402 | * bnx2x_enable_msix - set msix configuration. |
424 | * to number of available vectors | ||
425 | * | 403 | * |
426 | * @param bp | 404 | * @bp: driver handle |
427 | * | 405 | * |
428 | * @return int | 406 | * fills msix_table, requests vectors, updates num_queues |
407 | * according to number of available vectors. | ||
429 | */ | 408 | */ |
430 | int bnx2x_enable_msix(struct bnx2x *bp); | 409 | int bnx2x_enable_msix(struct bnx2x *bp); |
431 | 410 | ||
432 | /** | 411 | /** |
433 | * Request msi mode from OS, updated internals accordingly | 412 | * bnx2x_enable_msi - request msi mode from OS, updated internals accordingly |
434 | * | 413 | * |
435 | * @param bp | 414 | * @bp: driver handle |
436 | * | ||
437 | * @return int | ||
438 | */ | 415 | */ |
439 | int bnx2x_enable_msi(struct bnx2x *bp); | 416 | int bnx2x_enable_msi(struct bnx2x *bp); |
440 | 417 | ||
441 | /** | 418 | /** |
442 | * NAPI callback | 419 | * bnx2x_poll - NAPI callback |
443 | * | 420 | * |
444 | * @param napi | 421 | * @napi: napi structure |
445 | * @param budget | 422 | * @budget: |
446 | * | 423 | * |
447 | * @return int | ||
448 | */ | 424 | */ |
449 | int bnx2x_poll(struct napi_struct *napi, int budget); | 425 | int bnx2x_poll(struct napi_struct *napi, int budget); |
450 | 426 | ||
451 | /** | 427 | /** |
452 | * Allocate/release memories outsize main driver structure | 428 | * bnx2x_alloc_mem_bp - allocate memories outsize main driver structure |
453 | * | ||
454 | * @param bp | ||
455 | * | 429 | * |
456 | * @return int | 430 | * @bp: driver handle |
457 | */ | 431 | */ |
458 | int __devinit bnx2x_alloc_mem_bp(struct bnx2x *bp); | 432 | int __devinit bnx2x_alloc_mem_bp(struct bnx2x *bp); |
433 | |||
434 | /** | ||
435 | * bnx2x_free_mem_bp - release memories outsize main driver structure | ||
436 | * | ||
437 | * @bp: driver handle | ||
438 | */ | ||
459 | void bnx2x_free_mem_bp(struct bnx2x *bp); | 439 | void bnx2x_free_mem_bp(struct bnx2x *bp); |
460 | 440 | ||
461 | /** | 441 | /** |
462 | * Change mtu netdev callback | 442 | * bnx2x_change_mtu - change mtu netdev callback |
463 | * | 443 | * |
464 | * @param dev | 444 | * @dev: net device |
465 | * @param new_mtu | 445 | * @new_mtu: requested mtu |
466 | * | 446 | * |
467 | * @return int | ||
468 | */ | 447 | */ |
469 | int bnx2x_change_mtu(struct net_device *dev, int new_mtu); | 448 | int bnx2x_change_mtu(struct net_device *dev, int new_mtu); |
470 | 449 | ||
@@ -472,29 +451,12 @@ u32 bnx2x_fix_features(struct net_device *dev, u32 features); | |||
472 | int bnx2x_set_features(struct net_device *dev, u32 features); | 451 | int bnx2x_set_features(struct net_device *dev, u32 features); |
473 | 452 | ||
474 | /** | 453 | /** |
475 | * tx timeout netdev callback | 454 | * bnx2x_tx_timeout - tx timeout netdev callback |
476 | * | 455 | * |
477 | * @param dev | 456 | * @dev: net device |
478 | * @param new_mtu | ||
479 | * | ||
480 | * @return int | ||
481 | */ | 457 | */ |
482 | void bnx2x_tx_timeout(struct net_device *dev); | 458 | void bnx2x_tx_timeout(struct net_device *dev); |
483 | 459 | ||
484 | #ifdef BCM_VLAN | ||
485 | /** | ||
486 | * vlan rx register netdev callback | ||
487 | * | ||
488 | * @param dev | ||
489 | * @param new_mtu | ||
490 | * | ||
491 | * @return int | ||
492 | */ | ||
493 | void bnx2x_vlan_rx_register(struct net_device *dev, | ||
494 | struct vlan_group *vlgrp); | ||
495 | |||
496 | #endif | ||
497 | |||
498 | static inline void bnx2x_update_fpsb_idx(struct bnx2x_fastpath *fp) | 460 | static inline void bnx2x_update_fpsb_idx(struct bnx2x_fastpath *fp) |
499 | { | 461 | { |
500 | barrier(); /* status block is written to by the chip */ | 462 | barrier(); /* status block is written to by the chip */ |
@@ -745,7 +707,7 @@ static inline int bnx2x_has_rx_work(struct bnx2x_fastpath *fp) | |||
745 | /** | 707 | /** |
746 | * disables tx from stack point of view | 708 | * disables tx from stack point of view |
747 | * | 709 | * |
748 | * @param bp | 710 | * @bp: driver handle |
749 | */ | 711 | */ |
750 | static inline void bnx2x_tx_disable(struct bnx2x *bp) | 712 | static inline void bnx2x_tx_disable(struct bnx2x *bp) |
751 | { | 713 | { |
@@ -1149,12 +1111,11 @@ void bnx2x_acquire_phy_lock(struct bnx2x *bp); | |||
1149 | void bnx2x_release_phy_lock(struct bnx2x *bp); | 1111 | void bnx2x_release_phy_lock(struct bnx2x *bp); |
1150 | 1112 | ||
1151 | /** | 1113 | /** |
1152 | * Extracts MAX BW part from MF configuration. | 1114 | * bnx2x_extract_max_cfg - extract MAX BW part from MF configuration. |
1153 | * | 1115 | * |
1154 | * @param bp | 1116 | * @bp: driver handle |
1155 | * @param mf_cfg | 1117 | * @mf_cfg: MF configuration |
1156 | * | 1118 | * |
1157 | * @return u16 | ||
1158 | */ | 1119 | */ |
1159 | static inline u16 bnx2x_extract_max_cfg(struct bnx2x *bp, u32 mf_cfg) | 1120 | static inline u16 bnx2x_extract_max_cfg(struct bnx2x *bp, u32 mf_cfg) |
1160 | { | 1121 | { |
diff --git a/drivers/net/bnx2x/bnx2x_dcb.c b/drivers/net/bnx2x/bnx2x_dcb.c index 3396ff2dac61..0f8309233ff2 100644 --- a/drivers/net/bnx2x/bnx2x_dcb.c +++ b/drivers/net/bnx2x/bnx2x_dcb.c | |||
@@ -1079,12 +1079,6 @@ static void bnx2x_dcbx_get_num_pg_traf_type(struct bnx2x *bp, | |||
1079 | } | 1079 | } |
1080 | } | 1080 | } |
1081 | 1081 | ||
1082 | |||
1083 | /******************************************************************************* | ||
1084 | * Description: single priority group | ||
1085 | * | ||
1086 | * Return: | ||
1087 | ******************************************************************************/ | ||
1088 | static void bnx2x_dcbx_ets_disabled_entry_data(struct bnx2x *bp, | 1082 | static void bnx2x_dcbx_ets_disabled_entry_data(struct bnx2x *bp, |
1089 | struct cos_help_data *cos_data, | 1083 | struct cos_help_data *cos_data, |
1090 | u32 pri_join_mask) | 1084 | u32 pri_join_mask) |
@@ -1097,11 +1091,6 @@ static void bnx2x_dcbx_ets_disabled_entry_data(struct bnx2x *bp, | |||
1097 | cos_data->num_of_cos = 1; | 1091 | cos_data->num_of_cos = 1; |
1098 | } | 1092 | } |
1099 | 1093 | ||
1100 | /******************************************************************************* | ||
1101 | * Description: updating the cos bw | ||
1102 | * | ||
1103 | * Return: | ||
1104 | ******************************************************************************/ | ||
1105 | static inline void bnx2x_dcbx_add_to_cos_bw(struct bnx2x *bp, | 1094 | static inline void bnx2x_dcbx_add_to_cos_bw(struct bnx2x *bp, |
1106 | struct cos_entry_help_data *data, | 1095 | struct cos_entry_help_data *data, |
1107 | u8 pg_bw) | 1096 | u8 pg_bw) |
@@ -1112,11 +1101,6 @@ static inline void bnx2x_dcbx_add_to_cos_bw(struct bnx2x *bp, | |||
1112 | data->cos_bw += pg_bw; | 1101 | data->cos_bw += pg_bw; |
1113 | } | 1102 | } |
1114 | 1103 | ||
1115 | /******************************************************************************* | ||
1116 | * Description: single priority group | ||
1117 | * | ||
1118 | * Return: | ||
1119 | ******************************************************************************/ | ||
1120 | static void bnx2x_dcbx_separate_pauseable_from_non(struct bnx2x *bp, | 1104 | static void bnx2x_dcbx_separate_pauseable_from_non(struct bnx2x *bp, |
1121 | struct cos_help_data *cos_data, | 1105 | struct cos_help_data *cos_data, |
1122 | u32 *pg_pri_orginal_spread, | 1106 | u32 *pg_pri_orginal_spread, |
@@ -1369,11 +1353,6 @@ static void bnx2x_dcbx_two_pg_to_cos_params( | |||
1369 | } | 1353 | } |
1370 | } | 1354 | } |
1371 | 1355 | ||
1372 | /******************************************************************************* | ||
1373 | * Description: Still | ||
1374 | * | ||
1375 | * Return: | ||
1376 | ******************************************************************************/ | ||
1377 | static void bnx2x_dcbx_three_pg_to_cos_params( | 1356 | static void bnx2x_dcbx_three_pg_to_cos_params( |
1378 | struct bnx2x *bp, | 1357 | struct bnx2x *bp, |
1379 | struct pg_help_data *pg_help_data, | 1358 | struct pg_help_data *pg_help_data, |
@@ -1561,11 +1540,6 @@ static void bnx2x_dcbx_get_ets_pri_pg_tbl(struct bnx2x *bp, | |||
1561 | } | 1540 | } |
1562 | } | 1541 | } |
1563 | 1542 | ||
1564 | /******************************************************************************* | ||
1565 | * Description: Fill pfc_config struct that will be sent in DCBX start ramrod | ||
1566 | * | ||
1567 | * Return: | ||
1568 | ******************************************************************************/ | ||
1569 | static void bnx2x_pfc_fw_struct_e2(struct bnx2x *bp) | 1543 | static void bnx2x_pfc_fw_struct_e2(struct bnx2x *bp) |
1570 | { | 1544 | { |
1571 | struct flow_control_configuration *pfc_fw_cfg = NULL; | 1545 | struct flow_control_configuration *pfc_fw_cfg = NULL; |
diff --git a/drivers/net/bnx2x/bnx2x_dcb.h b/drivers/net/bnx2x/bnx2x_dcb.h index bb6e9a5b4004..bed369d67e02 100644 --- a/drivers/net/bnx2x/bnx2x_dcb.h +++ b/drivers/net/bnx2x/bnx2x_dcb.h | |||
@@ -61,9 +61,6 @@ struct bnx2x_dcbx_port_params { | |||
61 | #define BNX2X_DCBX_OVERWRITE_SETTINGS_ENABLE 1 | 61 | #define BNX2X_DCBX_OVERWRITE_SETTINGS_ENABLE 1 |
62 | #define BNX2X_DCBX_OVERWRITE_SETTINGS_INVALID (BNX2X_DCBX_CONFIG_INV_VALUE) | 62 | #define BNX2X_DCBX_OVERWRITE_SETTINGS_INVALID (BNX2X_DCBX_CONFIG_INV_VALUE) |
63 | 63 | ||
64 | /******************************************************************************* | ||
65 | * LLDP protocol configuration parameters. | ||
66 | ******************************************************************************/ | ||
67 | struct bnx2x_config_lldp_params { | 64 | struct bnx2x_config_lldp_params { |
68 | u32 overwrite_settings; | 65 | u32 overwrite_settings; |
69 | u32 msg_tx_hold; | 66 | u32 msg_tx_hold; |
@@ -83,9 +80,6 @@ struct bnx2x_admin_priority_app_table { | |||
83 | u32 app_id; | 80 | u32 app_id; |
84 | }; | 81 | }; |
85 | 82 | ||
86 | /******************************************************************************* | ||
87 | * DCBX protocol configuration parameters. | ||
88 | ******************************************************************************/ | ||
89 | struct bnx2x_config_dcbx_params { | 83 | struct bnx2x_config_dcbx_params { |
90 | u32 overwrite_settings; | 84 | u32 overwrite_settings; |
91 | u32 admin_dcbx_version; | 85 | u32 admin_dcbx_version; |
diff --git a/drivers/net/bnx2x/bnx2x_link.c b/drivers/net/bnx2x/bnx2x_link.c index 974ef2be36a5..076e11f5769f 100644 --- a/drivers/net/bnx2x/bnx2x_link.c +++ b/drivers/net/bnx2x/bnx2x_link.c | |||
@@ -385,7 +385,7 @@ u8 bnx2x_ets_strict(const struct link_params *params, const u8 strict_cos) | |||
385 | return 0; | 385 | return 0; |
386 | } | 386 | } |
387 | /******************************************************************/ | 387 | /******************************************************************/ |
388 | /* ETS section */ | 388 | /* PFC section */ |
389 | /******************************************************************/ | 389 | /******************************************************************/ |
390 | 390 | ||
391 | static void bnx2x_bmac2_get_pfc_stat(struct link_params *params, | 391 | static void bnx2x_bmac2_get_pfc_stat(struct link_params *params, |
@@ -1301,14 +1301,12 @@ static u8 bnx2x_pbf_update(struct link_params *params, u32 flow_ctrl, | |||
1301 | return 0; | 1301 | return 0; |
1302 | } | 1302 | } |
1303 | 1303 | ||
1304 | /* | 1304 | /** |
1305 | * get_emac_base | 1305 | * bnx2x_get_emac_base - retrive emac base address |
1306 | * | ||
1307 | * @param cb | ||
1308 | * @param mdc_mdio_access | ||
1309 | * @param port | ||
1310 | * | 1306 | * |
1311 | * @return u32 | 1307 | * @bp: driver handle |
1308 | * @mdc_mdio_access: access type | ||
1309 | * @port: port id | ||
1312 | * | 1310 | * |
1313 | * This function selects the MDC/MDIO access (through emac0 or | 1311 | * This function selects the MDC/MDIO access (through emac0 or |
1314 | * emac1) depend on the mdc_mdio_access, port, port swapped. Each | 1312 | * emac1) depend on the mdc_mdio_access, port, port swapped. Each |
diff --git a/drivers/net/bnx2x/bnx2x_main.c b/drivers/net/bnx2x/bnx2x_main.c index 0c31b9127636..2762edf956e9 100644 --- a/drivers/net/bnx2x/bnx2x_main.c +++ b/drivers/net/bnx2x/bnx2x_main.c | |||
@@ -6035,14 +6035,14 @@ static int bnx2x_func_stop(struct bnx2x *bp) | |||
6035 | } | 6035 | } |
6036 | 6036 | ||
6037 | /** | 6037 | /** |
6038 | * Sets a MAC in a CAM for a few L2 Clients for E1x chips | 6038 | * bnx2x_set_mac_addr_gen - set a MAC in a CAM for a few L2 Clients for E1x chips |
6039 | * | 6039 | * |
6040 | * @param bp driver descriptor | 6040 | * @bp: driver handle |
6041 | * @param set set or clear an entry (1 or 0) | 6041 | * @set: set or clear an entry (1 or 0) |
6042 | * @param mac pointer to a buffer containing a MAC | 6042 | * @mac: pointer to a buffer containing a MAC |
6043 | * @param cl_bit_vec bit vector of clients to register a MAC for | 6043 | * @cl_bit_vec: bit vector of clients to register a MAC for |
6044 | * @param cam_offset offset in a CAM to use | 6044 | * @cam_offset: offset in a CAM to use |
6045 | * @param is_bcast is the set MAC a broadcast address (for E1 only) | 6045 | * @is_bcast: is the set MAC a broadcast address (for E1 only) |
6046 | */ | 6046 | */ |
6047 | static void bnx2x_set_mac_addr_gen(struct bnx2x *bp, int set, const u8 *mac, | 6047 | static void bnx2x_set_mac_addr_gen(struct bnx2x *bp, int set, const u8 *mac, |
6048 | u32 cl_bit_vec, u8 cam_offset, | 6048 | u32 cl_bit_vec, u8 cam_offset, |
@@ -6402,14 +6402,13 @@ void bnx2x_invalidate_e1h_mc_list(struct bnx2x *bp) | |||
6402 | 6402 | ||
6403 | #ifdef BCM_CNIC | 6403 | #ifdef BCM_CNIC |
6404 | /** | 6404 | /** |
6405 | * Set iSCSI MAC(s) at the next enties in the CAM after the ETH | 6405 | * bnx2x_set_iscsi_eth_mac_addr - set iSCSI MAC(s). |
6406 | * MAC(s). This function will wait until the ramdord completion | ||
6407 | * returns. | ||
6408 | * | 6406 | * |
6409 | * @param bp driver handle | 6407 | * @bp: driver handle |
6410 | * @param set set or clear the CAM entry | 6408 | * @set: set or clear the CAM entry |
6411 | * | 6409 | * |
6412 | * @return 0 if cussess, -ENODEV if ramrod doesn't return. | 6410 | * This function will wait until the ramdord completion returns. |
6411 | * Return 0 if success, -ENODEV if ramrod doesn't return. | ||
6413 | */ | 6412 | */ |
6414 | static int bnx2x_set_iscsi_eth_mac_addr(struct bnx2x *bp, int set) | 6413 | static int bnx2x_set_iscsi_eth_mac_addr(struct bnx2x *bp, int set) |
6415 | { | 6414 | { |
@@ -6430,14 +6429,13 @@ static int bnx2x_set_iscsi_eth_mac_addr(struct bnx2x *bp, int set) | |||
6430 | } | 6429 | } |
6431 | 6430 | ||
6432 | /** | 6431 | /** |
6433 | * Set FCoE L2 MAC(s) at the next enties in the CAM after the | 6432 | * bnx2x_set_fip_eth_mac_addr - set FCoE L2 MAC(s) |
6434 | * ETH MAC(s). This function will wait until the ramdord | ||
6435 | * completion returns. | ||
6436 | * | 6433 | * |
6437 | * @param bp driver handle | 6434 | * @bp: driver handle |
6438 | * @param set set or clear the CAM entry | 6435 | * @set: set or clear the CAM entry |
6439 | * | 6436 | * |
6440 | * @return 0 if cussess, -ENODEV if ramrod doesn't return. | 6437 | * This function will wait until the ramrod completion returns. |
6438 | * Returns 0 if success, -ENODEV if ramrod doesn't return. | ||
6441 | */ | 6439 | */ |
6442 | int bnx2x_set_fip_eth_mac_addr(struct bnx2x *bp, int set) | 6440 | int bnx2x_set_fip_eth_mac_addr(struct bnx2x *bp, int set) |
6443 | { | 6441 | { |
@@ -6641,12 +6639,11 @@ static int bnx2x_setup_fw_client(struct bnx2x *bp, | |||
6641 | } | 6639 | } |
6642 | 6640 | ||
6643 | /** | 6641 | /** |
6644 | * Configure interrupt mode according to current configuration. | 6642 | * bnx2x_set_int_mode - configure interrupt mode |
6645 | * In case of MSI-X it will also try to enable MSI-X. | ||
6646 | * | 6643 | * |
6647 | * @param bp | 6644 | * @bp: driver handle |
6648 | * | 6645 | * |
6649 | * @return int | 6646 | * In case of MSI-X it will also try to enable MSI-X. |
6650 | */ | 6647 | */ |
6651 | static int __devinit bnx2x_set_int_mode(struct bnx2x *bp) | 6648 | static int __devinit bnx2x_set_int_mode(struct bnx2x *bp) |
6652 | { | 6649 | { |
@@ -7230,10 +7227,11 @@ static void bnx2x_clp_reset_prep(struct bnx2x *bp, u32 *magic_val) | |||
7230 | MF_CFG_WR(bp, shared_mf_config.clp_mb, val | SHARED_MF_CLP_MAGIC); | 7227 | MF_CFG_WR(bp, shared_mf_config.clp_mb, val | SHARED_MF_CLP_MAGIC); |
7231 | } | 7228 | } |
7232 | 7229 | ||
7233 | /* Restore the value of the `magic' bit. | 7230 | /** |
7231 | * bnx2x_clp_reset_done - restore the value of the `magic' bit. | ||
7234 | * | 7232 | * |
7235 | * @param pdev Device handle. | 7233 | * @bp: driver handle |
7236 | * @param magic_val Old value of the `magic' bit. | 7234 | * @magic_val: old value of the `magic' bit. |
7237 | */ | 7235 | */ |
7238 | static void bnx2x_clp_reset_done(struct bnx2x *bp, u32 magic_val) | 7236 | static void bnx2x_clp_reset_done(struct bnx2x *bp, u32 magic_val) |
7239 | { | 7237 | { |
@@ -7244,10 +7242,12 @@ static void bnx2x_clp_reset_done(struct bnx2x *bp, u32 magic_val) | |||
7244 | } | 7242 | } |
7245 | 7243 | ||
7246 | /** | 7244 | /** |
7247 | * Prepares for MCP reset: takes care of CLP configurations. | 7245 | * bnx2x_reset_mcp_prep - prepare for MCP reset. |
7248 | * | 7246 | * |
7249 | * @param bp | 7247 | * @bp: driver handle |
7250 | * @param magic_val Old value of 'magic' bit. | 7248 | * @magic_val: old value of 'magic' bit. |
7249 | * | ||
7250 | * Takes care of CLP configurations. | ||
7251 | */ | 7251 | */ |
7252 | static void bnx2x_reset_mcp_prep(struct bnx2x *bp, u32 *magic_val) | 7252 | static void bnx2x_reset_mcp_prep(struct bnx2x *bp, u32 *magic_val) |
7253 | { | 7253 | { |
@@ -7272,10 +7272,10 @@ static void bnx2x_reset_mcp_prep(struct bnx2x *bp, u32 *magic_val) | |||
7272 | #define MCP_TIMEOUT 5000 /* 5 seconds (in ms) */ | 7272 | #define MCP_TIMEOUT 5000 /* 5 seconds (in ms) */ |
7273 | #define MCP_ONE_TIMEOUT 100 /* 100 ms */ | 7273 | #define MCP_ONE_TIMEOUT 100 /* 100 ms */ |
7274 | 7274 | ||
7275 | /* Waits for MCP_ONE_TIMEOUT or MCP_ONE_TIMEOUT*10, | 7275 | /** |
7276 | * depending on the HW type. | 7276 | * bnx2x_mcp_wait_one - wait for MCP_ONE_TIMEOUT |
7277 | * | 7277 | * |
7278 | * @param bp | 7278 | * @bp: driver handle |
7279 | */ | 7279 | */ |
7280 | static inline void bnx2x_mcp_wait_one(struct bnx2x *bp) | 7280 | static inline void bnx2x_mcp_wait_one(struct bnx2x *bp) |
7281 | { | 7281 | { |