Lines Matching +full:reset +full:- +full:on +full:- +full:timeout
1 // SPDX-License-Identifier: GPL-2.0+
7 * Based on advantechwdt.c which is based on acquirewdt.c which
8 * is based on wdt.c.
10 * (c) Copyright 2000-2001 Marek Michalkiewicz <[email protected]>
12 * Based on acquirewdt.c which is based on wdt.c.
20 * "AS-IS" and at no charge.
24 * 14-Dec-2001 Matt Domsch <[email protected]>
26 * Added timeout module option to override default
58 * The function of the watchdog timer is to reset the system
60 * watchdog timer and allow the system to reset, write I/O port 0443H.
93 /* Default timeout */
94 #define WATCHDOG_TIMEOUT 30 /* 30 seconds +/- 20% */
95 static int timeout = WATCHDOG_TIMEOUT; /* in seconds */ variable
96 module_param(timeout, int, 0);
97 MODULE_PARM_DESC(timeout,
98 "Watchdog timeout in seconds. 0<= timeout <=30, default="
114 int wd_margin = 15 - ((timeout + 1) / 2); in ibwdt_ping()
134 return -EINVAL; in ibwdt_set_heartbeat()
136 timeout = t; in ibwdt_set_heartbeat()
157 return -EFAULT; in ibwdt_write()
183 return -EFAULT; in ibwdt_ioctl()
192 int options, retval = -EINVAL; in ibwdt_ioctl()
195 return -EFAULT; in ibwdt_ioctl()
213 return -EFAULT; in ibwdt_ioctl()
215 return -EINVAL; in ibwdt_ioctl()
220 return put_user(timeout, p); in ibwdt_ioctl()
223 return -ENOTTY; in ibwdt_ioctl()
231 return -EBUSY; in ibwdt_open()
283 res = -EIO; in ibwdt_probe()
290 res = -EIO; in ibwdt_probe()
295 * if not reset to the default */ in ibwdt_probe()
296 if (ibwdt_set_heartbeat(timeout)) { in ibwdt_probe()
298 pr_info("timeout value must be 0<=x<=30, using %d\n", timeout); in ibwdt_probe()
348 -1, NULL, 0); in ibwdt_init()