Lines Matching +full:fan +full:- +full:stop +full:- +full:to +full:- +full:start +full:- +full:us

1 // SPDX-License-Identifier: GPL-2.0+
5 * (c) Copyright 1996-1997 Alan Cox <[email protected]>,
10 * "AS-IS" and at no charge.
25 * Tigran Aivazian : Restructured wdt_init() to handle
71 /* You must set these - there is no sane way to probe for this board. */
82 /* Support for the Fan Tachometer on the WDT501-P */
86 "WDT501-P Fan Tachometer support (0=disable, default=0)");
91 "WDT501-P Card type (500 or 501, default=500)");
114 * Start the watchdog driver.
139 * Stop the watchdog driver.
166 wdt_ctr_mode(1, 2); /* Re-Program CTR1 for Mode 2: in wdt_ping()
175 * @t: the new heartbeat value that needs to be set.
178 * value is incorrect we keep the old value and return -EINVAL. If
185 return -EINVAL; in wdt_set_heartbeat()
196 * several board variants so we have to know which bits are valid. Some
197 * bits default to one and some to zero in order to be maximally painful.
286 pr_crit("Possible fan fault\n"); in wdt_interrupt()
308 * @file: file handle to the watchdog
309 * @buf: buffer to write (unused as data does not matter here
311 * @ppos: pointer to the position to write. No seeks allowed
313 * A write to a watchdog device is defined as a keepalive signal. Any
330 return -EFAULT; in wdt_write()
342 * @file: file handle to the device
347 * according to their available features. We only actually usefully support
366 /* Add options according to the card we have */ in wdt_ioctl()
377 return copy_to_user(argp, &ident, sizeof(ident)) ? -EFAULT : 0; in wdt_ioctl()
388 return -EFAULT; in wdt_ioctl()
390 return -EINVAL; in wdt_ioctl()
396 return -ENOTTY; in wdt_ioctl()
403 * @file: file handle to device
407 * cascade, into counter 1 which downcounts to reboot. When the counter
409 * set set to be as long as possible.
415 return -EBUSY; in wdt_open()
425 * @inode: inode to board
426 * @file: file handle to board
429 * between people who want their watchdog to be able to shut down and
430 * those who want to be sure if the watchdog manager dies the machine
432 * case you have to open it again very soon.
441 pr_crit("WDT device closed unexpectedly. WDT will not stop!\n"); in wdt_release()
450 * @file: file handle to the watchdog board
451 * @buf: buffer to write 1 byte into
465 return -EFAULT; in wdt_temp_read()
473 * @file: file handle to device
485 * @inode: inode to board
486 * @file: file handle to board
502 * Our notifier is called on system shutdowns. We want to turn the card
505 * trust me - if it happens it does suck.
550 * The WDT card needs to learn about soft shutdowns in order to
562 * If your watchdog is set to continue ticking on close and you unload
564 * will not touch PC memory so all is fine. You just have to load a new
581 * Set up the WDT watchdog board. All we have to do is grab the
582 * resources we require and bitch if anyone beat us to them.
592 return -ENODEV; in wdt_init()
596 if not reset to the default */ in wdt_init()
605 ret = -EBUSY; in wdt_init()
637 pr_info("WDT500/501-P driver 0.10 at 0x%04x (Interrupt %d). heartbeat=%d sec (nowayout=%d)\n", in wdt_init()
640 pr_info("Fan Tachometer is %s\n", in wdt_init()