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

Subversion Repositories or1k

[/] [or1k/] [trunk/] [linux/] [linux-2.4/] [Documentation/] [watchdog-api.txt] - Diff between revs 1275 and 1765

Only display areas with differences | Details | Blame | View Log

Rev 1275 Rev 1765
The Linux Watchdog driver API.
The Linux Watchdog driver API.
Copyright 2002 Christer Weingel 
Copyright 2002 Christer Weingel 
Some parts of this document are copied verbatim from the sbc60xxwdt
Some parts of this document are copied verbatim from the sbc60xxwdt
driver which is (c) Copyright 2000 Jakob Oestergaard 
driver which is (c) Copyright 2000 Jakob Oestergaard 
This document describes the state of the Linux 2.4.18 kernel.
This document describes the state of the Linux 2.4.18 kernel.
Introduction:
Introduction:
A Watchdog Timer (WDT) is a hardware circuit that can reset the
A Watchdog Timer (WDT) is a hardware circuit that can reset the
computer system in case of a software fault.  You probably knew that
computer system in case of a software fault.  You probably knew that
already.
already.
Usually a userspace daemon will notify the kernel watchdog driver via the
Usually a userspace daemon will notify the kernel watchdog driver via the
/dev/watchdog special device file that userspace is still alive, at
/dev/watchdog special device file that userspace is still alive, at
regular intervals.  When such a notification occurs, the driver will
regular intervals.  When such a notification occurs, the driver will
usually tell the hardware watchdog that everything is in order, and
usually tell the hardware watchdog that everything is in order, and
that the watchdog should wait for yet another little while to reset
that the watchdog should wait for yet another little while to reset
the system.  If userspace fails (RAM error, kernel bug, whatever), the
the system.  If userspace fails (RAM error, kernel bug, whatever), the
notifications cease to occur, and the hardware watchdog will reset the
notifications cease to occur, and the hardware watchdog will reset the
system (causing a reboot) after the timeout occurs.
system (causing a reboot) after the timeout occurs.
The Linux watchdog API is a rather AD hoc construction and different
The Linux watchdog API is a rather AD hoc construction and different
drivers implement different, and sometimes incompatible, parts of it.
drivers implement different, and sometimes incompatible, parts of it.
This file is an attempt to document the existing usage and allow
This file is an attempt to document the existing usage and allow
future driver writers to use it as a reference.
future driver writers to use it as a reference.
The simplest API:
The simplest API:
All drivers support the basic mode of operation, where the watchdog
All drivers support the basic mode of operation, where the watchdog
activates as soon as /dev/watchdog is opened and will reboot unless
activates as soon as /dev/watchdog is opened and will reboot unless
the watchdog is pinged within a certain time, this time is called the
the watchdog is pinged within a certain time, this time is called the
timeout or margin.  The simplest way to ping the watchdog is to write
timeout or margin.  The simplest way to ping the watchdog is to write
some data to the device.  So a very simple watchdog daemon would look
some data to the device.  So a very simple watchdog daemon would look
like this:
like this:
int main(int argc, const char *argv[]) {
int main(int argc, const char *argv[]) {
        int fd=open("/dev/watchdog",O_WRONLY);
        int fd=open("/dev/watchdog",O_WRONLY);
        if (fd==-1) {
        if (fd==-1) {
                perror("watchdog");
                perror("watchdog");
                exit(1);
                exit(1);
        }
        }
        while(1) {
        while(1) {
                write(fd, "\0", 1);
                write(fd, "\0", 1);
                sleep(10);
                sleep(10);
        }
        }
}
}
A more advanced driver could for example check that a HTTP server is
A more advanced driver could for example check that a HTTP server is
still responding before doing the write call to ping the watchdog.
still responding before doing the write call to ping the watchdog.
When the device is closed, the watchdog is disabled.  This is not
When the device is closed, the watchdog is disabled.  This is not
always such a good idea, since if there is a bug in the watchdog
always such a good idea, since if there is a bug in the watchdog
daemon and it crashes the system will not reboot.  Because of this,
daemon and it crashes the system will not reboot.  Because of this,
some of the drivers support the configuration option "Disable watchdog
some of the drivers support the configuration option "Disable watchdog
shutdown on close", CONFIG_WATCHDOG_NOWAYOUT.  If it is set to Y when
shutdown on close", CONFIG_WATCHDOG_NOWAYOUT.  If it is set to Y when
compiling the kernel, there is no way of disabling the watchdog once
compiling the kernel, there is no way of disabling the watchdog once
it has been started.  So, if the watchdog dameon crashes, the system
it has been started.  So, if the watchdog dameon crashes, the system
will reboot after the timeout has passed.
will reboot after the timeout has passed.
Some other drivers will not disable the watchdog, unless a specific
Some other drivers will not disable the watchdog, unless a specific
magic character 'V' has been sent /dev/watchdog just before closing
magic character 'V' has been sent /dev/watchdog just before closing
the file.  If the userspace daemon closes the file without sending
the file.  If the userspace daemon closes the file without sending
this special character, the driver will assume that the daemon (and
this special character, the driver will assume that the daemon (and
userspace in general) died, and will stop pinging the watchdog without
userspace in general) died, and will stop pinging the watchdog without
disabling it first.  This will then cause a reboot.
disabling it first.  This will then cause a reboot.
The ioctl API:
The ioctl API:
All conforming drivers also support an ioctl API.
All conforming drivers also support an ioctl API.
Pinging the watchdog using an ioctl:
Pinging the watchdog using an ioctl:
All drivers that have an ioctl interface support at least one ioctl,
All drivers that have an ioctl interface support at least one ioctl,
KEEPALIVE.  This ioctl does exactly the same thing as a write to the
KEEPALIVE.  This ioctl does exactly the same thing as a write to the
watchdog device, so the main loop in the above program could be
watchdog device, so the main loop in the above program could be
replaced with:
replaced with:
        while (1) {
        while (1) {
                ioctl(fd, WDIOC_KEEPALIVE, 0);
                ioctl(fd, WDIOC_KEEPALIVE, 0);
                sleep(10);
                sleep(10);
        }
        }
