Lines Matching +full:timeout +full:- +full:sec

1 // SPDX-License-Identifier: GPL-2.0+
5 * (c) Copyright 2000-2001 Marek Michalkiewicz <[email protected]>
15 * "AS-IS" and at no charge.
19 * 14-Dec-2001 Matt Domsch <[email protected]>
22 * 16-Oct-2002 Rob Radez <[email protected]>
44 #define WATCHDOG_TIMEOUT 60 /* 60 sec default timeout */
52 * You must set these - there is no sane way to probe for this board.
54 * To enable or restart, write the timeout value in seconds (1 to 63)
56 * Both are 0x443 for most boards (tested on a PCA-6276VE-00B1), but
57 * check your manual (at least the PCA-6159 seems to be different -
59 * (0x43 is also a write-only control register for the 8254 timer!)
70 static int timeout = WATCHDOG_TIMEOUT; /* in seconds */ variable
71 module_param(timeout, int, 0);
72 MODULE_PARM_DESC(timeout,
73 "Watchdog timeout in seconds. 1<= timeout <=63, default="
89 outb_p(timeout, wdt_start); in advwdt_ping()
100 return -EINVAL; in advwdt_set_heartbeat()
101 timeout = t; in advwdt_set_heartbeat()
121 return -EFAULT; in advwdt_write()
147 return -EFAULT; in advwdt_ioctl()
156 int options, retval = -EINVAL; in advwdt_ioctl()
159 return -EFAULT; in advwdt_ioctl()
176 return -EFAULT; in advwdt_ioctl()
178 return -EINVAL; in advwdt_ioctl()
182 return put_user(timeout, p); in advwdt_ioctl()
184 return -ENOTTY; in advwdt_ioctl()
192 return -EBUSY; in advwdt_open()
245 ret = -EIO; in advwdt_probe()
252 ret = -EIO; in advwdt_probe()
258 if (advwdt_set_heartbeat(timeout)) { in advwdt_probe()
260 pr_info("timeout value must be 1<=x<=63, using %d\n", timeout); in advwdt_probe()
269 pr_info("initialized. timeout=%d sec (nowayout=%d)\n", in advwdt_probe()
270 timeout, nowayout); in advwdt_probe()
310 -1, NULL, 0); in advwdt_init()