summaryrefslogtreecommitdiffstats
path: root/sys/dev/usb/urng.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* sprinkle comments and rename iface to match its use to ctl_iface_idxjasper2018-07-091-5/+8
| | | | ok abieber@
* replace add_*_randomness with enqueue_randomness()jasper2018-04-281-2/+2
| | | | | | | | | this gets rid of the source annotation which doesn't really add anything other than adding complexitiy. randomess is generally good enough that the few extra bits that the source type would add are not worth it. ok mikeb@ deraadt@
* - sprinkle variable name and printf tweaksjasper2017-09-121-10/+12
| | | | - save product type for future use
* - call usbd_deactivate() rather than simply returning in case of errorsjasper2017-09-101-19/+27
| | | | | - explicitly clear sc_xfer upon detach - fix spacing in urng_softc definition
* explicitly clear the output pipejasper2017-09-051-2/+4
| | | | ok mpi@
* Use endpoint 5 for chaoskey, it should have been 5 from the start, thisabieber2017-08-301-7/+13
| | | | | | puts us in line with the linux driver. Also add a DPRINTF for endpoints. "i'd say go for it" jasper@
* add _MEASURE_RATE bits from uonerng(4)jasper2017-08-291-1/+47
| | | | tested by abieber@
* rename sc_pipe to sc_outpipe to indicate it's direction as there'll come anjasper2017-08-291-6/+6
| | | | sc_inpipe too
* Add urng(4) which supports various USB RNG devices. Instead of adding onejasper2017-08-281-0/+237
driver per device, start bundling them into a single driver. urng(4) supports the device currently supported by ualea(4) and adds support for the Altusmetrum ChaosKey 1.0, by abieber@ This was tested by abieber@ with a ChaosKey and Sean Levy with an Alea II ok abieber@ deraadt@ naddy@