Thread (3 messages) 3 messages, 2 authors, 2003-12-30

Re: [FYI] 2.6.x exp net drivers changelog

From: Pavel Machek <hidden>
Date: 2003-12-26 23:22:10
Also in: lkml

Hi!
<prasanna:in.ibm.com>:
  o [netdrvr tlan] netpoll support
  o [netdrvr smc-ultra] netpoll support
And here's netpoll for via-rhine... I hope it is allright? [I tested
it briefly, kgdb-over-this seemed to work.]

								Pavel
--- tmp/linux/drivers/net/via-rhine.c	2003-09-09 12:45:27.000000000 +0200
+++ linux/drivers/net/via-rhine.c	2003-12-25 22:34:37.000000000 +0100
@@ -615,6 +615,15 @@
 			break;
 }
 
+#ifdef CONFIG_NET_POLL_CONTROLLER
+static void via_rhine_poll(struct net_device *dev)
+{
+	disable_irq(dev->irq);
+	via_rhine_interrupt(dev->irq, (void *)dev, NULL);
+	enable_irq(dev->irq);
+}
+#endif
+
 static int __devinit via_rhine_init_one (struct pci_dev *pdev,
 					 const struct pci_device_id *ent)
 {
@@ -784,6 +793,9 @@
 	dev->ethtool_ops = &netdev_ethtool_ops;
 	dev->tx_timeout = via_rhine_tx_timeout;
 	dev->watchdog_timeo = TX_TIMEOUT;
+#ifdef CONFIG_NET_POLL_CONTROLLER
+	dev->poll_controller = via_rhine_poll;
+#endif
 	if (np->drv_flags & ReqTxAlign)
 		dev->features |= NETIF_F_SG|NETIF_F_HW_CSUM;
 
-- 
When do you have a heart between your knees?
[Johanka's followup: and *two* hearts?]
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help