History log of /freebsd-current/sys/dev/wbwd/wbwd.c
Revision Date Author Comments
# eb634b9f 05-Jun-2024 Mark Johnston <markj@FreeBSD.org>

wbwd: Use device_set_descf()

No functional change intended.


# fdafd315 24-Nov-2023 Warner Losh <imp@FreeBSD.org>

sys: Automated cleanup of cdefs and other formatting

Apply the following automated changes to try to eliminate
no-longer-needed sys/cdefs.h includes as well as now-empty
blank lines in a row.

Remove /^#if.*\n#endif.*\n#include\s+<sys/cdefs.h>.*\n/
Remove /\n+#include\s+<sys/cdefs.h>.*\n+#if.*\n#endif.*\n+/
Remove /\n+#if.*\n#endif.*\n+/
Remove /^#if.*\n#endif.*\n/
Remove /\n+#include\s+<sys/cdefs.h>\n#include\s+<sys/types.h>/
Remove /\n+#include\s+<sys/cdefs.h>\n#include\s+<sys/param.h>/
Remove /\n+#include\s+<sys/cdefs.h>\n#include\s+<sys/capsicum.h>/

Sponsored by: Netflix


# 685dc743 16-Aug-2023 Warner Losh <imp@FreeBSD.org>

sys: Remove $FreeBSD$: one-line .c pattern

Remove /^[\s*]*__FBSDID\("\$FreeBSD\$"\);?\s*\n/


# 4d846d26 10-May-2023 Warner Losh <imp@FreeBSD.org>

spdx: The BSD-2-Clause-FreeBSD identifier is obsolete, drop -FreeBSD

The SPDX folks have obsoleted the BSD-2-Clause-FreeBSD identifier. Catch
up to that fact and revert to their recommended match of BSD-2-Clause.

Discussed with: pfg
MFC After: 3 days
Sponsored by: Netflix


# 86dc8398 09-May-2022 John Baldwin <jhb@FreeBSD.org>

ftwd/ichwd/itwd/viawd/wbwd: Remove unused devclass arguments to DRIVER_MODULE.


# 1d85ab6b 07-Jan-2022 Warner Losh <imp@FreeBSD.org>

wbwd: Move set but not used variable test under notyet

Sponsored by: Netflix


# fdec27ed 09-Dec-2021 Alexander Motin <mav@FreeBSD.org>

wbwd: Mark sysctls with CTLFLAG_MPSAFE.

MFC after: 2 weeks


# 95f97cd4 01-Sep-2020 Mateusz Guzik <mjg@FreeBSD.org>

wbwd: clean up empty lines in .c and .h files


# 7029da5c 26-Feb-2020 Pawel Biernacki <kaktus@FreeBSD.org>

Mark more nodes as CTLFLAG_MPSAFE or CTLFLAG_NEEDGIANT (17 of many)

r357614 added CTLFLAG_NEEDGIANT to make it easier to find nodes that are
still not MPSAFE (or already are but aren’t properly marked).
Use it in preparation for a general review of all nodes.

This is non-functional change that adds annotations to SYSCTL_NODE and
SYSCTL_PROC nodes using one of the soon-to-be-required flags.

Mark all obvious cases as MPSAFE. All entries that haven't been marked
as MPSAFE before are by default marked as NEEDGIANT

Approved by: kib (mentor, blanket)
Commented by: kib, gallatin, melifaro
Differential Revision: https://reviews.freebsd.org/D23718


# fc0b9815 17-Oct-2019 Andriy Gapon <avg@FreeBSD.org>

wbwd: small clean-ups and improvements

This change applies some suggestions by delphij from D21979.
A write-only variable is removed.
There is a diagnostic message if the driver does not recognize the chip.
A chained if-statement is converted to a switch.

MFC after: 3 weeks


# bc37ac7e 16-Oct-2019 Andriy Gapon <avg@FreeBSD.org>

wbwd: move to superio(4) bus

This allows to remove a bunch of low level code.
Also, superio(4) provides safer interaction with other drivers
that work with Super I/O configuration registers.

Tested only on PCengines APU2:
superio0: <Nuvoton NCT5104D/NCT6102D/NCT6106D (rev. B+)> at port 0x2e-0x2f on isa0
wbwd0: <Nuvoton NCT6102 (0xc4/0x53) Watchdog Timer> at WDT ldn 0x08 on superio0

The watchdog output is incorrectly wired on that system and the watchdog
does not really do it its job, but the pulse can be seen with a signal
analyzer.

Reviewed by: delphij, bcr (man page)
MFC after: 19 days
Differential Revision: https://reviews.freebsd.org/D21979


