OpenCores
URL https://opencores.org/ocsvn/or1k/or1k/trunk

Subversion Repositories or1k

[/] [or1k/] [trunk/] [rc203soc/] [sw/] [uClinux/] [drivers/] [char/] [wd501p.h] - Blame information for rev 1765

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 1626 jcastillo
/*
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
#ifndef CONFIG_WDT_501
62
#define CONFIG_WDT_500
63
#endif
64
 
65
#ifdef CONFIG_WDT_500           /* Minimal board */
66
#define FEATUREMAP1             (WDC_SR_TGOOD|WDC_SR_FANGOOD)
67
#define FEATUREMAP2             (WDC_SR_PSUOVER|WDC_SR_PSUUNDR)
68
#endif
69
 
70
#ifndef FEATUREMAP1
71
#error "Config option not set"
72
#endif

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.