netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [4/4]pollcontroller patch for 2.6.0-test10-bk25-netdrvr-exp1
@ 2003-12-03 14:02 Prasanna S Panchamukhi
  0 siblings, 0 replies; only message in thread
From: Prasanna S Panchamukhi @ 2003-12-03 14:02 UTC (permalink / raw)
  To: jgarzik; +Cc: mpm, suparna, netdev

Hi Jeff,

Below is the pollcontroller patch for tlan network device driver.
This patch can be applied over 2.6.0-test9-bk25-netdrvr-exp1.patch

diff -urNp linux-netdrvr/drivers/net/tlan.c linux-2.6.0-test10/drivers/net/tlan.c
--- linux-netdrvr/drivers/net/tlan.c	2003-11-24 07:01:12.000000000 +0530
+++ linux-2.6.0-test10/drivers/net/tlan.c	2003-12-04 11:56:16.536491448 +0530
@@ -814,6 +814,14 @@ static void  __init TLan_EisaProbe (void
 
 } /* TLan_EisaProbe */
 
+#ifdef CONFIG_NET_POLL_CONTROLLER
+static void TLan_Poll(struct net_device *dev)
+{
+	disable_irq(dev->irq);
+	TLan_HandleInterrupt(dev->irq, dev, NULL);
+	enable_irq(dev->irq);
+}
+#endif
 
 	
 
@@ -893,6 +901,9 @@ static int TLan_Init( struct net_device 
 	dev->get_stats = &TLan_GetStats;
 	dev->set_multicast_list = &TLan_SetMulticastList;
 	dev->do_ioctl = &TLan_ioctl;
+#ifdef CONFIG_NET_POLL_CONTROLLER
+	dev->poll_controller = &TLan_Poll;
+#endif
 	dev->tx_timeout = &TLan_tx_timeout;
 	dev->watchdog_timeo = TX_TIMEOUT;
 
-- 
Thanks & Regards
Prasanna S Panchamukhi
Linux Technology Center
India Software Labs, IBM Bangalore
Ph: 91-80-5044632

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2003-12-03 14:02 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-12-03 14:02 [4/4]pollcontroller patch for 2.6.0-test10-bk25-netdrvr-exp1 Prasanna S Panchamukhi

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).