* added 0.99 linux version
[mascara-docs.git] / i386 / linux / linux-2.3.21 / drivers / char / wd501p.h
blob81971da6b4f2a82659a4670e5235b7a5519b6546
1 /*
2 * Industrial Computer Source WDT500/501 driver for Linux 1.3.x
4 * (c) Copyright 1995 CymruNET Ltd
5 * Innovation Centre
6 * Singleton Park
7 * Swansea
8 * Wales
9 * UK
10 * SA2 8PP
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
16 * support.
18 * Release 0.04.
22 #include <linux/config.h>
24 #define WDT_COUNT0 (io+0)
25 #define WDT_COUNT1 (io+1)
26 #define WDT_COUNT2 (io+2)
27 #define WDT_CR (io+3)
28 #define WDT_SR (io+4)
29 #define WDT_RT (io+5)
30 #define WDT_UNUSED (io+6)
31 #define WDT_DC (io+7)
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 */
50 #define FEATUREMAP1 0
51 #define WDT_OPTION_MASK (WDIOF_OVERHEAT|WDIOF_POWERUNDER|WDIOF_POWEROVER|WDIOF_EXTERN1|WDIOF_EXTERN2|WDIOF_FANFAULT)
52 #else
53 #define FEATUREMAP1 WDC_SR_FANGOOD
54 #define WDT_OPTION_MASK (WDIOF_OVERHEAT|WDIOF_POWERUNDER|WDIOF_POWEROVER|WDIOF_EXTERN1|WDIOF_EXTERN2)
55 #endif
57 #define FEATUREMAP2 0
58 #endif
60 #ifndef CONFIG_WDT_501
61 #define CONFIG_WDT_500
62 #endif
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)
68 #endif
70 #ifndef FEATUREMAP1
71 #error "Config option not set"
72 #endif