the argument to the ioctl is ignored.
the argument to the ioctl is ignored.
Setting and getting the timeout:
Setting and getting the timeout:
For some drivers it is possible to modify the watchdog timeout on the
For some drivers it is possible to modify the watchdog timeout on the
fly with the SETTIMEOUT ioctl, those drivers have the WDIOF_SETTIMEOUT
fly with the SETTIMEOUT ioctl, those drivers have the WDIOF_SETTIMEOUT
flag set in their option field.  The argument is an integer
flag set in their option field.  The argument is an integer
representing the timeout in seconds.  The driver returns the real
representing the timeout in seconds.  The driver returns the real
timeout used in the same variable, and this timeout might differ from
timeout used in the same variable, and this timeout might differ from
the requested one due to limitation of the hardware.
the requested one due to limitation of the hardware.
    int timeout = 45;
    int timeout = 45;
    ioctl(fd, WDIOC_SETTIMEOUT, &timeout);
    ioctl(fd, WDIOC_SETTIMEOUT, &timeout);
    printf("The timeout was set to %d seconds\n", timeout);
    printf("The timeout was set to %d seconds\n", timeout);
This example might actually print "The timeout was set to 60 seconds"
This example might actually print "The timeout was set to 60 seconds"
if the device has a granularity of minutes for its timeout.
if the device has a granularity of minutes for its timeout.
Starting with the Linux 2.4.18 kernel, it is possible to query the
Starting with the Linux 2.4.18 kernel, it is possible to query the
current timeout using the GETTIMEOUT ioctl.
current timeout using the GETTIMEOUT ioctl.
    ioctl(fd, WDIOC_GETTIMEOUT, &timeout);
    ioctl(fd, WDIOC_GETTIMEOUT, &timeout);
    printf("The timeout was is %d seconds\n", timeout);
    printf("The timeout was is %d seconds\n", timeout);
Envinronmental monitoring:
Envinronmental monitoring:
All watchdog drivers are required return more information about the system,
All watchdog drivers are required return more information about the system,
some do temperature, fan and power level monitoring, some can tell you
some do temperature, fan and power level monitoring, some can tell you
the reason for the last reboot of the system.  The GETSUPPORT ioctl is
the reason for the last reboot of the system.  The GETSUPPORT ioctl is
available to ask what the device can do:
available to ask what the device can do:
        struct watchdog_info ident;
        struct watchdog_info ident;
        ioctl(fd, WDIOC_GETSUPPORT, &ident);
        ioctl(fd, WDIOC_GETSUPPORT, &ident);
the fields returned in the ident struct are:
the fields returned in the ident struct are:
        identity                a string identifying the watchdog driver
        identity                a string identifying the watchdog driver
        firmware_version        the firmware version of the card if available
        firmware_version        the firmware version of the card if available
        options                 a flags describing what the device supports
        options                 a flags describing what the device supports
