Lines Matching +full:1 +full:- +full:based

1 // SPDX-License-Identifier: GPL-2.0+
7 * Based on ib700wdt.c, which is based on advantechwdt.c which is based
8 * on acquirewdt.c which is based on wdt.c.
12 * Based on advantechwdt.c which is based on acquirewdt.c which
13 * is based on wdt.c.
15 * (c) Copyright 2000-2001 Marek Michalkiewicz <marekm@linux.org.pl>
17 * Based on acquirewdt.c which is based on wdt.c.
25 * "AS-IS" and at no charge.
29 * 14-Dec-2001 Matt Domsch <Matt_Domsch@dell.com>
76 * MOV AX,000nH (set multiplier n, from 1-4)
79 * MOV AX,000mH (set base timer m, from 0-F)
95 * M | 1 2 3 4
96 * --|----------------------------------
98 * 1 | 1s 10s 100s 200s
115 * For N=1, Timeout = (M+1) * 0.5s
116 * For N=2, Timeout = (M+1) * 5s
117 * For N=3, Timeout = (M+1) * 50s
118 * For N=4, Timeout = (M+1) * 100s
123 {0, 1}, /* 0 = 0.5s */
124 {1, 1}, /* 1 = 1s */
125 {2, 1}, /* 2 = 1.5s */
126 {3, 1}, /* 3 = 2s */
127 {4, 1}, /* 4 = 2.5s */
128 {5, 1}, /* 5 = 3s */
129 {6, 1}, /* 6 = 3.5s */
130 {7, 1}, /* 7 = 4s */
131 {8, 1}, /* 8 = 4.5s */
132 {9, 1}, /* 9 = 5s */
133 {0xA, 1}, /* 10 = 5.5s */
134 {0xB, 1}, /* 11 = 6s */
135 {0xC, 1}, /* 12 = 6.5s */
136 {0xD, 1}, /* 13 = 7s */
137 {0xE, 1}, /* 14 = 7.5s */
138 {0xF, 1}, /* 15 = 8s */
140 {1, 2}, /* 17 = 10s */
156 {1, 3}, /* 33 = 100s */
172 {1, 4}, /* 49 = 200s */
198 MODULE_PARM_DESC(timeout, "Index into timeout table (0-63) (default=27 (60s))");
208 /* Activate and pre-configure watchdog */
232 /* De-activate the watchdog */ in sbc8360_stop()
250 return -EFAULT; in sbc8360_write()
263 return -EBUSY; in sbc8360_open()
331 pr_err("Invalid timeout index (must be 0-63)\n"); in sbc8360_init()
332 res = -EINVAL; in sbc8360_init()
336 if (!request_region(SBC8360_ENABLE, 1, "SBC8360")) { in sbc8360_init()
339 res = -EIO; in sbc8360_init()
342 if (!request_region(SBC8360_BASETIME, 1, "SBC8360")) { in sbc8360_init()
345 res = -EIO; in sbc8360_init()
362 wd_multiplier = wd_times[timeout][1]; in sbc8360_init()
364 if (wd_multiplier == 1) in sbc8360_init()
365 mseconds = (wd_margin + 1) * 500; in sbc8360_init()
367 mseconds = (wd_margin + 1) * 5000; in sbc8360_init()
369 mseconds = (wd_margin + 1) * 50000; in sbc8360_init()
371 mseconds = (wd_margin + 1) * 100000; in sbc8360_init()
381 release_region(SBC8360_BASETIME, 1); in sbc8360_init()
383 release_region(SBC8360_ENABLE, 1); in sbc8360_init()
392 release_region(SBC8360_ENABLE, 1); in sbc8360_exit()
393 release_region(SBC8360_BASETIME, 1); in sbc8360_exit()