aboutsummaryrefslogtreecommitdiff
path: root/sys/dev/wbwd
Commit message (Collapse)AuthorAgeFilesLines
* wbwd: Use device_set_descf()Mark Johnston2024-06-161-3/+1
| | | | No functional change intended.
* sys: Automated cleanup of cdefs and other formattingWarner Losh2023-11-271-1/+0
| | | | | | | | | | | | | | | | 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
* sys: Remove $FreeBSD$: one-line .c patternWarner Losh2023-08-161-2/+0
| | | | Remove /^[\s*]*__FBSDID\("\$FreeBSD\$"\);?\s*\n/
* spdx: The BSD-2-Clause-FreeBSD identifier is obsolete, drop -FreeBSDWarner Losh2023-05-121-1/+1
| | | | | | | | | 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
* ftwd/ichwd/itwd/viawd/wbwd: Remove unused devclass arguments to DRIVER_MODULE.John Baldwin2022-05-091-3/+1
|
* wbwd: Move set but not used variable test under notyetWarner Losh2022-01-071-2/+3
| | | | Sponsored by: Netflix
* wbwd: Mark sysctls with CTLFLAG_MPSAFE.Alexander Motin2021-12-101-3/+3
| | | | MFC after: 2 weeks
* wbwd: clean up empty lines in .c and .h filesMateusz Guzik2020-09-011-1/+0
| | | | Notes: svn path=/head/; revision=365132
* Mark more nodes as CTLFLAG_MPSAFE or CTLFLAG_NEEDGIANT (17 of many)Pawel Biernacki2020-02-261-4/+5
| | | | | | | | | | | | | | | | | | | 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 Notes: svn path=/head/; revision=358333
* wbwd: small clean-ups and improvementsAndriy Gapon2019-10-171-10/+21
| | | | | | | | | | | | 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 Notes: svn path=/head/; revision=353677
* wbwd: move to superio(4) busAndriy Gapon2019-10-161-333/+70
| | | | | | | | | | | | | | | | | | | | | 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 Notes: svn path=/head/; revision=353645
* Add IDs for Nuvoton NCT6793/NCT6795.Alexander Motin2018-01-131-1/+13
| | | | | | | MFC after: 2 weeks Notes: svn path=/head/; revision=327925
* sys/dev: further adoption of SPDX licensing ID tags.Pedro F. Giffuni2017-11-271-0/+2
| | | | | | | | | | | | | | | 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. Notes: svn path=/head/; revision=326255
* etc: minor spelling fixes.Pedro F. Giffuni2016-05-021-1/+1
| | | | | | | | | Mostly comments but also some user-visible strings. MFC after: 2 weeks Notes: svn path=/head/; revision=298931
* sys/dev: use our nitems() macro when it is avaliable through param.h.Pedro F. Giffuni2016-04-191-2/+2
| | | | | | | | | | 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 Notes: svn path=/head/; revision=298307
* Remove watchdog timer stop check.Alexander Motin2016-04-141-13/+4
| | | | | | | | | | | 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 Notes: svn path=/head/; revision=297963
* Polish wbwd(4) driver and add more supported chips.Alexander Motin2016-03-241-132/+256
| | | | | | | MFC after: 1 month Notes: svn path=/head/; revision=297243
* Revert r279933; this is going to be fixed in sbuf instead.Ian Lepore2015-03-141-1/+0
| | | | | | | PR: 195668 Notes: svn path=/head/; revision=279983
* Nullterminate strings returned via sysctl.Ian Lepore2015-03-121-0/+1
| | | | | | | PR: 195668 Notes: svn path=/head/; revision=279933
* Add ID for Nuvoton WPCM450RA0BX found on Supermicro X9SCA-F motherboards.Xin LI2013-01-111-0/+19
| | | | | | | | | | While I'm there, also make this driver to attach to devices that have an unknown device ID. MFC after: 1 month Notes: svn path=/head/; revision=245297
* Add DEVICE_IDENTIFY method for wbwd(4), required on most of recentXin LI2012-12-281-95/+158
| | | | | | | | | | | | Supermicro motherboards. Tested on X8STi and X8DTH boards. Sponsored by: iXsystems, Inc. MFC after: 2 weeks Notes: svn path=/head/; revision=244787
* Use DEVMETHOD_END.Xin LI2012-12-281-1/+1
| | | | | | | MFC after: 2 weeks Notes: svn path=/head/; revision=244781
* sbuf_trim() cannot be used on sbuf with drain function set.Pawel Jakub Dawidek2012-12-151-2/+1
| | | | | | | | | | | | | | | | | | 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 Notes: svn path=/head/; revision=244280
* Add device ids for the Winbond 83627DHG-P chip and set the registers toRobert Noland2012-05-291-0/+8
| | | | | | | | | | trigger the keyboard reset line on timeout. Reviewed by: bz MFC after: 1 week Notes: svn path=/head/; revision=236246
* Fix a typo in wbwd so that CRF5 is actually written to the data registerRobert Noland2012-05-291-1/+1
| | | | | | | | | | rather than the index register. Reviewed by: bz MFC after: 3 days Notes: svn path=/head/; revision=236245
* Provide wbwd(4), a driver for the watchdog timer found on variousBjoern A. Zeeb2012-03-061-0/+721
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 Notes: svn path=/head/; revision=232614