Linux PARISC architecture development
 help / color / mirror / Atom feed
* [parisc-linux] netpoll support for lasi_82596
@ 2005-06-29  5:59 Sven Schnelle
  2005-07-05 20:43 ` Helge Deller
  0 siblings, 1 reply; 3+ messages in thread
From: Sven Schnelle @ 2005-06-29  5:59 UTC (permalink / raw)
  To: parisc-linux


[-- Attachment #1.1: Type: text/plain, Size: 1622 bytes --]

Hi,

i'm working on kgdb for linux-2.6, and added netpoll support to the
lasi_82596 driver. Maybe we can add this patch?

---------------------------------------------------------------
Index: lasi_82596.c
===================================================================
RCS file: /var/cvs/linux-2.6/drivers/net/lasi_82596.c,v
retrieving revision 1.15
diff -u -r1.15 lasi_82596.c
--- lasi_82596.c	29 Nov 2004 19:56:12 -0000	1.15
+++ lasi_82596.c	29 Jun 2005 05:25:40 -0000
@@ -415,6 +415,9 @@
 static int ticks_limit = 100;
 static int max_cmd_backlog = TX_RING_SIZE-1;
 
+#if CONFIG_NET_POLL_CONTROLLER
+static void i596_poll_controller(struct net_device *dev);
+#endif
 
 static inline void CA(struct net_device *dev)
 {
@@ -1209,7 +1212,9 @@
 	dev->set_multicast_list = set_multicast_list;
 	dev->tx_timeout = i596_tx_timeout;
 	dev->watchdog_timeo = TX_TIMEOUT;
-
+#ifdef CONFIG_NET_POLL_CONTROLLER
+	dev->poll_controller = i596_poll_controller;
+#endif
 	dev->priv = (void *)(dev->mem_start);
 
 	lp = dev->priv;
@@ -1242,6 +1247,14 @@
 	return 0;
 }
 
+#ifdef CONFIG_NET_POLL_CONTROLLER
+static void i596_poll_controller(struct net_device *dev)
+{
+    disable_irq(dev->irq);
+    i596_interrupt(dev->irq, dev, NULL);
+    enable_irq(dev->irq);
+}
+#endif
 
 static irqreturn_t i596_interrupt(int irq, void *dev_id, struct pt_regs *regs)
 {
--------------------------------------------------------------------------------

Thanks,

Sven.
-- 
We've seen the restless children at the head of the columns
Come to purify the future with the arrogance of youth

[-- Attachment #1.2: Type: application/pgp-signature, Size: 188 bytes --]

[-- Attachment #2: Type: text/plain, Size: 169 bytes --]

_______________________________________________
parisc-linux mailing list
parisc-linux@lists.parisc-linux.org
http://lists.parisc-linux.org/mailman/listinfo/parisc-linux

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2005-07-06  6:22 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-06-29  5:59 [parisc-linux] netpoll support for lasi_82596 Sven Schnelle
2005-07-05 20:43 ` Helge Deller
2005-07-06  6:22   ` kgdb (was: Re: [parisc-linux] netpoll support for lasi_82596) Sven Schnelle

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox