• Wim Van Sebroeck's avatar
    WATCHDOG] v2.6.4 wdt977-v0.03-patch · b52ce0ba
    Wim Van Sebroeck authored
    Version 0.03 of wdt977.c - Changes that were made are:
    * Extract the stop code in a seperate function (wdt977_stop)
    * Extract the start code in a seperate function (wdt977_start)
    * Rename kick_wdog to wdt977_keepalive for consistency
    * Extract the watchdog's status code to a seperate function (wdt977_get_status)
    * Change the way we deal with the watchdog timeout:
       Up till now we used timeoutM (in minutes) as the correct value and then
       calculated timeout as being timeoutM*60 or *timeoutM*120 (depending on
       wether or not we have the netwinder hardware bug).
    
       From now on timeout is the correct value and we calculate timeoutM out
       of it. Because of this we start with checking wether or not we have a
       correct timeout value (if not we reset it to the default value) and we
       automatically calculate timeoutM. Each time we change timeout with a
       correct timeout value, we recalculate timeoutM.
    * Extended ioctl code with WDIOC_SETOPTIONS and updated the watchdog_info structure
    * Added notifier support
    
    Code has been tested by Woody
    b52ce0ba
wdt977.c 9.98 KB