Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
linux
Commits
94147016
Commit
94147016
authored
Mar 21, 2004
by
Wim Van Sebroeck
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[WATCHDOG] v2.6.5-rc2 wd501p.h-patch
Cleanup header file after changes to wdt.c and wdt_pci.c
parent
8e7ff451
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
49 deletions
+10
-49
drivers/char/watchdog/wd501p.h
drivers/char/watchdog/wd501p.h
+10
-49
No files found.
drivers/char/watchdog/wd501p.h
View file @
94147016
/*
* Industrial Computer Source WDT500/501 driver
for Linux 1.3.x
* Industrial Computer Source WDT500/501 driver
*
* (c) Copyright 1995 CymruNET Ltd
* Innovation Centre
...
...
@@ -40,52 +40,13 @@
/* programmable outputs: */
#define WDT_PROGOUT (io+15)
/* wr=enable, rd=disable */
#define WDC_SR_WCCR 1
/* Active low */
#define WDC_SR_TGOOD 2
#define WDC_SR_ISOI0 4
#define WDC_SR_ISII1 8
#define WDC_SR_FANGOOD 16
#define WDC_SR_PSUOVER 32
/* Active low */
#define WDC_SR_PSUUNDR 64
/* Active low */
#define WDC_SR_IRQ 128
/* Active low */
/* FAN 501 500 */
#define WDC_SR_WCCR 1
/* Active low */
/* X X X */
#define WDC_SR_TGOOD 2
/* X X - */
#define WDC_SR_ISOI0 4
/* X X X */
#define WDC_SR_ISII1 8
/* X X X */
#define WDC_SR_FANGOOD 16
/* X - - */
#define WDC_SR_PSUOVER 32
/* Active low */
/* X X - */
#define WDC_SR_PSUUNDR 64
/* Active low */
/* X X - */
#define WDC_SR_IRQ 128
/* Active low */
/* X X X */
#ifndef WDT_IS_PCI
/*
* Feature Map 1 is the active high inputs not supported on your card.
* Feature Map 2 is the active low inputs not supported on your card.
*/
#ifdef CONFIG_WDT_501
/* Full board */
#ifdef CONFIG_WDT501_FAN
/* Full board, Fan has no tachometer */
#define FEATUREMAP1 0
#define WDT_OPTION_MASK (WDIOF_OVERHEAT|WDIOF_POWERUNDER|WDIOF_POWEROVER|WDIOF_EXTERN1|WDIOF_EXTERN2|WDIOF_FANFAULT)
#else
#define FEATUREMAP1 WDC_SR_FANGOOD
#define WDT_OPTION_MASK (WDIOF_OVERHEAT|WDIOF_POWERUNDER|WDIOF_POWEROVER|WDIOF_EXTERN1|WDIOF_EXTERN2)
#endif
#define FEATUREMAP2 0
#endif
#ifndef CONFIG_WDT_501
#define CONFIG_WDT_500
#endif
#ifdef CONFIG_WDT_500
/* Minimal board */
#define FEATUREMAP1 (WDC_SR_TGOOD|WDC_SR_FANGOOD)
#define FEATUREMAP2 (WDC_SR_PSUOVER|WDC_SR_PSUUNDR)
#define WDT_OPTION_MASK (WDIOF_OVERHEAT)
#endif
#else
#define FEATUREMAP1 (WDC_SR_TGOOD|WDC_SR_FANGOOD)
#define FEATUREMAP2 (WDC_SR_PSUOVER|WDC_SR_PSUUNDR)
#define WDT_OPTION_MASK (WDIOF_OVERHEAT)
#endif
#ifndef FEATUREMAP1
#error "Config option not set"
#endif
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment