Lines Matching +full:watchdog +full:- +full:enable
1 // SPDX-License-Identifier: GPL-2.0+
3 * SBC8360 Watchdog driver
15 * (c) Copyright 2000-2001 Marek Michalkiewicz <marekm@linux.org.pl>
25 * "AS-IS" and at no charge.
29 * 14-Dec-2001 Matt Domsch <Matt_Domsch@dell.com>
40 #include <linux/watchdog.h>
58 * Watchdog Timer Configuration
60 * The function of the watchdog timer is to reset the system automatically
61 * and is defined at I/O port 0120H and 0121H. To enable the watchdog timer
64 * value to I/O port 0121H for the system to stop the watchdog function.
69 * Enabling Watchdog:
70 * MOV AX,000AH (enable, phase I)
73 * MOV AX,000BH (enable, phase II)
76 * MOV AX,000nH (set multiplier n, from 1-4)
79 * MOV AX,000mH (set base timer m, from 0-F)
88 * Disabling Watchdog:
93 * Watchdog timeout configuration values:
96 * --|----------------------------------
198 MODULE_PARM_DESC(timeout, "Index into timeout table (0-63) (default=27 (60s))");
201 "Watchdog cannot be stopped once started (default="
208 /* Activate and pre-configure watchdog */
211 /* Enable the watchdog */ in sbc8360_activate()
222 /* Kernel pings watchdog */
229 /* stop watchdog */
232 /* De-activate the watchdog */ in sbc8360_stop()
250 return -EFAULT; in sbc8360_write()
263 return -EBUSY; in sbc8360_open()
293 sbc8360_stop(); /* Disable the SBC8360 Watchdog */ in sbc8360_notify_sys()
311 .name = "watchdog",
330 pr_err("Invalid timeout index (must be 0-63)\n"); in sbc8360_init()
331 res = -EINVAL; in sbc8360_init()
336 pr_err("ENABLE method I/O %X is not available\n", in sbc8360_init()
338 res = -EIO; in sbc8360_init()
344 res = -EIO; in sbc8360_init()
399 MODULE_DESCRIPTION("SBC8360 watchdog driver");