Skip to contentSkip to conversation

Eurotech WDT driver not fully patched

PATCH New Rodolfo Giometti 1 participant 1 message Nov 19, 2001

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Eurotech WDT driver not fully patched

Hello!

I notice you add my (little) driver into main kernel tree (see file linux/drivers/char/eurotechwdt.c) and I'm very happy for this! :^)

But you forgot to patch some files so, currently, is not possible compiling and using it! :'(

Please, use the following patch to put everything ok.

Thanks,
Rodolfo

Signature · 8 lines
     \\\\
     (o o)
--oOO-(_)-OOo------------------------------------------------------------
Rodolfo Giometti (ZtW)               e-mail:    [email protected]
                                                [email protected]
Programmi e soluzioni GNU                       [email protected]
*  Linux Device Drivers              home page: giometti.oltrelinux.com
*  Embedded Systems                  phone:     +39 329 7028903
drivers/char/Config.in +1 -0
diff -urN --exclude-from=patch-exclude linux-2.4.10/drivers/char/Config.in lp4_wd/drivers/char/Config.in
@@ -166,6 +166,7 @@
       fi
    fi
    tristate '  ZF MachZ Watchdog' CONFIG_MACHZ_WDT
+   tristate '  Eurotech CPU-1220/1410 Watchdog Timer' CONFIG_EUROTECH_WDT
 fi
 endmenu
 
drivers/char/Makefile +1 -0
diff -urN --exclude-from=patch-exclude linux-2.4.10/drivers/char/Makefile lp4_wd/drivers/char/Makefile
@@ -230,6 +230,7 @@
 obj-$(CONFIG_977_WATCHDOG) += wdt977.o
 obj-$(CONFIG_I810_TCO) += i810-tco.o
 obj-$(CONFIG_MACHZ_WDT) += machzwd.o
+obj-$(CONFIG_EUROTECH_WDT) += eurotechwdt.o
 obj-$(CONFIG_SH_WDT) += shwdt.o
 
 
include/linux/watchdog.h +1 -0
diff -urN --exclude-from=patch-exclude linux-2.4.10/include/linux/watchdog.h lp4_wd/include/linux/watchdog.h
@@ -25,6 +25,7 @@
 #define	WDIOC_GETTEMP		_IOR(WATCHDOG_IOCTL_BASE, 3, int)
 #define	WDIOC_SETOPTIONS	_IOR(WATCHDOG_IOCTL_BASE, 4, int)
 #define	WDIOC_KEEPALIVE		_IOR(WATCHDOG_IOCTL_BASE, 5, int)
+#define WDIOC_SETTIMEOUT        _IOW(WATCHDOG_IOCTL_BASE, 6, int)
 
 #define	WDIOF_UNKNOWN		-1	/* Unknown flag error */
 #define	WDIOS_UNKNOWN		-1	/* Unknown status error */