2 * Industrial Computer Source WDT500/501 driver for Linux 1.3.x
4 * (c) Copyright 1995 CymruNET Ltd
12 * http://www.cymru.net
14 * This driver is provided under the GNU public license, incorporated
15 * herein by reference. The driver is provided without warranty or
22 #include <linux/config.h>
24 #define WDT_COUNT0 (io+0)
25 #define WDT_COUNT1 (io+1)
26 #define WDT_COUNT2 (io+2)
30 #define WDT_UNUSED (io+6)
33 #define WDC_SR_WCCR 1 /* Active low */
34 #define WDC_SR_TGOOD 2
35 #define WDC_SR_ISOI0 4
36 #define WDC_SR_ISII1 8
37 #define WDC_SR_FANGOOD 16
38 #define WDC_SR_PSUOVER 32 /* Active low */
39 #define WDC_SR_PSUUNDR 64 /* Active low */
40 #define WDC_SR_IRQ 128 /* Active low */
43 * Feature Map 1 is the active high inputs not supported on your card.
44 * Feature Map 2 is the active low inputs not supported on your card.
47 #ifdef CONFIG_WDT_501 /* Full board */
49 #ifdef CONFIG_WDT501_FAN /* Full board, Fan has no tachometer */
51 #define WDT_OPTION_MASK (WDIOF_OVERHEAT|WDIOF_POWERUNDER|WDIOF_POWEROVER|WDIOF_EXTERN1|WDIOF_EXTERN2|WDIOF_FANFAULT)
53 #define FEATUREMAP1 WDC_SR_FANGOOD
54 #define WDT_OPTION_MASK (WDIOF_OVERHEAT|WDIOF_POWERUNDER|WDIOF_POWEROVER|WDIOF_EXTERN1|WDIOF_EXTERN2)
60 #ifndef CONFIG_WDT_501
61 #define CONFIG_WDT_500
64 #ifdef CONFIG_WDT_500 /* Minimal board */
65 #define FEATUREMAP1 (WDC_SR_TGOOD|WDC_SR_FANGOOD)
66 #define FEATUREMAP2 (WDC_SR_PSUOVER|WDC_SR_PSUUNDR)
67 #define WDT_OPTION_MASK (WDIOF_OVERHEAT)
71 #error "Config option not set"