summaryrefslogtreecommitdiff
path: root/sys/dev/ichwd
Commit message (Collapse)AuthorAgeFilesLines
* sys/dev: further adoption of SPDX licensing ID tags.Pedro F. Giffuni2017-11-272-0/+4
| | | | | | | | | | | | | | | 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
* Fix typo, TC0->TCO.Konstantin Belousov2017-09-101-1/+1
| | | | | | | | Submitted by: jhb MFC after: 1 week Notes: svn path=/head/; revision=323388
* Add definitions of (new) bits for TCO registers from theKonstantin Belousov2017-09-101-8/+38
| | | | | | | | | | Lewisburg/Sunrise Point documentation. Sponsored by: The FreeBSD Foundation MFC after: 1 week Notes: svn path=/head/; revision=323387
* Style: tab after #define.Konstantin Belousov2017-09-101-259/+259
| | | | | | | | Sponsored by: The FreeBSD Foundation MFC after: 1 week Notes: svn path=/head/; revision=323386
* Add explicit check for PCI bus to r321720.Alexander Motin2017-08-011-1/+4
| | | | | | | | Reported by: jhb MFC after: 6 days Notes: svn path=/head/; revision=321856
* Attach ichwd(4) only to ISA bus of the LPC bridge.Alexander Motin2017-07-301-19/+20
| | | | | | | | | | | | | Resource allocation for parent device does not look good by itself, but attempt to allocate them for unrelated device just does not end up good. On Asus X99-E WS/USB3.1 system reporting ISA bridge via both PCI and ACPI this reported to cause kernel panic on shutdown due to messed resources: https://bugs.freenas.org/issues/25237. MFC after: 1 week Notes: svn path=/head/; revision=321720
* Fixed TCO v3 tick convertWarner Losh2017-03-012-2/+10
| | | | | | | | | | | TCO v3's internal timer is stored as seconds. Submitted by: Denir Li <denir-li@users.noreply.github.com> Pull Request: https://github.com/freebsd/freebsd/pull/51 Pull Request: https://github.com/freebsd/freebsd/pull/52 Notes: svn path=/head/; revision=314477
* Unify ichwd(4) attachment messages in dmesg.Alexander Motin2016-03-241-8/+6
| | | | | | | MFC after: 2 weeks Notes: svn path=/head/; revision=297255
* Add ichwd TCO version 3 support (Bay Trail / Rangeley...)Fabien Thomas2015-08-182-170/+335
| | | | | | | | | Reviewed by: jhb Obtained from: Cas-well Sponsored by: Stormshield Notes: svn path=/head/; revision=286890
* Actually recognize all Intel Lynx Point devices we have device IDs for.Christian Brueffer2015-07-161-0/+29
| | | | | | | | | PR: 195851 Submitted by: ftigeot@wolfpond.org MFC after: 1 week Notes: svn path=/head/; revision=285628
* Add bunch of PCI IDs of Intel Wildcat Point (9 Series) chipsets.Alexander Motin2014-11-262-0/+6
| | | | | | | MFC after: 1 week Notes: svn path=/head/; revision=275101
* Add new Coleto Creek device support: SATA, SMBus, and Watchdog devices.Jack F Vogel2013-07-192-0/+2
| | | | | | | MFC after: 1 week Notes: svn path=/head/; revision=253475
* Don't log a message when the watchdog is reloaded. It's not useful to do soMark Johnston2013-03-091-2/+0
| | | | | | | | | and these messages flood the log when bootverbose is enabled. Approved by: rstone (co-mentor) Notes: svn path=/head/; revision=248104
* Add support for new Intel Lynx Point PCH - Watchdog Timer Device IDsJack F Vogel2013-01-022-0/+35
| | | | Notes: svn path=/head/; revision=244977
* Remove use of explicit bus space tags and handles and use methods thatJohn Baldwin2012-01-052-26/+10
| | | | | | | | | operate on resource objects instead. MFC after: 1 week Notes: svn path=/head/; revision=229598
* Fix a bug in ichwd(4) which prevents it from beig enabled if the newXin LI2011-09-021-4/+3
| | | | | | | | | | | | timeout is the same timeout. Submitted by: Dmitrij Tejblum <tejblum yandex-team.ru> PR: kern/139604 MFC after: 2 weeks Approved by: re (kib) Notes: svn path=/head/; revision=225340
* Chipset support for the new Intel Panther Point PCH, thanksJack F Vogel2011-05-112-1/+65
| | | | | | | to Seth Heasley for preparing the changes. Notes: svn path=/head/; revision=221789
* Add missing bit in r221015.Attilio Rao2011-04-251-1/+12
| | | | | | | | | | Sponsored by: Sandvine Incorporated Reviewed by: des MFC after: 1 week X-MFC: r221015 Notes: svn path=/head/; revision=221016
* Don't assume that SMI are enabled when attaching ichwd and then doAttilio Rao2011-04-251-0/+1
| | | | | | | | | | | correct unwind based on former state. Sponsored by: Sandvine Incorporated Reviewed by: des MFC after: 1 week Notes: svn path=/head/; revision=221015
* Whitespace nitDag-Erling Smørgrav2011-04-251-2/+2
| | | | Notes: svn path=/head/; revision=221010
* Add some more bit definitions:Attilio Rao2011-04-211-2/+8
| | | | | | | | | | | | | | - TCO_MESSAGEx: TCO specific regs providing the ability to monitor BIOS bootup activity. - TCO_NEWCENTURY: reporting RTC year roll over. - TCO_NMI2SMI_EN, TCO_NMI_NOW: controlling SMIs conversion to NMIs and NMI trigger. - SMI_GBL_EN: Enabling SMI delivery for all the northbridge controller. MFC after: 10 days Notes: svn path=/head/; revision=220925
* Support for the new Patsburg PCH chipset:Jack F Vogel2011-02-012-1/+5
| | | | | | | | | | | | | | - SMBus Controller - SATA Controller - HD Audio Controller - Watchdog Controller Thanks to Seth Heasley (seth.heasley@intel.com) for providing us code. MFC after 3 days Notes: svn path=/head/; revision=218149
* Support for the new DH89xxCC PCH chipset including:Jack F Vogel2011-01-312-0/+2
| | | | | | | | | - SATA controller - Watchdog timer - SMBus controller Notes: svn path=/head/; revision=218140
* Use convenience macro for minimum and maximum value capping whenAttilio Rao2010-12-082-15/+19
| | | | | | | | | | | | re-arming the watchdog timeout. Sponsored by: Sandvine Incorporated Submitted by: Mark Johnston <mjohnston at sandvine dot com> Reviewed by: des MFC after: 10 days Notes: svn path=/head/; revision=216298
* Add a comment to clarify that some BIOSes may clear the hw watchdogEd Maste2010-12-071-2/+3
| | | | | | | | | indicator bit, preventing us from reporting in that case. X-MFC-with: r215868 Notes: svn path=/head/; revision=216266
* Fix build by correcting function name. Pointed out by dougb.Ed Maste2010-11-271-1/+1
| | | | Notes: svn path=/head/; revision=215918
* - Advertise when the reboot came from a watchdog-induced reset.Attilio Rao2010-11-261-8/+9
| | | | | | | | | | | | | - Fix a bug where TCO_BOOT_STS was supposed to be cleared after TCO_SECOND_TO_STS and not before. Sponsored by: Sandvine Incorporated Submitted by: Mark Johnston <mjohnston at sandvine dot com> Reviewed by: des MFC after: 10 days Notes: svn path=/head/; revision=215868
* Add Intel Cougar Point PCH LPC Controller Device IDsJack F Vogel2010-08-282-0/+92
| | | | | | | | | | for watchdog support. Also add additional Intel Ibex Peak (5 Series/3400 Series) PCH IDs. MFC after a week Notes: svn path=/head/; revision=211908
* ichwd: correct range check for timeout valueAndriy Gapon2010-07-241-2/+2
| | | | | | | | | | | This is similar to a fix in r189305 but for earlier ICH versions (<= 5). Reported by: someone via attilio Discussed with: des, attilio MFC after: 1 week Notes: svn path=/head/; revision=210454
* Add support for the NM10 chipset.Remko Lodder2010-01-242-0/+2
| | | | | | | | | | PR: kern/143118 Submitted by: Koshin sumitani <ksumitani at mui dot biglobe dot ne dot jp> Approved by: imp (mentor, implicit) MFC after: 3 days Notes: svn path=/head/; revision=202917
* Add H55 ID from Mike Tancsa, with minor rewording from avg@.Ed Maste2010-01-222-0/+2
| | | | | | | | | PR: kern/143068 Submitted by: Mike Tancsa (Sentex) MFC after: 1 week Notes: svn path=/head/; revision=202812
* ichwd: don't attach to isa pnp device(s) by accidentAndriy Gapon2009-11-071-1/+4
| | | | | | | | Reviewed by: imp, des MFC after: 1 week Notes: svn path=/head/; revision=199015
* Don't print out a message on loading a module. 'kldload -v' and 'kldstatNick Hibma2009-09-101-21/+2
| | | | | | | | | | | | | | | | | grep <modname>' can be used instead. Put a message behind bootverbose as ichwd0: <Intel ICH6M watchdog timer> on isa0 ichwd0: Intel ICH6M watchdog timer (ICH6 or equivalent) does not make a lot of sense. MFC after: 1 week Notes: svn path=/head/; revision=197072
* Rename two functions to make their purpose clearer. Add tons of comments.Dag-Erling Smørgrav2009-03-191-7/+56
| | | | | | | | | | Generated code is identical after stripping .comment section. Suggested by: Andriy Gapon <avg@icyb.net.ua> MFC after: 2 weeks Notes: svn path=/head/; revision=190030
* ichwd: correct range check for timeout valueAndriy Gapon2009-03-031-2/+2
| | | | | | | Approved by: jhb (mentor) Notes: svn path=/head/; revision=189305
* Add more PCI IDs including those for ICH10.John Baldwin2008-08-252-5/+23
| | | | | | | | | PR: kern/126736 Submitted by: Olivier Smedts olivier of gid0 org MFC after: 1 week Notes: svn path=/head/; revision=182161
* Add support for ICH8M.Dag-Erling Smørgrav2008-01-072-0/+2
| | | | | | | | | PR: kern/119351 Submitted by: Takeharu KATO <takeharu1219@ybb.ne.jp> MFC after: 1 week Notes: svn path=/head/; revision=175128
* Add device IDs for the ICH9 family.Dag-Erling Smørgrav2007-12-312-0/+8
| | | | | | | | | PR: i386/119126 Submitted by: Dan Lukes <dan@obluda.cz> MFC after: 1 week Notes: svn path=/head/; revision=175013
* Tabify.Dag-Erling Smørgrav2007-12-312-20/+20
| | | | Notes: svn path=/head/; revision=175012
* Add PCI device support for Intel S7000FC4UR in usb and ichwd, systemsJack F Vogel2007-11-152-0/+2
| | | | | | | | | | will not install without the usb changes in the install kernel, so I would like to MFC this in time for 7.0 RC MFC: 3 days Notes: svn path=/head/; revision=173661
* Update to support ICH[678] chipsets (based on a patch by Takeharu KATO)Dag-Erling Smørgrav2007-08-132-76/+229
| | | | | | | | | | | Fix a resource allocation bug (explained by jhb on -acpi) Thanks for Mike Tancsa for testing and helping track down the bug. Approved by: re (kensmith) MFC after: 3 weeks Notes: svn path=/head/; revision=171820
* Revisit the watchdogs: Resetting the error to EINVAL after failing to set theNick Hibma2007-03-271-2/+0
| | | | | | | | | | | watchdog might hide the succesful arming of an earlier one. Accept that on failing to arm any watchdog (because of non-supported timeouts) EOPNOTSUPP is returned instead of the more appropriate EINVAL. MFC after: 3 days Notes: svn path=/head/; revision=167950
* In one of the previous commits I accidentally removed the enabling of theNick Hibma2007-03-131-1/+4
| | | | | | | | | | | watchdog chip. Noticed by: Mike Tancsa Tested by: Mike Tancsa MFC after: 1 week Notes: svn path=/head/; revision=167503
* Align the interfaces for the various watchdogs and make the interfaceNick Hibma2006-12-151-30/+12
| | | | | | | | | | | | | | | | | | | | | | | | | | | | behave as expected. Also: - Return an error if WD_PASSIVE is passed in to the ioctl as only WD_ACTIVE is implemented at the moment. See sys/watchdog.h for an explanation of the difference between WD_ACTIVE and WD_PASSIVE. - Remove the I_HAVE_TOTALLY_LOST_MY_SENSE_OF_HUMOR define. If you've lost your sense of humor, than don't add a define. Specific changes: i80321_wdog.c Don't roll your own passive watchdog tickle as this would defeat the purpose of an active (userland) watchdog tickle. ichwd.c / ipmi.c: WD_ACTIVE means active patting of the watchdog by a userland process, not whether the watchdog is active. See sys/watchdog.h. kern_clock.c: (software watchdog) Remove a check for WD_ACTIVE as this does not make sense here. This reverts r1.181. Notes: svn path=/head/; revision=165260
* Re-work the bus attachment somewhat. Make the rids unique forDoug Ambrisko2006-02-172-37/+51
| | | | | | | | | | | | the SMI/TCO address space. Switch the bus space I/O to the one specific for either the SMI or TCO space. Re-calibrate the tick. Add some more device id's, 82801FBR submitted by des. This makes it work on the platforms I've tested with. Go ahead by: des Notes: svn path=/head/; revision=155785
* Start each of the license/copyright comments with /*-, minor shuffle of linesWarner Losh2005-01-062-2/+2
| | | | Notes: svn path=/head/; revision=139749
* make code less broken, only try to create unit 0 since there can onlyJohn-Mark Gurney2004-06-131-2/+4
| | | | | | | | | | be one, this will help prevent multipling devices if this driver is ever loaded/unloaded multiple times... Prodded by: julian Notes: svn path=/head/; revision=130402
* Add missing <sys/module.h> includesPoul-Henning Kamp2004-05-301-0/+1
| | | | Notes: svn path=/head/; revision=129879
* Remove some debugging printf()s and a pointless device_set_desc() call.Dag-Erling Smørgrav2004-05-151-12/+7
| | | | Notes: svn path=/head/; revision=129256
* Add a driver for the watchdog timer function present on the LPC interfaceDag-Erling Smørgrav2004-05-112-0/+505
bridge in Intel ICH-series chipsets. The original implementation was by W. Daryl Hawkins of Texas A&M, but I have made substantial modifications. Notes: svn path=/head/; revision=129124