root/drivers/char/wd501p.h

/* [previous][next][first][last][top][bottom][index][help] */

INCLUDED FROM


   1 /*
   2  *      Industrial Computer Source WDT500/501 driver for Linux 1.3.x
   3  *
   4  *      (c) Copyright 1995      CymruNET Ltd
   5  *                              Innovation Centre
   6  *                              Singleton Park
   7  *                              Swansea
   8  *                              Wales
   9  *                              UK
  10  *                              SA2 8PP
  11  *
  12  *      http://www.cymru.net
  13  *
  14  *      This driver is provided under the GNU public license, incorporated
  15  *      herein by reference. The driver is provided without warranty or 
  16  *      support.
  17  *
  18  *      Release 0.04.
  19  *
  20  */
  21 
  22 #include <linux/config.h>
  23  
  24 #define WATCHDOG_MINOR          130     /* Watchdog timer     */
  25 #define TEMP_MINOR              131     /* Temperature Sensor */
  26 
  27 #define WDT_COUNT0              (io+0)
  28 #define WDT_COUNT1              (io+1)
  29 #define WDT_COUNT2              (io+2)
  30 #define WDT_CR                  (io+3)
  31 #define WDT_SR                  (io+4)
  32 #define WDT_RT                  (io+5)
  33 #define WDT_UNUSED              (io+6)
  34 #define WDT_DC                  (io+7)
  35 
  36 #define WDC_SR_WCCR             1       /* Active low */
  37 #define WDC_SR_TGOOD            2
  38 #define WDC_SR_ISOI0            4
  39 #define WDC_SR_ISII1            8
  40 #define WDC_SR_FANGOOD          16
  41 #define WDC_SR_PSUOVER          32      /* Active low */
  42 #define WDC_SR_PSUUNDR          64      /* Active low */
  43 #define WDC_SR_IRQ              128     /* Active low */
  44 
  45 /*
  46  *      Feature Map 1 is the active high inputs not supported on your card.
  47  *      Feature Map 2 is the active low inputs not supported on your card.
  48  */
  49  
  50 #ifdef CONFIG_WDT_501           /* Full board */
  51 
  52 #ifdef CONFIG_WDT501_FAN        /* Full board, Fan has no tachometer */
  53 #define FEATUREMAP1             0
  54 #else
  55 #define FEATUREMAP1             WDC_SR_FANGOOD
  56 #endif
  57 
  58 #define FEATUREMAP2             0
  59 #endif
  60 
  61 
  62 #ifdef CONFIG_WDT500            /* Minimal board */
  63 #define FEATUREMAP1             (WDC_SR_TGOOD|WDC_SR_FANGOOD)
  64 #define FEATUREMAP2             (WDC_SR_PSUOVER|WDC_SR_PSUUNDR)
  65 #endif
  66 
  67 #ifdef CONFIG_SOFT_WATCHDOG
  68 #define FEATUREMAP1            0
  69 #define FEATUREMAP2            0
  70 #endif
  71 
  72 #ifndef FEATUREMAP1
  73 #error "Config option not set"
  74 #endif

/* [previous][next][first][last][top][bottom][index][help] */