summaryrefslogtreecommitdiffstats
path: root/sys/dev/usb/uthum.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Remove unneeded <sys/malloc.h> from Michael W. Bombardieri.mpi2017-01-091-2/+1
|
* Reduces the noise around the global ``ticks'' variable by renamingmpi2016-03-191-8/+8
| | | | | | all the local ones to ``nticks''. ok stefan@, deraadt@
* revert manual additions of hid.h now that usbhid.h brings it injcs2016-01-091-3/+1
|
* Move HID support files out of dev/usb into new dev/hid directoryjcs2016-01-081-2/+3
| | | | | | | | | These files aren't USB-specific and were used by the previous Bluetooth implementation, and will be used by the upcoming HID-over-i2C implementation ok deraadt previous version ok kettenis and mpi
* Change uhidev(4) set/get report functions in various way.mpi2014-12-111-12/+16
| | | | | | | | | | | | | | Always pass the parent uhidev(4) descriptor corresponding to the single USB device with multiple reportIDs instead of a child. Make uhidev_get_report() aware of non NUL reportID by prepending a byte to the given buffer, just like uhidev_set_report{,async}() already do. Return the number of bytes written or read upon success and -1 otherwise. This allow callers to deal with short reads without having do mess with xfer error codes madness. Reviewed and tested by David Higgs.
* Modify the uhidev_*_report() methods to always take a report ID argumentmpi2014-04-151-6/+6
| | | | | | | | instead of using the default, per-driver, one. This is a step to move away from the 1 report ID <-> 1 driver design which is no longer true since the addition of upd(4). ok andre@
* Add a temporary hack to let a subdriver claim all the reportIDs ofmpi2014-03-191-3/+5
| | | | | | | a device. This should be removed once all the drivers attaching to uhidev(4) are converted. ok andre@, sthen@
* Do not define per-driver DEBUG variable when USB_DEBUG is defined. It'smpi2014-03-071-5/+1
| | | | | really impossible to debug the USB stack when any single device you plug in your machine starts to vomit its own poetry,
* Fix the message of uthum(4)'s calibration offset is incorrectsasano2013-09-281-5/+9
| | | | | | when the offset is -1 < degC < 0. ok by yuo@ and mpi@.
* Move reset commands from that attach path to an own function.mglocker2013-05-081-8/+20
| | | | | | | | Reset device on detach (required for planed usb device claiming). Tested with my uthum(4) device "TEMPer sensor(0x660c), Ten X Technology, Inc.(0x1130)". ok yuo@, mpi@
* re-commit uthum_activate() removal, now that uhidev(4) can handle it.sthen2013-05-081-18/+2
| | | | testing by myself and mglocker@, ok mpi@
* revert uthum_activate removal, it is needed in the detach path as found thesthen2013-05-041-2/+18
| | | | hard way by mglocker@
* - remove unused DPRINTFN, simple DPRINTF is enoughsthen2013-05-041-24/+4
| | | | | | - sc_dying is unused, remove it and the uthum_activate() function suggested by mpi (for ugold, but applicable here too), ok mpi
* Get rid of various 'typedef struct' definitions and use plain structuremglocker2013-04-151-3/+3
| | | | | | | | | definitions instead. We don't change usb.h for now to stay compatible with userland. Tested by mpi@ on macppc and myself on i386. ok mpi@
* proc.h is way too much header for usb to handle.tedu2013-03-281-2/+1
|
* Remove config_activate() and DVACT_ACTIVATE. PCMCIA's the only thingmatthew2011-07-031-4/+1
| | | | | | | | that's ever used it, and it's long since been changed to use DVACT_{QUIESCE,SUSPEND,RESUME} instead. ok deraadt@, dlg@; miod@ also agreed with this idea when I brought it up a few weeks ago
* garbage collect "usb events". without /dev/usb there is no way to accessjakemsr2011-01-251-6/+1
| | | | | | them from userland, and nothing in the kernel uses them. ok krw@, miod@
* remove dying flag in detach() function.yuo2010-09-241-3/+1
| | | | | | The dying flag will be set in activate()/DEACTIVATE. ok deraadt@
* some misc cleanup of dmesgderaadt2010-04-201-12/+14
|
* start the sensors off invalid... ok yuoderaadt2010-04-201-1/+2
|
* fix condition of retry counter.yuo2010-04-161-3/+3
| | | | reported by enami-san
* spacingderaadt2010-04-151-40/+40
|
* add yet another TEMPerHUM device identifier.yuo2010-04-151-1/+5
| | | | Reported by naddy@
* use SENSOR_HUMIDITY instead of SENSOR_PERCENT.yuo2010-04-151-112/+568
| | | | | | support new TEMPer sensors: TEMPer, TEMPer1, TEMPer2, TEMPerNTC ok jsg@, deraadt@
* do not zero fields which are already zero; from cnstderaadt2010-02-181-6/+1
|
* change constant of convert formulra of SHT1X sensor to fityuo2010-02-171-3/+16
| | | | | | TEMPerHUM hardware. (It uses 3.38-3.48V as SHT1X's VDD). mentiond by Michael Fuckner
* delete unused variablederaadt2010-01-031-9/+2
|
* fix softc structure to fit as uhid sub device.yuo2009-12-171-3/+2
| | | | ok deraadt@
* various bits of knf; ok yuoderaadt2009-12-101-61/+50
|
* On any sensor the SENSOR_FINVALID flag indicates whether we are able toderaadt2009-11-291-7/+3
| | | | | | | read a value from the sensor properly. The .status field, on the other hand, indicates whether the location that sensor is at, is OK, failed, on fire, or whatnot. In the case of uthum we have no idea whether that temperature is ok or not, so we must leave it SENSOR_S_UNSPEC
* Toggle SENSOR_FINVALID based on sensor data validityderaadt2009-11-241-4/+11
|
* Add uthum(4) device driver for TEMPerHUM USB temperature andyuo2009-11-231-0/+401
humidity sensor. ok deraadt@