the options field can have the following bits set, and describes what
the options field can have the following bits set, and describes what
kind of information that the GET_STATUS and GET_BOOT_STATUS ioctls can
kind of information that the GET_STATUS and GET_BOOT_STATUS ioctls can
return.   [FIXME -- Is this correct?]
return.   [FIXME -- Is this correct?]
        WDIOF_OVERHEAT          Reset due to CPU overheat
        WDIOF_OVERHEAT          Reset due to CPU overheat
The machine was last rebooted by the watchdog because the thermal limit was
The machine was last rebooted by the watchdog because the thermal limit was
exceeded
exceeded
        WDIOF_FANFAULT          Fan failed
        WDIOF_FANFAULT          Fan failed
A system fan monitored by the watchdog card has failed
A system fan monitored by the watchdog card has failed
        WDIOF_EXTERN1           External relay 1
        WDIOF_EXTERN1           External relay 1
External monitoring relay/source 1 was triggered. Controllers intended for
External monitoring relay/source 1 was triggered. Controllers intended for
real world applications include external monitoring pins that will trigger
real world applications include external monitoring pins that will trigger
a reset.
a reset.
        WDIOF_EXTERN2           External relay 2
        WDIOF_EXTERN2           External relay 2
External monitoring relay/source 2 was triggered
External monitoring relay/source 2 was triggered
        WDIOF_POWERUNDER        Power bad/power fault
        WDIOF_POWERUNDER        Power bad/power fault
The machine is showing an undervoltage status
The machine is showing an undervoltage status
        WDIOF_CARDRESET         Card previously reset the CPU
        WDIOF_CARDRESET         Card previously reset the CPU
The last reboot was caused by the watchdog card
The last reboot was caused by the watchdog card
        WDIOF_POWEROVER         Power over voltage
        WDIOF_POWEROVER         Power over voltage
The machine is showing an overvoltage status. Note that if one level is
The machine is showing an overvoltage status. Note that if one level is
under and one over both bits will be set - this may seem odd but makes
under and one over both bits will be set - this may seem odd but makes
sense.
sense.
        WDIOF_KEEPALIVEPING     Keep alive ping reply
        WDIOF_KEEPALIVEPING     Keep alive ping reply
The watchdog saw a keepalive ping since it was last queried.
The watchdog saw a keepalive ping since it was last queried.
        WDIOF_SETTIMEOUT        Can set/get the timeout
        WDIOF_SETTIMEOUT        Can set/get the timeout
For those drivers that return any bits set in the option field, the
For those drivers that return any bits set in the option field, the
GETSTATUS and GETBOOTSTATUS ioctls can be used to ask for the current
GETSTATUS and GETBOOTSTATUS ioctls can be used to ask for the current
status, and the status at the last reboot, respectively.
status, and the status at the last reboot, respectively.
    int flags;
    int flags;
    ioctl(fd, WDIOC_GETSTATUS, &flags);
    ioctl(fd, WDIOC_GETSTATUS, &flags);
    or
    or
    ioctl(fd, WDIOC_GETBOOTSTATUS, &flags);
    ioctl(fd, WDIOC_GETBOOTSTATUS, &flags);
Note that not all devices support these two calls, and some only
Note that not all devices support these two calls, and some only
support the GETBOOTSTATUS call.
support the GETBOOTSTATUS call.
Some drivers can measure the temperature using the GETTEMP ioctl.  The
Some drivers can measure the temperature using the GETTEMP ioctl.  The
returned value is the temperature in degrees farenheit.
returned value is the temperature in degrees farenheit.
    int temperature;
    int temperature;
    ioctl(fd, WDIOC_GETTEMP, &temperature);
    ioctl(fd, WDIOC_GETTEMP, &temperature);
Finally the SETOPTIONS ioctl can be used to control some aspects of
Finally the SETOPTIONS ioctl can be used to control some aspects of
the cards operation; right now the pcwd driver is the only one
the cards operation; right now the pcwd driver is the only one
supporting thiss ioctl.
supporting thiss ioctl.
    int options = 0;
    int options = 0;
    ioctl(fd, WDIOC_SETOPTIONS, options);
    ioctl(fd, WDIOC_SETOPTIONS, options);
The following options are available:
The following options are available:
        WDIOS_DISABLECARD       Turn off the watchdog timer
        WDIOS_DISABLECARD       Turn off the watchdog timer
        WDIOS_ENABLECARD        Turn on the watchdog timer
        WDIOS_ENABLECARD        Turn on the watchdog timer
        WDIOS_TEMPPANIC         Kernel panic on temperature trip
        WDIOS_TEMPPANIC         Kernel panic on temperature trip
