patch-2.1.20 linux/drivers/char/wdt.c

Next file: linux/drivers/net/Config.in
Previous file: linux/drivers/char/tty_io.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.1.19/linux/drivers/char/wdt.c linux/drivers/char/wdt.c
@@ -22,6 +22,7 @@
  *		Alan Cox	:	Added the watchdog ioctl() stuff
  *		Alan Cox	:	Fixed the reboot problem (as noted by
  *					Matt Crocker).
+ *		Alan Cox	:	Added wdt= boot option
  */
 
 #include <linux/config.h>
@@ -46,6 +47,7 @@
 
 /*
  *	You must set these - there is no sane way to probe for this board.
+ *	You can use wdt=x,y to set these now.
  */
  
 int io=0x240;
@@ -53,6 +55,20 @@
 
 #define WD_TIMO (100*60)		/* 1 minute */
 
+/*
+ *	Setup options
+ */
+ 
+void wdt_setup(char *str, int *ints)
+{
+	if(ints[0]>0)
+	{
+		io=ints[1];
+		if(ints[0]>1)
+			irq=ints[2];
+	}
+}
+ 
 /*
  *	Programming support
  */

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov