Skip to contentSkip to conversation

driver for eurotech PC104 on-board watchdog timer

PATCH New Rodolfo Giometti 1 participant 1 message Oct 12, 2001

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

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 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
@@ -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
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 */
drivers/char/Config.in +1 -0
diff -urN --exclude-from=patch-exclude linux-2.2.19/drivers/char/Config.in lp2_wd/drivers/char/Config.in
@@ -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
diff -urN --exclude-from=patch-exclude linux-2.2.19/drivers/char/Makefile lp2_wd/drivers/char/Makefile
@@ -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
diff -urN --exclude-from=patch-exclude linux-2.2.19/include/linux/watchdog.h lp2_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 */