[FIXME -- better explanations]
[FIXME -- better explanations]
Implementations in the current drivers in the kernel tree:
Implementations in the current drivers in the kernel tree:
Here I have tried to summarize what the different drivers support and
Here I have tried to summarize what the different drivers support and
where they do strange things compared to the other drivers.
where they do strange things compared to the other drivers.
acquirewdt.c -- Acquire Single Board Computer
acquirewdt.c -- Acquire Single Board Computer
        This driver has a hardcoded timeout of 1 minute
        This driver has a hardcoded timeout of 1 minute
        Supports CONFIG_WATCHDOG_NOWAYOUT
        Supports CONFIG_WATCHDOG_NOWAYOUT
        GETSUPPORT returns KEEPALIVEPING.  GETSTATUS will return 1 if
        GETSUPPORT returns KEEPALIVEPING.  GETSTATUS will return 1 if
        the device is open, 0 if not.  [FIXME -- isn't this rather
        the device is open, 0 if not.  [FIXME -- isn't this rather
        silly?  To be able to use the ioctl, the device must be open
        silly?  To be able to use the ioctl, the device must be open
        and so GETSTATUS will always return 1].
        and so GETSTATUS will always return 1].
advantechwdt.c -- Advantech Single Board Computer
advantechwdt.c -- Advantech Single Board Computer
        Timeout that defaults to 60 seconds, supports SETTIMEOUT.
        Timeout that defaults to 60 seconds, supports SETTIMEOUT.
        Supports CONFIG_WATCHDOG_NOWAYOUT
        Supports CONFIG_WATCHDOG_NOWAYOUT
        GETSUPPORT returns WDIOF_KEEPALIVEPING and WDIOF_SETTIMEOUT.
        GETSUPPORT returns WDIOF_KEEPALIVEPING and WDIOF_SETTIMEOUT.
        The GETSTATUS call returns if the device is open or not.
        The GETSTATUS call returns if the device is open or not.
        [FIXME -- silliness again?]
        [FIXME -- silliness again?]
eurotechwdt.c -- Eurotech CPU-1220/1410
eurotechwdt.c -- Eurotech CPU-1220/1410
        The timeout can be set using the SETTIMEOUT ioctl and defaults
        The timeout can be set using the SETTIMEOUT ioctl and defaults
        to 60 seconds.
        to 60 seconds.
        Also has a module parameter "ev", event type which controls
        Also has a module parameter "ev", event type which controls
        what should happen on a timeout, the string "int" or anything
        what should happen on a timeout, the string "int" or anything
        else that causes a reboot.  [FIXME -- better description]
        else that causes a reboot.  [FIXME -- better description]
        Supports CONFIG_WATCHDOG_NOWAYOUT
        Supports CONFIG_WATCHDOG_NOWAYOUT
        GETSUPPORT returns CARDRESET and WDIOF_SETTIMEOUT but
        GETSUPPORT returns CARDRESET and WDIOF_SETTIMEOUT but
        GETSTATUS is not supported and GETBOOTSTATUS just returns 0.
        GETSTATUS is not supported and GETBOOTSTATUS just returns 0.
i810-tco.c -- Intel 810 chipset
i810-tco.c -- Intel 810 chipset
        Also has support for a lot of other i8x0 stuff, but the
        Also has support for a lot of other i8x0 stuff, but the
        watchdog is one of the things.
        watchdog is one of the things.
        The timeout is set using the module parameter "i810_margin",
        The timeout is set using the module parameter "i810_margin",
        which is in steps of 0.6 seconds where 2
        which is in steps of 0.6 seconds where 2
        driver supports the SETTIMEOUT ioctl.
        driver supports the SETTIMEOUT ioctl.
        Supports CONFIG_WATCHDOG_NOWAYOUT.
        Supports CONFIG_WATCHDOG_NOWAYOUT.
        GETSUPPORT returns WDIOF_SETTIMEOUT.  The GETSTATUS call
        GETSUPPORT returns WDIOF_SETTIMEOUT.  The GETSTATUS call
        returns some kind of timer value which ist not compatible with
        returns some kind of timer value which ist not compatible with
        the other drivers.  GETBOOT status returns some kind of
        the other drivers.  GETBOOT status returns some kind of
        hardware specific boot status.  [FIXME -- describe this]
        hardware specific boot status.  [FIXME -- describe this]
