summaryrefslogtreecommitdiffstats
path: root/sys/dev/usb/utrh.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* A pile of sizes to free(9). In test for a few days in snapshots.deraadt2017-04-081-2/+2
| | | | | Errors will result in nice clean panic messages so we know what's wrong. Reviewed by dhill visa natano jsg.
* Reduces the noise around the global ``ticks'' variable by renaming allmpi2016-03-191-6/+6
| | | | | | | | local ones to ``nticks''. (missed in previous) 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-7/+7
| | | | | | | | | | | | | | 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.
* add a size argument to free. will be used soon, but for now default to 0.tedu2014-07-121-2/+2
| | | | after discussions with beck deraadt kettenis.
* Make sure to call uhidev_close() upon detach for every HID driver callingmpi2014-05-071-1/+4
| | | | | | | uhidev_open() at attach time. This plugs up to 3 xfer leaks and a buffer one. ok yuo@
* Modify the uhidev_*_report() methods to always take a report ID argumentmpi2014-04-151-4/+4
| | | | | | | | 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,
* Remove unnecessary activate functions and unused DPRINTFN macros.sthen2013-08-171-24/+4
| | | | Req by and 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@
* - use usb_lookup(), these should be the last drivers that rolled their ownjasper2010-12-191-6/+3
| | | | | | | unneeded macro around it. - fix a reference to the previous driver name utwitch while here ok jakemsr@
* remove dying flag in detach() function.yuo2010-09-241-3/+1
| | | | | | The dying flag will be set in activate()/DEACTIVATE. ok deraadt@
* use SENSOR_HUMIDITY instead of SENSOR_PERCENT.yuo2010-04-151-3/+18
| | | | | | and add LED blink routine. ok jsg@, deraadt@
* do not zero fields which are already zero; from cnstderaadt2010-02-181-6/+1
|
* fix tsleep parameteryuo2009-12-191-3/+3
|
* add utrh(4): USBRH temperature / humidity sensor driveryuo2009-12-181-0/+284
ok deraadt@