diff options
Diffstat (limited to 'drivers/message/fusion/mptlan.c')
-rw-r--r-- | drivers/message/fusion/mptlan.c | 37 |
1 files changed, 7 insertions, 30 deletions
diff --git a/drivers/message/fusion/mptlan.c b/drivers/message/fusion/mptlan.c index ef2713b93fab..52794be5a95c 100644 --- a/drivers/message/fusion/mptlan.c +++ b/drivers/message/fusion/mptlan.c | |||
@@ -1,33 +1,11 @@ | |||
1 | /* | 1 | /* |
2 | * linux/drivers/message/fusion/mptlan.c | 2 | * linux/drivers/message/fusion/mptlan.c |
3 | * IP Over Fibre Channel device driver. | 3 | * IP Over Fibre Channel device driver. |
4 | * For use with PCI chip/adapter(s): | 4 | * For use with LSI Logic Fibre Channel PCI chip/adapters |
5 | * LSIFC9xx/LSI409xx Fibre Channel | ||
6 | * running LSI Logic Fusion MPT (Message Passing Technology) firmware. | 5 | * running LSI Logic Fusion MPT (Message Passing Technology) firmware. |
7 | * | 6 | * |
8 | * Credits: | 7 | * Copyright (c) 2000-2005 LSI Logic Corporation |
9 | * This driver would not exist if not for Alan Cox's development | ||
10 | * of the linux i2o driver. | ||
11 | * | 8 | * |
12 | * Special thanks goes to the I2O LAN driver people at the | ||
13 | * University of Helsinki, who, unbeknownst to them, provided | ||
14 | * the inspiration and initial structure for this driver. | ||
15 | * | ||
16 | * A huge debt of gratitude is owed to David S. Miller (DaveM) | ||
17 | * for fixing much of the stupid and broken stuff in the early | ||
18 | * driver while porting to sparc64 platform. THANK YOU! | ||
19 | * | ||
20 | * A really huge debt of gratitude is owed to Eddie C. Dost | ||
21 | * for gobs of hard work fixing and optimizing LAN code. | ||
22 | * THANK YOU! | ||
23 | * | ||
24 | * (see also mptbase.c) | ||
25 | * | ||
26 | * Copyright (c) 2000-2004 LSI Logic Corporation | ||
27 | * Originally By: Noah Romer | ||
28 | * (mailto:mpt_linux_developer@lsil.com) | ||
29 | * | ||
30 | * $Id: mptlan.c,v 1.53 2002/10/17 20:15:58 pdelaney Exp $ | ||
31 | */ | 9 | */ |
32 | /*=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=*/ | 10 | /*=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=*/ |
33 | /* | 11 | /* |
@@ -221,7 +199,7 @@ lan_reply (MPT_ADAPTER *ioc, MPT_FRAME_HDR *mf, MPT_FRAME_HDR *reply) | |||
221 | 199 | ||
222 | // NOTE! (Optimization) First case here is now caught in | 200 | // NOTE! (Optimization) First case here is now caught in |
223 | // mptbase.c::mpt_interrupt() routine and callcack here | 201 | // mptbase.c::mpt_interrupt() routine and callcack here |
224 | // is now skipped for this case! 20001218 -sralston | 202 | // is now skipped for this case! |
225 | #if 0 | 203 | #if 0 |
226 | case LAN_REPLY_FORM_MESSAGE_CONTEXT: | 204 | case LAN_REPLY_FORM_MESSAGE_CONTEXT: |
227 | // dioprintk((KERN_INFO MYNAM "/lan_reply: " | 205 | // dioprintk((KERN_INFO MYNAM "/lan_reply: " |
@@ -234,7 +212,7 @@ lan_reply (MPT_ADAPTER *ioc, MPT_FRAME_HDR *mf, MPT_FRAME_HDR *reply) | |||
234 | // dioprintk((MYNAM "/lan_reply: " | 212 | // dioprintk((MYNAM "/lan_reply: " |
235 | // "calling mpt_lan_send_reply (turbo)\n")); | 213 | // "calling mpt_lan_send_reply (turbo)\n")); |
236 | 214 | ||
237 | // Potential BUG here? -sralston | 215 | // Potential BUG here? |
238 | // FreeReqFrame = mpt_lan_send_turbo(dev, tmsg); | 216 | // FreeReqFrame = mpt_lan_send_turbo(dev, tmsg); |
239 | // If/when mpt_lan_send_turbo would return 1 here, | 217 | // If/when mpt_lan_send_turbo would return 1 here, |
240 | // calling routine (mptbase.c|mpt_interrupt) | 218 | // calling routine (mptbase.c|mpt_interrupt) |
@@ -310,8 +288,7 @@ lan_reply (MPT_ADAPTER *ioc, MPT_FRAME_HDR *mf, MPT_FRAME_HDR *reply) | |||
310 | 288 | ||
311 | case MPI_FUNCTION_EVENT_NOTIFICATION: | 289 | case MPI_FUNCTION_EVENT_NOTIFICATION: |
312 | case MPI_FUNCTION_EVENT_ACK: | 290 | case MPI_FUNCTION_EVENT_ACK: |
313 | /* UPDATE! 20010120 -sralston | 291 | /* _EVENT_NOTIFICATION should NOT come down this path any more. |
314 | * _EVENT_NOTIFICATION should NOT come down this path any more. | ||
315 | * Should be routed to mpt_lan_event_process(), but just in case... | 292 | * Should be routed to mpt_lan_event_process(), but just in case... |
316 | */ | 293 | */ |
317 | FreeReqFrame = 1; | 294 | FreeReqFrame = 1; |
@@ -561,8 +538,8 @@ mpt_lan_close(struct net_device *dev) | |||
561 | } | 538 | } |
562 | } | 539 | } |
563 | 540 | ||
564 | kfree (priv->RcvCtl); | 541 | kfree(priv->RcvCtl); |
565 | kfree (priv->mpt_rxfidx); | 542 | kfree(priv->mpt_rxfidx); |
566 | 543 | ||
567 | for (i = 0; i < priv->tx_max_out; i++) { | 544 | for (i = 0; i < priv->tx_max_out; i++) { |
568 | if (priv->SendCtl[i].skb != NULL) { | 545 | if (priv->SendCtl[i].skb != NULL) { |