diff options
Diffstat (limited to 'drivers/net/netxen/netxen_nic_hw.h')
-rw-r--r-- | drivers/net/netxen/netxen_nic_hw.h | 107 |
1 files changed, 0 insertions, 107 deletions
diff --git a/drivers/net/netxen/netxen_nic_hw.h b/drivers/net/netxen/netxen_nic_hw.h index fc0638f2d6d0..98e4b95788b7 100644 --- a/drivers/net/netxen/netxen_nic_hw.h +++ b/drivers/net/netxen/netxen_nic_hw.h | |||
@@ -61,10 +61,6 @@ void netxen_nic_set_link_parameters(struct netxen_adapter *adapter); | |||
61 | * Bit 31: soft_reset => 1:reset the MAC and the SERDES, 0:no-op | 61 | * Bit 31: soft_reset => 1:reset the MAC and the SERDES, 0:no-op |
62 | */ | 62 | */ |
63 | 63 | ||
64 | #define netxen_gb_enable_tx(config_word) \ | ||
65 | ((config_word) |= 1 << 0) | ||
66 | #define netxen_gb_enable_rx(config_word) \ | ||
67 | ((config_word) |= 1 << 2) | ||
68 | #define netxen_gb_tx_flowctl(config_word) \ | 64 | #define netxen_gb_tx_flowctl(config_word) \ |
69 | ((config_word) |= 1 << 4) | 65 | ((config_word) |= 1 << 4) |
70 | #define netxen_gb_rx_flowctl(config_word) \ | 66 | #define netxen_gb_rx_flowctl(config_word) \ |
@@ -77,8 +73,6 @@ void netxen_nic_set_link_parameters(struct netxen_adapter *adapter); | |||
77 | ((config_word) |= 1 << 18) | 73 | ((config_word) |= 1 << 18) |
78 | #define netxen_gb_rx_reset_mac(config_word) \ | 74 | #define netxen_gb_rx_reset_mac(config_word) \ |
79 | ((config_word) |= 1 << 19) | 75 | ((config_word) |= 1 << 19) |
80 | #define netxen_gb_soft_reset(config_word) \ | ||
81 | ((config_word) |= 1 << 31) | ||
82 | 76 | ||
83 | #define netxen_gb_unset_tx_flowctl(config_word) \ | 77 | #define netxen_gb_unset_tx_flowctl(config_word) \ |
84 | ((config_word) &= ~(1 << 4)) | 78 | ((config_word) &= ~(1 << 4)) |
@@ -240,7 +234,6 @@ void netxen_nic_set_link_parameters(struct netxen_adapter *adapter); | |||
240 | * Bits 14-15 : speed => 0:10Mb/s, 1:100Mb/s, 2:1000Mb/s, 3:rsvd | 234 | * Bits 14-15 : speed => 0:10Mb/s, 1:100Mb/s, 2:1000Mb/s, 3:rsvd |
241 | */ | 235 | */ |
242 | 236 | ||
243 | #define netxen_get_phy_cablelen(config_word) (((config_word) >> 7) & 0x07) | ||
244 | #define netxen_get_phy_speed(config_word) (((config_word) >> 14) & 0x03) | 237 | #define netxen_get_phy_speed(config_word) (((config_word) >> 14) & 0x03) |
245 | 238 | ||
246 | #define netxen_set_phy_speed(config_word, val) \ | 239 | #define netxen_set_phy_speed(config_word, val) \ |
@@ -250,85 +243,12 @@ void netxen_nic_set_link_parameters(struct netxen_adapter *adapter); | |||
250 | #define netxen_clear_phy_duplex(config_word) \ | 243 | #define netxen_clear_phy_duplex(config_word) \ |
251 | ((config_word) &= ~(1 << 13)) | 244 | ((config_word) &= ~(1 << 13)) |
252 | 245 | ||
253 | #define netxen_get_phy_jabber(config_word) \ | ||
254 | _netxen_crb_get_bit(config_word, 0) | ||
255 | #define netxen_get_phy_polarity(config_word) \ | ||
256 | _netxen_crb_get_bit(config_word, 1) | ||
257 | #define netxen_get_phy_recvpause(config_word) \ | ||
258 | _netxen_crb_get_bit(config_word, 2) | ||
259 | #define netxen_get_phy_xmitpause(config_word) \ | ||
260 | _netxen_crb_get_bit(config_word, 3) | ||
261 | #define netxen_get_phy_energydetect(config_word) \ | ||
262 | _netxen_crb_get_bit(config_word, 4) | ||
263 | #define netxen_get_phy_downshift(config_word) \ | ||
264 | _netxen_crb_get_bit(config_word, 5) | ||
265 | #define netxen_get_phy_crossover(config_word) \ | ||
266 | _netxen_crb_get_bit(config_word, 6) | ||
267 | #define netxen_get_phy_link(config_word) \ | 246 | #define netxen_get_phy_link(config_word) \ |
268 | _netxen_crb_get_bit(config_word, 10) | 247 | _netxen_crb_get_bit(config_word, 10) |
269 | #define netxen_get_phy_resolved(config_word) \ | ||
270 | _netxen_crb_get_bit(config_word, 11) | ||
271 | #define netxen_get_phy_pagercvd(config_word) \ | ||
272 | _netxen_crb_get_bit(config_word, 12) | ||
273 | #define netxen_get_phy_duplex(config_word) \ | 248 | #define netxen_get_phy_duplex(config_word) \ |
274 | _netxen_crb_get_bit(config_word, 13) | 249 | _netxen_crb_get_bit(config_word, 13) |
275 | 250 | ||
276 | /* | 251 | /* |
277 | * Interrupt Register definition | ||
278 | * This definition applies to registers 18 and 19 (int enable and int status). | ||
279 | * Bit 0 : jabber | ||
280 | * Bit 1 : polarity_changed | ||
281 | * Bit 4 : energy_detect | ||
282 | * Bit 5 : downshift | ||
283 | * Bit 6 : mdi_xover_changed | ||
284 | * Bit 7 : fifo_over_underflow | ||
285 | * Bit 8 : false_carrier | ||
286 | * Bit 9 : symbol_error | ||
287 | * Bit 10: link_status_changed | ||
288 | * Bit 11: autoneg_completed | ||
289 | * Bit 12: page_received | ||
290 | * Bit 13: duplex_changed | ||
291 | * Bit 14: speed_changed | ||
292 | * Bit 15: autoneg_error | ||
293 | */ | ||
294 | |||
295 | #define netxen_get_phy_int_jabber(config_word) \ | ||
296 | _netxen_crb_get_bit(config_word, 0) | ||
297 | #define netxen_get_phy_int_polarity_changed(config_word) \ | ||
298 | _netxen_crb_get_bit(config_word, 1) | ||
299 | #define netxen_get_phy_int_energy_detect(config_word) \ | ||
300 | _netxen_crb_get_bit(config_word, 4) | ||
301 | #define netxen_get_phy_int_downshift(config_word) \ | ||
302 | _netxen_crb_get_bit(config_word, 5) | ||
303 | #define netxen_get_phy_int_mdi_xover_changed(config_word) \ | ||
304 | _netxen_crb_get_bit(config_word, 6) | ||
305 | #define netxen_get_phy_int_fifo_over_underflow(config_word) \ | ||
306 | _netxen_crb_get_bit(config_word, 7) | ||
307 | #define netxen_get_phy_int_false_carrier(config_word) \ | ||
308 | _netxen_crb_get_bit(config_word, 8) | ||
309 | #define netxen_get_phy_int_symbol_error(config_word) \ | ||
310 | _netxen_crb_get_bit(config_word, 9) | ||
311 | #define netxen_get_phy_int_link_status_changed(config_word) \ | ||
312 | _netxen_crb_get_bit(config_word, 10) | ||
313 | #define netxen_get_phy_int_autoneg_completed(config_word) \ | ||
314 | _netxen_crb_get_bit(config_word, 11) | ||
315 | #define netxen_get_phy_int_page_received(config_word) \ | ||
316 | _netxen_crb_get_bit(config_word, 12) | ||
317 | #define netxen_get_phy_int_duplex_changed(config_word) \ | ||
318 | _netxen_crb_get_bit(config_word, 13) | ||
319 | #define netxen_get_phy_int_speed_changed(config_word) \ | ||
320 | _netxen_crb_get_bit(config_word, 14) | ||
321 | #define netxen_get_phy_int_autoneg_error(config_word) \ | ||
322 | _netxen_crb_get_bit(config_word, 15) | ||
323 | |||
324 | #define netxen_set_phy_int_link_status_changed(config_word) \ | ||
325 | ((config_word) |= 1 << 10) | ||
326 | #define netxen_set_phy_int_autoneg_completed(config_word) \ | ||
327 | ((config_word) |= 1 << 11) | ||
328 | #define netxen_set_phy_int_speed_changed(config_word) \ | ||
329 | ((config_word) |= 1 << 14) | ||
330 | |||
331 | /* | ||
332 | * NIU Mode Register. | 252 | * NIU Mode Register. |
333 | * Bit 0 : enable FibreChannel | 253 | * Bit 0 : enable FibreChannel |
334 | * Bit 1 : enable 10/100/1000 Ethernet | 254 | * Bit 1 : enable 10/100/1000 Ethernet |
@@ -343,33 +263,6 @@ void netxen_nic_set_link_parameters(struct netxen_adapter *adapter); | |||
343 | #define NETXEN_NIU_ALLMULTI_MODE 2 | 263 | #define NETXEN_NIU_ALLMULTI_MODE 2 |
344 | 264 | ||
345 | /* | 265 | /* |
346 | * NIU GB Drop CRC Register | ||
347 | * | ||
348 | * Bit 0 : drop_gb0 => 1:drop pkts with bad CRCs, 0:pass them on | ||
349 | * Bit 1 : drop_gb1 => 1:drop pkts with bad CRCs, 0:pass them on | ||
350 | * Bit 2 : drop_gb2 => 1:drop pkts with bad CRCs, 0:pass them on | ||
351 | * Bit 3 : drop_gb3 => 1:drop pkts with bad CRCs, 0:pass them on | ||
352 | */ | ||
353 | |||
354 | #define netxen_set_gb_drop_gb0(config_word) \ | ||
355 | ((config_word) |= 1 << 0) | ||
356 | #define netxen_set_gb_drop_gb1(config_word) \ | ||
357 | ((config_word) |= 1 << 1) | ||
358 | #define netxen_set_gb_drop_gb2(config_word) \ | ||
359 | ((config_word) |= 1 << 2) | ||
360 | #define netxen_set_gb_drop_gb3(config_word) \ | ||
361 | ((config_word) |= 1 << 3) | ||
362 | |||
363 | #define netxen_clear_gb_drop_gb0(config_word) \ | ||
364 | ((config_word) &= ~(1 << 0)) | ||
365 | #define netxen_clear_gb_drop_gb1(config_word) \ | ||
366 | ((config_word) &= ~(1 << 1)) | ||
367 | #define netxen_clear_gb_drop_gb2(config_word) \ | ||
368 | ((config_word) &= ~(1 << 2)) | ||
369 | #define netxen_clear_gb_drop_gb3(config_word) \ | ||
370 | ((config_word) &= ~(1 << 3)) | ||
371 | |||
372 | /* | ||
373 | * NIU XG MAC Config Register | 266 | * NIU XG MAC Config Register |
374 | * | 267 | * |
375 | * Bit 0 : tx_enable => 1:enable frame xmit, 0:disable | 268 | * Bit 0 : tx_enable => 1:enable frame xmit, 0:disable |