Lines Matching +full:wdt +full:- +full:enable +full:- +full:once
1 // SPDX-License-Identifier: GPL-2.0+
3 * ICP Wafer 5823 Single Board Computer WDT driver
7 * (c) Copyright 2002 Justin Cormack <justin@street-vision.com>
11 * Based on advantechwdt.c which is based on wdt.c.
14 * (c) Copyright 1996-1997 Alan Cox <alan@lxorguk.ukuu.org.uk>,
19 * "AS-IS" and at no charge.
40 #define WATCHDOG_NAME "Wafer 5823 WDT"
49 * You must set these - there is no sane way to probe for this board.
51 * To enable, write the timeout value in seconds (1 to 255) to I/O
69 "Watchdog cannot be stopped once started (default="
110 return -EFAULT; in wafwdt_write()
132 .identity = "Wafer 5823 WDT", in wafwdt_ioctl()
138 return -EFAULT; in wafwdt_ioctl()
147 int options, retval = -EINVAL; in wafwdt_ioctl()
150 return -EFAULT; in wafwdt_ioctl()
171 return -EFAULT; in wafwdt_ioctl()
173 return -EINVAL; in wafwdt_ioctl()
182 return -ENOTTY; in wafwdt_ioctl()
190 return -EBUSY; in wafwdt_open()
204 pr_crit("WDT device closed unexpectedly. WDT will not stop!\n"); in wafwdt_close()
244 * The WDT needs to learn about soft shutdowns in order to
256 pr_info("WDT driver for Wafer 5823 single board computer initialising\n"); in wafwdt_init()
265 if (!request_region(wdt_stop, 1, "Wafer 5823 WDT")) { in wafwdt_init()
267 ret = -EIO; in wafwdt_init()
272 if (!request_region(wdt_start, 1, "Wafer 5823 WDT")) { in wafwdt_init()
274 ret = -EIO; in wafwdt_init()
319 MODULE_DESCRIPTION("ICP Wafer 5823 Single Board Computer WDT driver");