driver for eurotech PC104 on-board watchdog timer
Subsystems (2)
PATCH 1/1 driver for eurotech PC104 on-board watchdog timer
Hello,
I developed this two simple drivers for the Eurotech PC104 on-board watchdog timer.
One patch is for kernel 2.4.10 (but it applies to the 2.4.12 too) and one is for kernel 2.2.19. I hope you add these patchs to the Linux kernel source.
Regards,
Rodolfo Giometti
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 7028903drivers/char/Config.in +1 -0
@@ -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
@@ -228,6 +228,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_SOFT_WATCHDOG) += softdog.o
drivers/char/eurotechwdt.c +480 -0
480 lines not on this page · raw message
include/linux/watchdog.h +1 -0
@@ -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 */
drivers/char/Config.in +1 -0
@@ -114,6 +114,7 @@ fi fi tristate ' WDT PCI Watchdog timer' CONFIG_WDTPCI + tristate ' Eurotech CPU-1220/1410 Watchdog Timer' CONFIG_EUROTECH_WDT endmenu fi
drivers/char/Makefile +8 -0
@@ -317,6 +317,14 @@ endif endif +ifeq ($(CONFIG_EUROTECH_WDT),y) +O_OBJS += eurotechwdt.o +else + ifeq ($(CONFIG_EUROTECH_WDT),m) + M_OBJS += eurotechwdt.o + endif +endif + ifeq ($(CONFIG_MIXCOMWD),y) O_OBJS += mixcomwd.o else
drivers/char/eurotechwdt.c +475 -0
475 lines not on this page · raw message
include/linux/watchdog.h +1 -0
@@ -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 */