summaryrefslogtreecommitdiff
path: root/sys/dev/onewire/owtemp.c
AgeCommit message (Collapse)Author
2019-11-30Make owtemp reliable for me:ad
- Don't do the calculation if there is a CRC error. - If we get any kind of error during a refresh, retry up to three times. - Add event counters to report what's going on.
2019-10-25PR kern/54617: onewire(4):martin
- Alter locking strategy to avoid deadlock on detach. - Auto bus probe chews CPU. Increase interval from 3s to 10s. - Put temp sensor S/N in dev description so it can be identified. - Use mutex/condvar. Patch from Andrew Doran.
2014-05-14calculate extended precision as per DS1920/DS1820 data sheetskardel
2011-06-20Initialize sensor state before registering.pgoyette
2009-12-06Simplify device-activation hooks.dyoung
2008-05-05device_t/softc split and other related cosmetic changes.xtraeme
2008-04-08use aprint_*_dev and device_xnamecegger
2007-11-16Extend the envsys2 API (one more time, sorry) as defined in:xtraeme
http://mail-index.netbsd.org/tech-kern/2007/11/09/0001.html sysmon_envsys_create() and sysmon_envsys_destroy() were added to create/destroy sysmon_envsys objects (and its TAILQ/LIST for sensors/events). sysmon_envsys_sensor_attach() and sysmon_envsys_sensor_detach() were added to attach/detach sensors to a specified sysmon_envsys device. The events framework is now per device and configurable via the ENVSYS_SETDICTIONARY ioctl or /etc/envsys.conf and envstat(8). Update all users and documentation to reflect these changes.
2007-09-05onewire_lock: remove the flags argument and change the return type to void.xtraeme
This function is not expected to return an int, because rw_enter() will always succeed.
2007-07-13Forgot to set the description in the sensor.xtraeme
2007-07-04Set the state on sc->sc_sensor[0].state and not append it,xtraeme
envsys2 doesn't use bits for the state member.
2007-07-04There's no need to set the "envsys-description" property in thextraeme
driver's dictionary anymore, because with envsys2 you can change descriptions.
2007-07-01Imported envsys 2, a brief description of the new features:xtraeme
(Part 2: drivers) * Support for detachable sensors. * Cleaned up the API for simplicity and efficiency. * Ability to send capacity/critical/warning events to powerd(8). * Adapted all the code to the new locking order. * Compatibility with the old envsys API: the ENVSYS_GTREINFO and ENVSYS_GTREDATA ioctl(2)s are supported. * Added support for a 'dictionary based communication channel' between sysmon_power(9) and powerd(8), that means there is no 32 bytes event size restriction anymore. * Binary compatibility with old envstat(8) and powerd(8) via COMPAT_40. * All drivers with the n^2 gtredata bug were fixed, PR kern/36226. Tested by: blymn: smsc(4). bouyer: ipmi(4), mfi(4). kefren: ug(4). njoly: viaenv(4), adt7463.c. riz: owtemp(4). xtraeme: acpiacad(4), acpibat(4), acpitz(4), aiboost(4), it(4), lm(4).
2006-11-16__unused removal on arguments; approved by core.christos
2006-10-12- sprinkle __unused on function decls.christos
- fix a couple of unused bugs - no more -Wno-unused for i386
2006-07-10Put appropriate prefixes on property names to reduce chances of namethorpej
collisions.
2006-05-05Remove the devprop API and switch everthing over to the new proplib. Addthorpej
a new device_properties() accessor for device_t that returns the device's property dictionary.
2006-04-07Add missing $ sign at the end of the NetBSD rcsid tag.uwe
2006-04-07Dallas Semiconductor 1-Wire bus support, from OpenBSD. Currently includesriz
gpioow(4), attaching a bit-banging driver via a GPIO pin. Also, owtemp(4) which supports some of the 1-Wire temperature sensors, including the DS18b20 and DS1920 - temperatures are returned via the envsys(4) framework. Original drivers by Alexander Yurchenko (grange@openbsd), with envsys(4) support and a fix to the 1-wire search algorithm (for discovering devices on the bus) by me. As discussed on tech-kern earlier this week.