xref: /freebsd/share/man/man4/wbwd.4 (revision fa9896e082a1046ff4fbc75fcba4d18d1f2efc19)
10566170fSBjoern A. Zeeb.\"-
20566170fSBjoern A. Zeeb.\" Copyright (c) 2012 Bjoern A. Zeeb <bz@FreeBSD.org>
30566170fSBjoern A. Zeeb.\" All rights reserved.
40566170fSBjoern A. Zeeb.\"
50566170fSBjoern A. Zeeb.\" Redistribution and use in source and binary forms, with or without
60566170fSBjoern A. Zeeb.\" modification, are permitted provided that the following conditions
70566170fSBjoern A. Zeeb.\" are met:
80566170fSBjoern A. Zeeb.\" 1. Redistributions of source code must retain the above copyright
90566170fSBjoern A. Zeeb.\"    notice, this list of conditions and the following disclaimer.
100566170fSBjoern A. Zeeb.\" 2. Redistributions in binary form must reproduce the above copyright
110566170fSBjoern A. Zeeb.\"    notice, this list of conditions and the following disclaimer in the
120566170fSBjoern A. Zeeb.\"    documentation and/or other materials provided with the distribution.
130566170fSBjoern A. Zeeb.\"
140566170fSBjoern A. Zeeb.\" THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
150566170fSBjoern A. Zeeb.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
160566170fSBjoern A. Zeeb.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
170566170fSBjoern A. Zeeb.\" ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
180566170fSBjoern A. Zeeb.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
190566170fSBjoern A. Zeeb.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
200566170fSBjoern A. Zeeb.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
210566170fSBjoern A. Zeeb.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
220566170fSBjoern A. Zeeb.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
230566170fSBjoern A. Zeeb.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
240566170fSBjoern A. Zeeb.\" SUCH DAMAGE.
250566170fSBjoern A. Zeeb.\"
26bc37ac7eSAndriy Gapon.Dd October 16, 2019
27edf5bf99SJoel Dahl.Dt WBWD 4
280566170fSBjoern A. Zeeb.Os
290566170fSBjoern A. Zeeb.Sh NAME
300566170fSBjoern A. Zeeb.Nm wbwd
31baa7dd65SAlexander Motin.Nd device driver for Winbond/Nuvoton Super I/O chips watchdog timer
320566170fSBjoern A. Zeeb.Sh SYNOPSIS
33bc37ac7eSAndriy GaponTo compile this driver into the kernel, place the following lines in your
340566170fSBjoern A. Zeebkernel configuration file:
350566170fSBjoern A. Zeeb.Bd -ragged -offset indent
36bc37ac7eSAndriy Gapon.Cd "device superio"
370566170fSBjoern A. Zeeb.Cd "device wbwd"
380566170fSBjoern A. Zeeb.Ed
390566170fSBjoern A. Zeeb.Pp
400566170fSBjoern A. ZeebAlternatively, to load the driver as a module at boot time, place the following
410566170fSBjoern A. Zeebline in
420566170fSBjoern A. Zeeb.Xr loader.conf 5 :
430566170fSBjoern A. Zeeb.Bd -literal -offset indent
440566170fSBjoern A. Zeebwbwd_load="YES"
450566170fSBjoern A. Zeeb.Ed
460566170fSBjoern A. Zeeb.Sh DESCRIPTION
470566170fSBjoern A. ZeebThe
480566170fSBjoern A. Zeeb.Nm
490566170fSBjoern A. Zeebdriver provides
500566170fSBjoern A. Zeeb.Xr watchdog 4
510566170fSBjoern A. Zeebsupport for the watchdog interrupt timer present on at least the following
52baa7dd65SAlexander MotinSuper I/O chips:
530566170fSBjoern A. Zeeb.Bl -bullet -compact
540566170fSBjoern A. Zeeb.It
55baa7dd65SAlexander MotinWinbond 83627HF/F/HG/G
560566170fSBjoern A. Zeeb.It
57baa7dd65SAlexander MotinWinbond 83627S
580566170fSBjoern A. Zeeb.It
59baa7dd65SAlexander MotinWinbond 83697HF
600566170fSBjoern A. Zeeb.It
61baa7dd65SAlexander MotinWinbond 83697UG
62baa7dd65SAlexander Motin.It
63baa7dd65SAlexander MotinWinbond 83637HF
64baa7dd65SAlexander Motin.It
65baa7dd65SAlexander MotinWinbond 83627THF
66baa7dd65SAlexander Motin.It
67baa7dd65SAlexander MotinWinbond 83687THF
68baa7dd65SAlexander Motin.It
69baa7dd65SAlexander MotinWinbond 83627EHF
70baa7dd65SAlexander Motin.It
71baa7dd65SAlexander MotinWinbond 83627DHG
72baa7dd65SAlexander Motin.It
73baa7dd65SAlexander MotinWinbond 83627UHG
74baa7dd65SAlexander Motin.It
75baa7dd65SAlexander MotinWinbond 83667HG
76baa7dd65SAlexander Motin.It
77baa7dd65SAlexander MotinWinbond 83627DHG-P
78baa7dd65SAlexander Motin.It
79baa7dd65SAlexander MotinWinbond 83667HG-B
80baa7dd65SAlexander Motin.It
81baa7dd65SAlexander MotinNuvoton NCT6775
82baa7dd65SAlexander Motin.It
83baa7dd65SAlexander MotinNuvoton NCT6776
84baa7dd65SAlexander Motin.It
85baa7dd65SAlexander MotinNuvoton NCT6102
86baa7dd65SAlexander Motin.It
87baa7dd65SAlexander MotinNuvoton NCT6779
88baa7dd65SAlexander Motin.It
89baa7dd65SAlexander MotinNuvoton NCT6791
90baa7dd65SAlexander Motin.It
91baa7dd65SAlexander MotinNuvoton NCT6792
920566170fSBjoern A. Zeeb.El
930566170fSBjoern A. Zeeb.Sh SYSCTL VARIABLES
940566170fSBjoern A. ZeebThe
950566170fSBjoern A. Zeeb.Nm
960566170fSBjoern A. Zeebdriver provides the following options as
970566170fSBjoern A. Zeeb.Xr sysctl 8
980566170fSBjoern A. Zeebvariables.
990566170fSBjoern A. Zeeb.Bl -tag -width "xxxxxx"
1000566170fSBjoern A. Zeeb.It Va dev.wbwd.0.timeout_override
1010566170fSBjoern A. ZeebThis variable allows to program the timer to a value independent on the one
1020566170fSBjoern A. Zeebprovided by the
1030566170fSBjoern A. Zeeb.Xr watchdog 4
1040566170fSBjoern A. Zeebframework while still relying on the regular updates from e.g.
1050566170fSBjoern A. Zeeb.Xr watchdogd 8 .
1060566170fSBjoern A. ZeebThis is particularly useful if your system provides multiple watchdogs and
1070566170fSBjoern A. Zeebyou want them to fire in a special sequence to trigger an NMI after a shorter
1080566170fSBjoern A. Zeebperiod than the reset timeout for example.
1090566170fSBjoern A. ZeebThe value set must not be lower than the sleep time of
1100566170fSBjoern A. Zeeb.Xr watchdogd 8 .
1110566170fSBjoern A. ZeebA value of 0 disables this feature and the timeout value provided by
1120566170fSBjoern A. Zeeb.Xr watchdog 4
1130566170fSBjoern A. Zeebwill be used.
1140566170fSBjoern A. Zeeb.It Va dev.wbwd.0.debug_verbose
1150566170fSBjoern A. ZeebIf set this sysctl will tell the driver to log its current state before and
1160566170fSBjoern A. Zeebafter the timer reset on each invocation from
1170566170fSBjoern A. Zeeb.Xr watchdog 9
1180566170fSBjoern A. Zeebto the kernel message buffer for debugging.
1190566170fSBjoern A. Zeeb.It Va dev.wbwd.0.debug
1200566170fSBjoern A. ZeebThis read-only value gives the state of some registers on last update.
1210566170fSBjoern A. Zeeb.El
1220566170fSBjoern A. Zeeb.Pp
1230566170fSBjoern A. ZeebThe
1240566170fSBjoern A. Zeeb.Nm
1250566170fSBjoern A. Zeebdriver also provides further sysctl options that are hidden by default.
1260566170fSBjoern A. ZeebSee the source code for more information.
1270566170fSBjoern A. Zeeb.Sh SEE ALSO
128*d458747eSChristian Brueffer.Xr superio 4 ,
1290566170fSBjoern A. Zeeb.Xr watchdog 4 ,
1300566170fSBjoern A. Zeeb.Xr device.hints 5 ,
1310566170fSBjoern A. Zeeb.Xr watchdog 8 ,
1320566170fSBjoern A. Zeeb.Xr watchdogd 8 ,
1330566170fSBjoern A. Zeeb.Xr watchdog 9
1340566170fSBjoern A. Zeeb.Sh HISTORY
1350566170fSBjoern A. ZeebThe
1360566170fSBjoern A. Zeeb.Nm
1370566170fSBjoern A. Zeebdriver first appeared in
1380566170fSBjoern A. Zeeb.Fx 10.0 .
1390566170fSBjoern A. Zeeb.Sh AUTHORS
1400566170fSBjoern A. Zeeb.An -nosplit
1410566170fSBjoern A. ZeebThis manual page was written by
1426c899950SBaptiste Daroussin.An Bjoern A. Zeeb Aq Mt bz@FreeBSD.org .
143