# f531e075 13-Jan-2018 Alexander Motin <mav@FreeBSD.org>

Add IDs for Nuvoton NCT6793/NCT6795.

MFC after: 2 weeks


# 718cf2cc 27-Nov-2017 Pedro F. Giffuni <pfg@FreeBSD.org>

sys/dev: further adoption of SPDX licensing ID tags.

Mainly focus on files that use BSD 2-Clause license, however the tool I
was using misidentified many licenses so this was mostly a manual - error
prone - task.

The Software Package Data Exchange (SPDX) group provides a specification
to make it easier for automated tools to detect and summarize well known
opensource licenses. We are gradually adopting the specification, noting
that the tags are considered only advisory and do not, in any way,
superceed or replace the license texts.


# b790c193 02-May-2016 Pedro F. Giffuni <pfg@FreeBSD.org>

etc: minor spelling fixes.

Mostly comments but also some user-visible strings.

MFC after: 2 weeks


# 73a1170a 19-Apr-2016 Pedro F. Giffuni <pfg@FreeBSD.org>

sys/dev: use our nitems() macro when it is avaliable through param.h.

No functional change, only trivial cases are done in this sweep,
Drivers that can get further enhancements will be done independently.

Discussed in: freebsd-current


# 4f6dd82a 13-Apr-2016 Alexander Motin <mav@FreeBSD.org>

Remove watchdog timer stop check.

There are bunch of reports that this check fails at least on Nuvoton
NCT6776 chips. I don't see why this check needed there, and Linux does
not have it either. So far this check only made watchdogd unstopable.

MFC after: 1 month


# baa7dd65 24-Mar-2016 Alexander Motin <mav@FreeBSD.org>

Polish wbwd(4) driver and add more supported chips.

MFC after: 1 month


# 59daf5b0 14-Mar-2015 Ian Lepore <ian@FreeBSD.org>

Revert r279933; this is going to be fixed in sbuf instead.

PR: 195668


# 0b9b8739 12-Mar-2015 Ian Lepore <ian@FreeBSD.org>

Nullterminate strings returned via sysctl.

PR: 195668


# 9e8bad81 11-Jan-2013 Xin LI <delphij@FreeBSD.org>

Add ID for Nuvoton WPCM450RA0BX found on Supermicro X9SCA-F motherboards.

While I'm there, also make this driver to attach to devices that have
an unknown device ID.

MFC after: 1 month


# 1adb4ebd 28-Dec-2012 Xin LI <delphij@FreeBSD.org>

Add DEVICE_IDENTIFY method for wbwd(4), required on most of recent
Supermicro motherboards.

Tested on X8STi and X8DTH boards.

Sponsored by: iXsystems, Inc.
MFC after: 2 weeks


# e25fe6cd 28-Dec-2012 Xin LI <delphij@FreeBSD.org>

Use DEVMETHOD_END.

MFC after: 2 weeks


# 03385af1 15-Dec-2012 Pawel Jakub Dawidek <pjd@FreeBSD.org>

sbuf_trim() cannot be used on sbuf with drain function set.
This fixes panic when listing sysctls on INVARIANTS-enabled kernel while
having wbwd loaded.

This panic was not fatal, at worst one additional space was printed.

Also sbuf_trim() makes some sense even if drain function is set. The drain
function is called only when buffer is to be expanded. So we could still trim
existing buffer before drain is called. In this case it worked just fine - the
trailing space was correctly trimmed.

Obtained from: WHEEL Systems
MFC after: 1 week


# cf864f03 29-May-2012 Robert Noland <rnoland@FreeBSD.org>

Add device ids for the Winbond 83627DHG-P chip and set the registers to
trigger the keyboard reset line on timeout.

Reviewed by: bz
MFC after: 1 week


# 63fb0bb6 29-May-2012 Robert Noland <rnoland@FreeBSD.org>

Fix a typo in wbwd so that CRF5 is actually written to the data register
rather than the index register.

Reviewed by: bz
MFC after: 3 days


# 0566170f 06-Mar-2012 Bjoern A. Zeeb <bz@FreeBSD.org>

Provide wbwd(4), a driver for the watchdog timer found on various
Winbond Super I/O chips.

With minor efforts it should be possible the extend the driver to support
further chips/revisions available from Winbond. In the simplest case
only new IDs need to be added, while different chipsets might require
their own function to enter extended function mode, etc.

Sponsored by: Sandvine Incorporated ULC (in 2011)
Reviewed by: emaste, brueffer
MFC after: 2 weeks