ib700wdt.c -- IB700 Single Board Computer
ib700wdt.c -- IB700 Single Board Computer
        Default timeout of 30 seconds and the timeout is settable
        Default timeout of 30 seconds and the timeout is settable
        using the SETTIMEOUT ioctl.  Note that only a few timeout
        using the SETTIMEOUT ioctl.  Note that only a few timeout
        values are supported.
        values are supported.
        Supports CONFIG_WATCHDOG_NOWAYOUT
        Supports CONFIG_WATCHDOG_NOWAYOUT
        GETSUPPORT returns WDIOF_KEEPALIVEPING and WDIOF_SETTIMEOUT.
        GETSUPPORT returns WDIOF_KEEPALIVEPING and WDIOF_SETTIMEOUT.
        The GETSTATUS call returns if the device is open or not.
        The GETSTATUS call returns if the device is open or not.
        [FIXME -- silliness again?]
        [FIXME -- silliness again?]
machzwd.c -- MachZ ZF-Logic
machzwd.c -- MachZ ZF-Logic
        Hardcoded timeout of 10 seconds
        Hardcoded timeout of 10 seconds
        Has a module parameter "action" that controls what happens
        Has a module parameter "action" that controls what happens
        when the timeout runs out which can be 0 = RESET (default),
        when the timeout runs out which can be 0 = RESET (default),
        1 = SMI, 2 = NMI, 3 = SCI.
        1 = SMI, 2 = NMI, 3 = SCI.
        Supports CONFIG_WATCHDOG_NOWAYOUT and the magic character
        Supports CONFIG_WATCHDOG_NOWAYOUT and the magic character
        'V' close handling.
        'V' close handling.
        GETSUPPORT returns WDIOF_KEEPALIVEPING, and the GETSTATUS call
        GETSUPPORT returns WDIOF_KEEPALIVEPING, and the GETSTATUS call
        returns if the device is open or not.  [FIXME -- silliness
        returns if the device is open or not.  [FIXME -- silliness
        again?]
        again?]
