Lines Matching +full:watchdog +full:- +full:timers
1 // SPDX-License-Identifier: GPL-2.0-or-later
3 * MachZ ZF-Logic Watchdog Timer driver for Linux
6 * any of this software. This material is provided "AS-IS" in
13 * We have two timers (wd#1, wd#2) driven by a 32 KHz clock with the
15 * wd#1 - 2 seconds;
16 * wd#2 - 7.2 ms;
21 * 14-Dec-2001 Matt Domsch <Matt_Domsch@dell.com>
33 #include <linux/watchdog.h>
87 MODULE_DESCRIPTION("MachZ ZF-Logic Watchdog driver");
93 "Watchdog cannot be stopped once started (default="
101 .identity = "ZF-Logic watchdog",
106 * action refers to action taken when watchdog resets
115 MODULE_PARM_DESC(action, "after watchdog resets, generate: "
131 /* timeout for hardware watchdog (~500ms) */
195 /* stop watchdog timer */ in zf_timer_off()
202 pr_info("Watchdog timer is now disabled\n"); in zf_timer_off()
226 /* start watchdog timer */ in zf_timer_on()
232 pr_info("Watchdog timer is now enabled\n"); in zf_timer_on()
244 dprintk("time_before: %ld\n", next_heartbeat - jiffies); in zf_ping()
272 * no way to disable watchdog ;) in zf_write()
286 return -EFAULT; in zf_write()
311 return -EFAULT; in zf_ioctl()
320 return -ENOTTY; in zf_ioctl()
328 return -EBUSY; in zf_open()
371 .name = "watchdog",
388 pr_info("Watchdog using action = %s\n", str[act]); in zf_show_action()
395 pr_info("MachZ ZF-Logic Watchdog driver initializing\n"); in zf_init()
399 pr_warn("no ZF-Logic found\n"); in zf_init()
400 return -ENODEV; in zf_init()
412 ret = -EBUSY; in zf_init()