summaryrefslogtreecommitdiffstats
path: root/sys/dev/usb (follow)
Commit message (Collapse)AuthorAgeFilesLines
...
* free(9) sizes for array of interfaces.mpi2018-11-161-5/+5
| | | | ok visa@
* free(9) sizes for array of endpoints.mpi2018-11-161-6/+9
| | | | ok ratchov@
* free(9) sizes for configuration descriptors, missed in previous.mpi2018-11-141-3/+3
|
* free(9) sizes for configuration descriptors.mpi2018-11-142-14/+13
| | | | ok tedu@, visa@
* free(9) sizes for endpoints array.mpi2018-11-103-9/+13
| | | | ok okan@, tedu@, visa@
* Pass free(9) sizes for port arrays.mpi2018-11-101-14/+10
| | | | ok tedu@, visa@
* Pass free(9) sizes for the tx descriptors.mpi2018-11-101-4/+7
| | | | ok tedu@, visa@, stsp@
* Revert previous, it broke my Anker USB devicejcs2018-11-022-21/+3
| | | | ok patrick
* Increase max frame size and hard MTU so that we can use VLANs andpatrick2018-10-312-3/+21
| | | | | | Jumbo frames on ure(4). ok kevlo@
* zap return keyword to clarify umidi_flush() returns no value; ok ratchov@miko2018-10-311-2/+2
|
* Make some USB ioctls return ENXIO, instead of EIO, if usbd_is_dying().stsp2018-10-0210-20/+20
| | | | | | | Brings us one step closer towards making this condition's error code consistent across all USB drivers. Patch by Moritz Buhl ok mpi@ bluhm@
* The sequence number field in the 802.11 frame header includes the sequencejmatthew2018-10-011-3/+3
| | | | | | | | | | number and the fragment number, so shift it to get just the sequence number for the tx descriptor. While here, add a #define for the flag in the same field that enables hardware sequence numbering, and use existing constants for some R92C_RSV_CTRL writes. prompted by feedback from kevlo@ on another diff, tested on 8188CE, EE, EU ok stsp@ kevlo@
* In mue_iff() move the initialization of the hash table up so that is donemestre2018-09-191-4/+2
| | | | | | | | | | | | unconditionally, like it's done on other devices, so that we don't end up in the situation of the card being put in promiscuous mode or if ac->ac_multirangecnt > 0 and then we would write into the table while being uninitialized a little bit later. Noticed on Coverity ID 1473316. hint from claudio@ and kettenis@ OK kevlo@ claudio@
* Prevent a panic in umb(4) when roaming is diabled.gerhard2018-09-101-8/+11
| | | | Found by beck@, tested and ok by bluhm@
* clarify that goto error in alloc_all_endpoints_fixed_ep() always returnsmiko2018-09-071-7/+2
| | | | | | USBD_INVAL. ok mpi@
* move initial jack count to alloc_all_endpoints(), and reset count to zeromiko2018-09-071-5/+4
| | | | | | in free_all_jacks(). ok stsp@ ratchov@
* If we cannot stop the endpoint when aborting a transfer assume thatmpi2018-09-061-2/+7
| | | | | | | | the device is gone and give back the descriptor to the stack. Without this usbd_abort_pipe() could end up in an infinite loop. Issue reported by Tom Murphy.
* fix whitespacejsg2018-09-061-3/+3
|
* execute the same code for failure of assign_all_jacks_automatically()miko2018-09-061-1/+3
| | | | | | | and attach_all_mididevs(). this ensures unbind_all_jacks() and usbd_deactivate() happen for both cases. ok ratchov@
* Serialize synchronous commands with a rwlock.mpi2018-09-052-9/+36
| | | | | | | Prevent triggering an assert if two drivers try to submit a command at the same time. Issue reported by Tom Murphy.
* remove shadow variables for 'error' in usbioctl(); ok mpi@ ratchov@miko2018-08-311-3/+1
|
* ich variable is only used in DPRINTF() and uaudio_get_cluster_nchan()miko2018-08-311-3/+7
| | | | | | | has no side effect, so setting value for ich can be moved under UAUDIO_DEBUG. ok ratchov
* Remove unused struct member.kettenis2018-08-291-3/+1
| | | | ok deraadt@, mlarkin@
* Add umt(4) for USB Windows Precision Touchpad devicesjcs2018-08-252-1/+259
| | | | | | | | Based on imt(4) Rename HIDMT_INPUT_MODE_MT to HIDMT_INPUT_MODE_MT_TOUCHPAD ok deraadt
* Move HID->bus constant conversion for HID report types out of ihidevjcs2018-08-252-2/+18
| | | | | | | | | | | | | | | | | | | | | into hidmt. The HID code uses hid_feature, hid_input, and hid_output constants to refer to report types internally that then need to be converted to their bus-level counterparts before actually getting sent out (so hid_feature becomes UHID_FEATURE_REPORT for USB, I2C_HID_REPORT_TYPE_FEATURE for i2c). This conversion was hard-coded in ihidev but ihidev_[gs]et_report should assume the type passed is already an i2c-level define, not a hid one. This is how uhidev does it. Add a conversion routine callback that any hidmt callers need to set so that hidmt can convert hid constants to the bus-level versions. Also add a similar conversion function to uhidev. ok deraadt
* fix misplaced parenthesis inside an if-clause. already fixed in FreeBSD in revmestre2018-08-251-2/+2
| | | | | | 295608. OK jca@
* fix misplaced parenthesis inside an if-clause. already fixed in NetBSD in revmestre2018-08-251-2/+2
| | | | | | 1.13. OK stsp@ jca@ claudio@
* Work well with the Dynastream ANTUSB-m, from Jan Klemkow.mpi2018-08-221-2/+3
|
* regenmpi2018-08-222-4/+9
|
* Dynastream ANTUSB-m, from Jan Klemkow.mpi2018-08-221-1/+2
|
* Partially revert previous, EM7455 is already handled by umb(4).mpi2018-08-151-2/+1
| | | | Reported by Bryan Vyhmeister.
* Introduce mue_eeprom_present to check if the EEPROM is present.kevlo2018-08-152-10/+54
| | | | | | When the EEPROM is not populated, set the MAC config register MUE_MAC_CR_AUTO_SPEED. While there, encode the MAC address for the onboard USB Ethernet for the Rasperry Pi, like smsc(4) does.
* Attach to Sierra Wireless MC7304/MC7354 & EM7455, from Denis Lapshin.mpi2018-08-131-1/+3
|
* regenmpi2018-08-132-4/+9
|
* Sierra Wireless MC7304/MC7354, from Denis Lapshin.mpi2018-08-131-1/+2
|
* Fix possible division by zero caused by bogus usb descriptors. Fromratchov2018-08-081-3/+7
| | | | Michael W. Bombardieri. Thanks.
* avoid using a value uninitialisedjsg2018-08-041-1/+2
| | | | ok kevlo@
* - use memset() for for clearing hashtblkevlo2018-08-031-6/+2
| | | | | | | - the switch case for IFM_100_TX was the same code as for IFM_1000_T so it can be rolled into one. From Michael W. Bombardieri
* Add mue(4), a driver for Microchip LAN75xx/LAN78xx 10/100/1000 USB Ethernetkevlo2018-08-033-1/+1609
| | | | | | adapters. "go ahead commit it" deraadt@
* define WSMOUSE_TYPE_TOUCHPAD so non-elantech drivers can stopjcs2018-07-301-6/+6
| | | | claiming to be elantech devices
* Inline trivial uaudio_id_name(). From Michael Bombardieri, thanks.ratchov2018-07-301-14/+3
| | | | "looks good" kn@
* No need to test if pointer is NULL to call free(9). Fromratchov2018-07-271-11/+6
| | | | Michael W. Bombardieri. Thanks!
* attach RTL8188EU under AboCom's vendor id. From FreeBSD via Mikhail <mp39590 at gmail>sthen2018-07-191-1/+2
|
* syncsthen2018-07-192-4/+9
|
* Add RTL8188EU under AboCom's vendor id. From FreeBSD via Mikhail <mp39590 at gmail>sthen2018-07-191-1/+2
|
* Reuse implicit padding to export the port number of a USB device inmpi2018-07-192-2/+4
| | | | | | | | USB_DEVICEINFO. devel/libusb1 requires this piece of information. ok jcs@, mikeb@, jasper@, sthen@
* TX packets, which can be either Ethernet or control packets, must bepatrick2018-07-171-50/+46
| | | | | | | | | sent in order. Otherwise it is possible that the key is set before we send out the EAPOL packet, or that packets are sent out before the key is set. Thus modify the SDIO backend to put both types into the same internal TX queue, which will be sent asynchronously. Discussed with bluhm@
* typos, from Michael W. Bombardieri.mpi2018-07-161-5/+5
|
* s/ITUNER/MICROCHIP/ following usbdevs -r1.689jasper2018-07-101-3/+3
|
* regenjasper2018-07-102-12/+12
|