1*0566170fSBjoern A. Zeeb.\"- 2*0566170fSBjoern A. Zeeb.\" Copyright (c) 2012 Bjoern A. Zeeb <bz@FreeBSD.org> 3*0566170fSBjoern A. Zeeb.\" All rights reserved. 4*0566170fSBjoern A. Zeeb.\" 5*0566170fSBjoern A. Zeeb.\" Redistribution and use in source and binary forms, with or without 6*0566170fSBjoern A. Zeeb.\" modification, are permitted provided that the following conditions 7*0566170fSBjoern A. Zeeb.\" are met: 8*0566170fSBjoern A. Zeeb.\" 1. Redistributions of source code must retain the above copyright 9*0566170fSBjoern A. Zeeb.\" notice, this list of conditions and the following disclaimer. 10*0566170fSBjoern A. Zeeb.\" 2. Redistributions in binary form must reproduce the above copyright 11*0566170fSBjoern A. Zeeb.\" notice, this list of conditions and the following disclaimer in the 12*0566170fSBjoern A. Zeeb.\" documentation and/or other materials provided with the distribution. 13*0566170fSBjoern A. Zeeb.\" 14*0566170fSBjoern A. Zeeb.\" THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND 15*0566170fSBjoern A. Zeeb.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 16*0566170fSBjoern A. Zeeb.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 17*0566170fSBjoern A. Zeeb.\" ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE 18*0566170fSBjoern A. Zeeb.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 19*0566170fSBjoern A. Zeeb.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 20*0566170fSBjoern A. Zeeb.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 21*0566170fSBjoern A. Zeeb.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 22*0566170fSBjoern A. Zeeb.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 23*0566170fSBjoern A. Zeeb.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 24*0566170fSBjoern A. Zeeb.\" SUCH DAMAGE. 25*0566170fSBjoern A. Zeeb.\" 26*0566170fSBjoern A. Zeeb.\" $FreeBSD$ 27*0566170fSBjoern A. Zeeb.\" 28*0566170fSBjoern A. Zeeb.Dd March 6, 2012 29*0566170fSBjoern A. Zeeb.Dt wbwd 4 30*0566170fSBjoern A. Zeeb.Os 31*0566170fSBjoern A. Zeeb.Sh NAME 32*0566170fSBjoern A. Zeeb.Nm wbwd 33*0566170fSBjoern A. Zeeb.Nd device driver for watchdog timer found on Winbond Super I/O chips 34*0566170fSBjoern A. Zeeb.Sh SYNOPSIS 35*0566170fSBjoern A. ZeebTo compile this driver into the kernel, place the following line in your 36*0566170fSBjoern A. Zeebkernel configuration file: 37*0566170fSBjoern A. Zeeb.Bd -ragged -offset indent 38*0566170fSBjoern A. Zeeb.Cd "device wbwd" 39*0566170fSBjoern A. Zeeb.Ed 40*0566170fSBjoern A. Zeeb.Pp 41*0566170fSBjoern A. ZeebAlternatively, to load the driver as a module at boot time, place the following 42*0566170fSBjoern A. Zeebline in 43*0566170fSBjoern A. Zeeb.Xr loader.conf 5 : 44*0566170fSBjoern A. Zeeb.Bd -literal -offset indent 45*0566170fSBjoern A. Zeebwbwd_load="YES" 46*0566170fSBjoern A. Zeeb.Ed 47*0566170fSBjoern A. Zeeb.Pp 48*0566170fSBjoern A. ZeebIn 49*0566170fSBjoern A. Zeeb.Pa /boot/device.hints : 50*0566170fSBjoern A. Zeeb.Cd hint.wbwd.0.at="isa" 51*0566170fSBjoern A. Zeeb.Sh DESCRIPTION 52*0566170fSBjoern A. ZeebThe 53*0566170fSBjoern A. Zeeb.Nm 54*0566170fSBjoern A. Zeebdriver provides 55*0566170fSBjoern A. Zeeb.Xr watchdog 4 56*0566170fSBjoern A. Zeebsupport for the watchdog interrupt timer present on at least the following 57*0566170fSBjoern A. ZeebWinbond Super I/O chips: 58*0566170fSBjoern A. Zeeb.Pp 59*0566170fSBjoern A. Zeeb.Bl -bullet -compact 60*0566170fSBjoern A. Zeeb.It 61*0566170fSBjoern A. Zeeb83627HF/F/HG/G Rev. G 62*0566170fSBjoern A. Zeeb.It 63*0566170fSBjoern A. Zeeb83627HF/F/HG/G Rev. J 64*0566170fSBjoern A. Zeeb.It 65*0566170fSBjoern A. Zeeb83627HF/F/HG/G Rev. UD-A 66*0566170fSBjoern A. Zeeb.It 67*0566170fSBjoern A. Zeeb83627DHG IC ver. 5 68*0566170fSBjoern A. Zeeb.El 69*0566170fSBjoern A. Zeeb.Sh SYSCTL VARIABLES 70*0566170fSBjoern A. ZeebThe 71*0566170fSBjoern A. Zeeb.Nm 72*0566170fSBjoern A. Zeebdriver provides the following options as 73*0566170fSBjoern A. Zeeb.Xr sysctl 8 74*0566170fSBjoern A. Zeebvariables. 75*0566170fSBjoern A. Zeeb.Bl -tag -width "xxxxxx" 76*0566170fSBjoern A. Zeeb.It Va dev.wbwd.0.timeout_override 77*0566170fSBjoern A. ZeebThis variable allows to program the timer to a value independent on the one 78*0566170fSBjoern A. Zeebprovided by the 79*0566170fSBjoern A. Zeeb.Xr watchdog 4 80*0566170fSBjoern A. Zeebframework while still relying on the regular updates from e.g. 81*0566170fSBjoern A. Zeeb.Xr watchdogd 8 . 82*0566170fSBjoern A. ZeebThis is particularly useful if your system provides multiple watchdogs and 83*0566170fSBjoern A. Zeebyou want them to fire in a special sequence to trigger an NMI after a shorter 84*0566170fSBjoern A. Zeebperiod than the reset timeout for example. 85*0566170fSBjoern A. ZeebThe value set must not be lower than the sleep time of 86*0566170fSBjoern A. Zeeb.Xr watchdogd 8 . 87*0566170fSBjoern A. ZeebA value of 0 disables this feature and the timeout value provided by 88*0566170fSBjoern A. Zeeb.Xr watchdog 4 89*0566170fSBjoern A. Zeebwill be used. 90*0566170fSBjoern A. Zeeb.It Va dev.wbwd.0.debug_verbose 91*0566170fSBjoern A. ZeebIf set this sysctl will tell the driver to log its current state before and 92*0566170fSBjoern A. Zeebafter the timer reset on each invocation from 93*0566170fSBjoern A. Zeeb.Xr watchdog 9 94*0566170fSBjoern A. Zeebto the kernel message buffer for debugging. 95*0566170fSBjoern A. Zeeb.It Va dev.wbwd.0.debug 96*0566170fSBjoern A. ZeebThis read-only value gives the state of some registers on last update. 97*0566170fSBjoern A. Zeeb.El 98*0566170fSBjoern A. Zeeb.Pp 99*0566170fSBjoern A. ZeebThe 100*0566170fSBjoern A. Zeeb.Nm 101*0566170fSBjoern A. Zeebdriver also provides further sysctl options that are hidden by default. 102*0566170fSBjoern A. ZeebSee the source code for more information. 103*0566170fSBjoern A. Zeeb.Sh SEE ALSO 104*0566170fSBjoern A. Zeeb.Xr watchdog 4 , 105*0566170fSBjoern A. Zeeb.Xr device.hints 5 , 106*0566170fSBjoern A. Zeeb.Xr watchdog 8 , 107*0566170fSBjoern A. Zeeb.Xr watchdogd 8 , 108*0566170fSBjoern A. Zeeb.Xr watchdog 9 109*0566170fSBjoern A. Zeeb.Sh HISTORY 110*0566170fSBjoern A. ZeebThe 111*0566170fSBjoern A. Zeeb.Nm 112*0566170fSBjoern A. Zeebdriver first appeared in 113*0566170fSBjoern A. Zeeb.Fx 10.0 . 114*0566170fSBjoern A. Zeeb.Sh AUTHORS 115*0566170fSBjoern A. Zeeb.An -nosplit 116*0566170fSBjoern A. ZeebThis manual page was written by 117*0566170fSBjoern A. Zeeb.An Bjoern A. Zeeb Aq bz@FreeBSD.org . 118