summaryrefslogtreecommitdiffstats
path: root/sys/dev/usb/uoak_subr.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Simplify/refactor the way vendor/product/serial informations arelandry2018-05-011-2/+2
| | | | | | | | | | | | | | | | | | gathered from usb devices. Cache them early in usbd_new_device() instead of querying the device several times (the content wont change anyway) and uselessly generating usb traffic (which could conflict with other access..) The heuristic stays the same, first look in the device descriptor, then try to match against usb_known_vendors/usb_known_products, then fallback to use the idVendor/idProduct codes. Remove the now useless 'usedev' parameter from usbd_fill_deviceinfo(). Tested from bsd & bsd.rd. suggested by and ok mpi@
* Remove unneeded <sys/malloc.h> from Michael W. Bombardieri.mpi2017-01-091-2/+1
|
* Make this build when using the __STRICT_ALIGNMENT version of USETW.jsg2015-05-251-2/+2
|
* Remove some includes include-what-you-use claims don'tjsg2015-03-141-2/+1
| | | | | | | have any direct symbols used. Tested for indirect use by compiling amd64/i386/sparc64 kernels. ok tedu@ deraadt@
* Change uhidev(4) set/get report functions in various way.mpi2014-12-111-7/+14
| | | | | | | | | | | | | | 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-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@
* proc.h is way too much header for usb to handle.tedu2013-03-281-2/+1
|
* small cleanups and output prettyingderaadt2012-10-191-32/+29
| | | | ok yuo matthieu
* add device driver for Toradex OAK usb sensors:yuo2012-09-201-0/+362
uoaklux(4): Toradex OAK LUX, USB illuminance sensor uoakrh(4) : Toradex OAK RH, USB temperature and relative humidity sensor uoakv(4) : Toradex OAK V, USB +/- 10V 8channel ADC interface ok deraadet@