summaryrefslogtreecommitdiffstats
path: root/sys/dev/usb
AgeCommit message (Collapse)AuthorFilesLines
2016-09-12Wacom USB tablet driver from Frank Groeneveld.mpi2-1/+235
Currently attaches as a single child of uhidev(4) and offers basic pointer functionalities.
2016-09-12regenmpi2-4/+9
2016-09-12Wacom Intuos Draw, from Frank Groeneveld.mpi1-1/+2
2016-09-12Split usbd_fill_iface_data() in two and introduce usbd_parse_idesc() ampi1-34/+39
function for parsing and checking endpoint descriptors. More checks will be added later to prevent malformed descriptors of being used.
2016-09-09regentedu2-5/+5
2016-09-09fix atu device ID. kettenis found recent changes meant that atu wastedu1-2/+2
attaching to his hub, which works poorly... ok jsg kettenis
2016-09-03Retire zaurus, as it hasn't made the EABI jump and will be permanently brokenguenther6-2699/+2
shortly when we use the hardware thread register in userland
2016-09-02Pass M_ZERO when allocating memory for "struct usbd_endpoint".mpi1-2/+2
These descriptors are filled with value parsed from untrusted USB descriptors and we don't want to left memory unitialized if an error occurs during the parsing.
2016-09-02Cleanup usbd_fill_iface_data() to make it easier to check for badmpi1-17/+19
descriptors. No functionnal change.
2016-09-02Do not free the configuration descriptor without setting ``dev->cdesc''mpi1-6/+3
to NULL. Prevent a use after free triggerable with invalid interface descriptor. Found with umap2 and a facedancer21.
2016-09-02Prevent a NULL dereference, triggerable with a crafted configurationmpi1-2/+4
descriptor with a bad type. Found with umap2 and a facedancer21.
2016-09-02Avoid calling usbd_set_config_index() in *_attach() and let the stackmpi14-155/+30
do it instead. If anything bad happen due to a malformed descriptor it makes no sense to try to attach a driver, and bail before probing.
2016-08-31regenjca1-2/+39
2016-08-18add a missing splx in an error pathjsg1-2/+4
ok millert@ stsp@
2016-08-07add $OpenBSD$ tagsjmatthew2-0/+2
2016-08-03Fold umass_atapi_attach() and umass_scsi_setup() into umass_scsi_attach() tokrw3-62/+32
shorten and simplify code. No intentional functional change.
2016-08-01Set SDEV_UMASS on all umass devices, even when they use ATAPI orkrw1-3/+3
UFI command sets. Probe all the LUNs a device reports instead of assuming ATAPI and UFI devices always have 1 LUN. Motivated by the device David Vasek reported as claiming to be ATAPI but wanting to use >1 LUN. Committing quickly to smoke out the inevitable device that works in the exact opposite way. All hail USB. ok kettenis@
2016-07-31Use m_devget(9).kettenis1-27/+3
ok claudio@
2016-07-26In rsu(4), put code that twiddles HT data in the ic under #ifdef notyet.stsp1-1/+3
Some code paths in this driver peek at ic_htcaps and act upon it, so let's play it safe until this driver gets its 11n support enabled on purpose. Spotted while investigating the bug fixed in r1.35.
2016-07-26Unbreak rsu(4) which was broken since r1.32. Reported by Jake Swensen.stsp1-2/+2
ok deraadt@
2016-07-21Make rtwn(4) and urtwn(4) respect the RTS threshold set by net80211.stsp1-2/+5
ok mpi@
2016-07-20Unbreak ural(4), which had been dropping frames on Tx whilestsp1-2/+2
the IFF_RUNNING flag was set since last November (r1.138). Apparently nobody is using this driver, except for martijn@. Fix tested by martijn@ and myself. ok dlg@
2016-07-20ATI controllers seem to need the same workaround as VIA controllers.mpi1-6/+6
This should hopefully help people reporting errors with SB700. From FreeBSD, ok kettenis@, krw@
2016-06-27add ure(4), a driver for Realtek RTL8152 10/100 USB Ethernet adapters,jmatthew3-1/+1752
ported from FreeBSD. ok dereaadt@
2016-06-20Make umb(4) less verbose by default. 'ifconfig umb0 debug' enables verbose mode.stsp1-59/+94
ok mpi deraadt gerhard
2016-06-19Rework how umb(4) attaches such that it also works with devices that implementkettenis1-83/+90
both NCM 1.0 and MBIM. ok gerhard@
2016-06-19Add define for NCM.kettenis1-1/+2
ok gerhard@
2016-06-17Merge a lot of code from urtwn(4) into rtwn(4). Both drivers now share codestsp1-2123/+231
in the file sys/dev/ic/rtwn.c. This reduces kernel bloat and will make it easier to have both drivers benefit from future enhancements. ok mpi@
2016-06-17Replace tsleep/wakeup by usbd_ref_incr/decr/wait to wait for the kthreadmglocker2-6/+8
to finish on close. Tested and ok Patrick Keshishian ok mpi
2016-06-15Add umb(4) - a driver for the Mobile Broadband Interface Model (MBIM)gerhard5-2/+3369
The umb(4) driver provides support for USB MBIM devices. Those devices establish connections via celluar networks such as GPRS, UMTS, and LTE. ok mpi@ sthen@ additional feedback from deraadt@ jmc@ stsp@ kettenis@
2016-06-15No need for a special DVACT_DEACTIVATE hook, autoconf(9) knows howmpi1-26/+2
to deactivate our children. ok mglocker@
2016-06-14Add missing line feed to DPRINTF makes debug reading easier.mglocker1-2/+2
2016-06-13Remove tracking of endpoints in utvfu_{as,vs}_iface structs as thesemglocker2-29/+27
are constants; save two more ints. From Patrick Keshishian ok mpi
2016-06-13Ensure expected video endpoint has wMaxPacketSize > 0 duringmglocker1-4/+12
utvfu_match(). From Patrick Keshishian ok mpi
2016-06-13* Start/stop audio bulk thread as consumer opens/closes device.mglocker2-44/+44
And as a result get rid of a few defines/flags. * Fix _as_close() to and audio bulk thread exit. * Change sc->sc_as_running into a flag; save an int. From Patrick Keshishian ok mpi
2016-06-13Remove the restriction for the usbd_ref_* functions to work just in casemglocker1-2/+2
of dev->dying. With this we also can use them on device closing, not just detaching. ok mpi
2016-06-13Do not execute the callback if the device is beeing detached.mpi1-12/+13
Should prevent a race triggering a use-after-free reported by martijn@ on bugs@
2016-06-05Use the new input functions of wsmouse in mouse and touchscreen drivers.bru1-4/+2
ok stsp@ kettenis@
2016-06-05Use the new input functions of wsmouse in mouse and touchscreen drivers.bru1-3/+2
ok stsp@ kettenis@
2016-06-02Fix typo in comment.mglocker1-2/+2
From Lubomir Rintel via Patrick Keshish
2016-06-01Not all architectures implicitly #include <sys/device.h> via earlierderaadt1-1/+2
includes (yes, that is a bug, but the tree should compile now. In particular: sparc64
2016-06-01Netgear/Sierra Aircard 340Uchris1-1/+2
ok mpi@
2016-06-01Correctly set the V4L2_BUF_FLAG_QUEUED and V4L2_BUF_FLAG_DONE buffer flags.mglocker1-29/+16
With this we can get rid of the sc_mmap_cur variable to query the buffer queue for a free slot. Remove resetting of the V4L2_BUF_FLAG_MAPPED buffer flag while here. It's enough when it gets set initially by uvideo_reqbufs(). Initial diff from Patrick Keshishian, thanks! ok mpi
2016-06-01regenmglocker2-4/+16
2016-06-01New USB device driver for Audio/Video capture devices based on themglocker4-2/+2308
Fushicai USBTV007 chip. The chip specific code has been written by Lubomir Rintel and Federico Simoncelli. Patrick Keshishian has ported it to OpenBSD and wrote the remaining code based on uvideo(4). Input and help also from mpi@ and ratchov@. ok mpi
2016-06-01regenchris2-2/+7
2016-06-01Netgear/Sierra Aircard 340Uchris1-1/+2
2016-05-28Do the endpoint verification before opening the pipe on the selectedmglocker1-8/+6
alternate interface endpoint instead statically on interface 0. Fix duplicate DPRINTF output while there. Initial diff from Patrick Keshishian, thanks!
2016-05-26Remove superfluous loop counter to set alternate video interface since wemglocker1-6/+4
store the alternate video interface number already. From Patrick Keshishian, thanks!
2016-05-24Kill unused ioctl(2)s.mpi6-141/+10
ok deraadt@