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 #define WATCHDOG_MINOR          130     /* Watchdog timer     */
  23 #define TEMP_MINOR              131     /* Temperature Sensor */
  24 
  25 #define WDT_COUNT0              (io+0)
  26 #define WDT_COUNT1              (io+1)
  27 #define WDT_COUNT2              (io+2)
  28 #define WDT_CR                  (io+3)
  29 #define WDT_SR                  (io+4)
  30 #define WDT_RT                  (io+5)
  31 #define WDT_UNUSED              (io+6)
  32 #define WDT_DC                  (io+7)
  33 
  34 #define WDC_SR_WCCR             1       /* Active low */
  35 #define WDC_SR_TGOOD            2
  36 #define WDC_SR_ISOI0            4
  37 #define WDC_SR_ISII1            8
  38 #define WDC_SR_FANGOOD          16
  39 #define WDC_SR_PSUOVER          32      /* Active low */
  40 #define WDC_SR_PSUUNDR          64      /* Active low */
  41 #define WDC_SR_IRQ              128     /* Active low */
  42 
  43 /*
  44  *      Feature Map 1 is the active high inputs not supported on your card.
  45  *      Feature Map 2 is the active low inputs not supported on your card.
  46  */
  47  
  48 #ifdef CONFIG_WDT_501           /* Full board */
  49 
  50 #ifdef CONFIG_WDT501_FAN        /* Full board, Fan has no tachometer */
  51 #define FEATUREMAP1             0
  52 #else
  53 #define FEATUREMAP1             WDC_SR_FANGOOD
  54 #endif
  55 
  56 #define FEATUREMAP2             0
  57 #endif
  58 
  59 
  60 #ifdef CONFIG_WDT500            /* Minimal board */
  61 #define FEATUREMAP1             (WDC_SR_TGOOD|WDC_SR_FANGOOD)
  62 #define FEATUREMAP2             (WDC_SR_PSUOVER|WDC_SR_PSUUNDR)
  63 #endif
  64 
  65 #ifndef FEATUREMAP1
  66 #error "Config option not set"
  67 #endif

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