Lines Matching +full:wdt +full:- +full:timer +full:- +full:index
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
15 * wd#1 - 2 seconds;
16 * wd#2 - 7.2 ms;
21 * 14-Dec-2001 Matt Domsch <Matt_Domsch@dell.com>
30 #include <linux/timer.h>
45 #define INDEX 0x218 macro
74 #define zf_writew(port, data) { outb(port, INDEX); outw(data, DATA_W); }
75 #define zf_writeb(port, data) { outb(port, INDEX); outb(data, DATA_B); }
81 outb(port, INDEX); in zf_readw()
87 MODULE_DESCRIPTION("MachZ ZF-Logic Watchdog driver");
101 .identity = "ZF-Logic watchdog",
184 * stop hardware timer
195 /* stop watchdog timer */ in zf_timer_off()
202 pr_info("Watchdog timer is now disabled\n"); in zf_timer_off()
207 * start hardware timer
223 /* start the timer for internal ping */ in zf_timer_on()
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()
286 return -EFAULT; in zf_write()
311 return -EFAULT; in zf_ioctl()
320 return -ENOTTY; in zf_ioctl()
328 return -EBUSY; in zf_open()
341 pr_err("device file closed unexpectedly. Will not stop the WDT!\n"); in zf_close()
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()
410 if (!request_region(ZF_IOBASE, 3, "MachZ ZFL WDT")) { in zf_init()
412 ret = -EBUSY; in zf_init()