mixcomwd.c -- MixCom Watchdog
mixcomwd.c -- MixCom Watchdog
        [FIXME -- I'm unable to tell what the timeout is]
        [FIXME -- I'm unable to tell what the timeout is]
        Supports CONFIG_WATCHDOG_NOWAYOUT
        Supports CONFIG_WATCHDOG_NOWAYOUT
        GETSUPPORT returns WDIOF_KEEPALIVEPING, GETSTATUS returns if
        GETSUPPORT returns WDIOF_KEEPALIVEPING, GETSTATUS returns if
        the device is opened or not [FIXME -- I'm not really sure how
        the device is opened or not [FIXME -- I'm not really sure how
        this works, there seems to be some magic connected to
        this works, there seems to be some magic connected to
        CONFIG_WATCHDOG_NOWAYOUT]
        CONFIG_WATCHDOG_NOWAYOUT]
pcwd.c -- Berkshire PC Watchdog
pcwd.c -- Berkshire PC Watchdog
        Hardcoded timeout of 1.5 seconds
        Hardcoded timeout of 1.5 seconds
        Supports CONFIG_WATCHDOG_NOWAYOUT
        Supports CONFIG_WATCHDOG_NOWAYOUT
        GETSUPPORT returns WDIOF_OVERHEAT|WDIOF_CARDRESET and both
        GETSUPPORT returns WDIOF_OVERHEAT|WDIOF_CARDRESET and both
        GETSTATUS and GETBOOTSTATUS return something useful.
        GETSTATUS and GETBOOTSTATUS return something useful.
        The SETOPTIONS call can be used to enable and disable the card
        The SETOPTIONS call can be used to enable and disable the card
        and to ask the driver to call panic if the system overheats.
        and to ask the driver to call panic if the system overheats.
sbc60xxwdt.c -- 60xx Single Board Computer
sbc60xxwdt.c -- 60xx Single Board Computer
        Hardcoded timeout of 10 seconds
        Hardcoded timeout of 10 seconds
        Does not support CONFIG_WATCHDOG_NOWAYOUT, but has the magic
        Does not support CONFIG_WATCHDOG_NOWAYOUT, but has the magic
        character 'V' close handling.
        character 'V' close handling.
        No bits set in GETSUPPORT
        No bits set in GETSUPPORT
scx200.c -- National SCx200 CPUs
scx200.c -- National SCx200 CPUs
        Not in the kernel yet.
        Not in the kernel yet.
        The timeout is set using a module parameter "margin" which
        The timeout is set using a module parameter "margin" which
        defaults to 60 seconds.  The timeout can also be set using
        defaults to 60 seconds.  The timeout can also be set using
        SETTIMEOUT and read using GETTIMEOUT.
        SETTIMEOUT and read using GETTIMEOUT.
        Supports a module parameter "nowayout" that is initialized
        Supports a module parameter "nowayout" that is initialized
        with the value of CONFIG_WATCHDOG_NOWAYOUT.  Also supports the
        with the value of CONFIG_WATCHDOG_NOWAYOUT.  Also supports the
        magic character 'V' handling.
        magic character 'V' handling.
shwdt.c -- SuperH 3/4 processors
shwdt.c -- SuperH 3/4 processors
        [FIXME -- I'm unable to tell what the timeout is]
        [FIXME -- I'm unable to tell what the timeout is]
        Supports CONFIG_WATCHDOG_NOWAYOUT
        Supports CONFIG_WATCHDOG_NOWAYOUT
        GETSUPPORT returns WDIOF_KEEPALIVEPING, and the GETSTATUS call
        GETSUPPORT returns WDIOF_KEEPALIVEPING, and the GETSTATUS call
        returns if the device is open or not.  [FIXME -- silliness
        returns if the device is open or not.  [FIXME -- silliness
        again?]
        again?]
softdog.c -- Software watchdog
softdog.c -- Software watchdog
        The timeout is set with the module parameter "soft_margin"
        The timeout is set with the module parameter "soft_margin"
        which defaults to 60 seconds, the timeout is also settable
        which defaults to 60 seconds, the timeout is also settable
        using the SETTIMEOUT ioctl.
        using the SETTIMEOUT ioctl.
        Supports CONFIG_WATCHDOG_NOWAYOUT
        Supports CONFIG_WATCHDOG_NOWAYOUT
        WDIOF_SETTIMEOUT bit set in GETSUPPORT
        WDIOF_SETTIMEOUT bit set in GETSUPPORT
w83877f_wdt.c -- W83877F Computer
w83877f_wdt.c -- W83877F Computer
        Hardcoded timeout of 30 seconds
        Hardcoded timeout of 30 seconds
        Does not support CONFIG_WATCHDOG_NOWAYOUT, but has the magic
        Does not support CONFIG_WATCHDOG_NOWAYOUT, but has the magic
        character 'V' close handling.
        character 'V' close handling.
        No bits set in GETSUPPORT
        No bits set in GETSUPPORT
wdt.c -- ICS WDT500/501 ISA and
wdt.c -- ICS WDT500/501 ISA and
wdt_pci.c -- ICS WDT500/501 PCI
wdt_pci.c -- ICS WDT500/501 PCI
        Default timeout of 60 seconds.  The timeout is also settable
        Default timeout of 60 seconds.  The timeout is also settable
        using the SETTIMEOUT ioctl.
        using the SETTIMEOUT ioctl.
        Supports CONFIG_WATCHDOG_NOWAYOUT
        Supports CONFIG_WATCHDOG_NOWAYOUT
        GETSUPPORT returns with bits set depending on the actual
        GETSUPPORT returns with bits set depending on the actual
        card. The WDT501 supports a lot of external monitoring, the
        card. The WDT501 supports a lot of external monitoring, the
        WDT500 much less.
        WDT500 much less.
wdt285.c -- Footbridge watchdog
wdt285.c -- Footbridge watchdog
        The timeout is set with the module parameter "soft_margin"
        The timeout is set with the module parameter "soft_margin"
        which defaults to 60 seconds.  The timeout is also settable
        which defaults to 60 seconds.  The timeout is also settable
        using the SETTIMEOUT ioctl.
        using the SETTIMEOUT ioctl.
        Does not support CONFIG_WATCHDOG_NOWAYOUT
        Does not support CONFIG_WATCHDOG_NOWAYOUT
        WDIOF_SETTIMEOUT bit set in GETSUPPORT
        WDIOF_SETTIMEOUT bit set in GETSUPPORT
wdt977.c -- Netwinder W83977AF chip
wdt977.c -- Netwinder W83977AF chip
        Hardcoded timeout of 3 minutes
        Hardcoded timeout of 3 minutes
        Supports CONFIG_WATCHDOG_NOWAYOUT
        Supports CONFIG_WATCHDOG_NOWAYOUT
        Does not support any ioctls at all.
        Does not support any ioctls at all.
 
 

powered by: WebSVN 2.1.0

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