netconsole support for kernel 2.4 / sunhme patch

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Dear listmembers,
could some kind soul tell me whether the following patch is too naive in order to try to add netconsole support to the sunhme - module?
Many thanks in advance,
take care



Dieter Jurzitza

--- linux/drivers/net/sunhme.c.original 2007-09-14 07:45:24.000000000 +0200
+++ linux/drivers/net/sunhme.c  2007-09-14 08:14:39.000000000 +0200
@@ -79,6 +79,7 @@
 MODULE_LICENSE("GPL");
 
 static struct happy_meal *root_happy_dev;
+static void poll_happy_meal(struct net_device *dev);
 
 #ifdef CONFIG_SBUS
 static struct quattro *qfe_sbus_list;
@@ -3140,6 +3141,9 @@
        dev->set_multicast_list = &happy_meal_set_multicast;
        dev->tx_timeout = &happy_meal_tx_timeout;
        dev->watchdog_timeo = 5*HZ;
+#ifdef HAVE_POLL_CONTROLLER
+        dev->poll_controller = &poll_happy_meal;
+#endif 
        dev->do_ioctl = &happy_meal_ioctl;
        dev->irq = pdev->irq;
        dev->dma = 0;
@@ -3300,6 +3304,20 @@
        return 0;
 }
  
+#ifdef HAVE_POLL_CONTROLLER
+/*
+ * Polling 'interrupt' - used by things like netconsole to send skbs
+ * without having to re-enable interrupts. It's not called while
+ * the interrupt routine is executing.
+ */
+   
+static void poll_happy_meal (struct net_device *dev)
+{
+       disable_irq(dev->irq);
+       sis900_interrupt (dev->irq, dev, NULL);
+       enable_irq(dev->irq);
+}
+#endif
 
 static void __exit happy_meal_cleanup_module(void)
 {


-- 
________________________________________________

HARMAN BECKER AUTOMOTIVE SYSTEMS

Dr.-Ing. Dieter Jurzitza
Manager Hardware Systems
   System Development

Industriegebiet Ittersbach
Becker-Göring Str. 16
D-76307 Karlsbad / Germany

Phone:  +49 (0)7248 71-1577
Mobile: +49 0151 - 16 339 017
Fax:    +49 (0)7248 71-1216
eMail:  DJurzitza@xxxxxxxxxxxxxxxx
Internet: http://www.becker.de 
 
*******************************************
Harman Becker Automotive Systems GmbH
Geschaeftsfuehrung:  Dr. Peter Geiselhart  -  Michael Mauser  -  Edwin Summers  -  Regis Baudot
Sitz der Gesellschaft: Karlsbad - Registergericht: Mannheim HRB 361395
 
*******************************************
Diese E-Mail enthaelt vertrauliche und/oder rechtlich geschuetzte Informationen. Wenn Sie nicht der richtige Adressat sind oder diese E-Mail irrtuemlich erhalten haben, informieren Sie bitte sofort den Absender und loeschen Sie diese Mail. Das unerlaubte Kopieren sowie die unbefugte Weitergabe dieser Mail ist nicht gestattet.
This e-mail may contain confidential and/or privileged information. If you are not the intended recipient (or have received this e-mail in error) please notify the sender immediately and delete this e-mail. Any unauthorized copying, disclosure or distribution of the contents in this e-mail is strictly forbidden.
*******************************************
-
To unsubscribe from this list: send the line "unsubscribe sparclinux" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Kernel Development]     [DCCP]     [Linux ARM Development]     [Linux]     [Photo]     [Yosemite Help]     [Linux ARM Kernel]     [Linux SCSI]     [Linux x86_64]     [Linux Hams]

  Powered by Linux