summaryrefslogtreecommitdiffstats
path: root/sys/dev/usb/usb.h (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Reuse implicit padding to export the port number of a USB device inmpi2018-07-191-1/+2
| | | | | | | | USB_DEVICEINFO. devel/libusb1 requires this piece of information. ok jcs@, mikeb@, jasper@, sthen@
* Change USB_DEVICEINFO to report USB port status/changes as currentlympi2018-07-101-18/+15
| | | | | | | | | seen by the stack. This will allows us to debug port status changes without relying on external tools, like lsusb(1), that generate I/O. While here correct USB3 LS port defines.
* Add macros for reading the bmAttributes field of the USB super speedstsp2017-09-011-1/+4
| | | | | endpoint companion descriptor. ok mpi@
* Match on class communications subclass abstract control model protocoljsg2017-03-291-1/+2
| | | | | | | | | 0 "No class specific protocol required" in addition to the existing protocol 1 "AT Commands: V.250 etc" match. This lets umodem(4) attach to the serial console on the overdrive 1000 which is a usb type-b socket on the back of the box not a db9 like the overdrive 3000.
* Add define for NCM.kettenis2016-06-191-1/+2
| | | | ok gerhard@
* Add umb(4) - a driver for the Mobile Broadband Interface Model (MBIM)gerhard2016-06-151-1/+3
| | | | | | | | | 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@
* Kill unused ioctl(2)s.mpi2016-05-241-7/+1
| | | | ok deraadt@
* Remove USB_SET_IMMED ioctl and corresponding code and manpage bits.stefan2016-02-281-2/+1
| | | | | | Nothing uses it. suggested by and ok mpi@
* Name unamed structures, from Ludovic Coues with some tweaks.mpi2015-07-091-45/+62
|
* Add missing definition of "usb_interface_assoc_descriptor" needed to formpi2015-06-291-1/+13
| | | | | | | | a tool parsing device descriptors. Use the same name as DragonFly/FreeBSD since they export it to userland. From Ludovic Coues.
* Make xhci(4)'s root hub report the same status bits as physical USB3 hubs.mpi2015-06-221-2/+3
| | | | | | | | | | There's not bit to indicate the speed of a USB3.0 device attached to a hub port so do not abuse the PORT_TEST bit. Instead make the xhci(4) root hub report the PORT_POWER_SS bit when appropriate and use it to determin the speed of a new device. While here make the root hub report the link state and config error, from FreeBSD.
* Define UPS_PORT_TEST as FreeBSD/NetBSD do.uebayasi2015-02-141-1/+2
|
* Give Super-Speed hubs a chance to route USB 3.0 transfers.mpi2014-11-071-1/+2
| | | | | | | | | Without knowing their depth, hubs couldn't find the bits correspdonding to their downstream port in the route-string. Now USB 3.0 devices just work(tm) anywhere in your hub chain. This commit would not have been possible without the cheese provided by miod@ at #HAMoween.
* Super-Speed port feature definitions.mpi2014-11-011-17/+52
|
* Super Speed hub descriptor definition and routine, required for upcomingmpi2014-08-081-3/+15
| | | | external USB 3.0 hub support.
* Add various super speed defines, mostly the same as in FreeBSD tompi2014-03-081-9/+26
| | | | keep similar userland exported API definitions.
* define UIPROTO_BOOT_MOUSEjcs2014-01-201-1/+2
| | | | ok mpi@
* Add new ioctl command USB_DEVICE_GET_DDESC to usb(4) to retrieve themglocker2013-04-171-1/+8
| | | | | | device descriptor. Help and ok mpi@
* Add new ioctl's USB_DEVICE_GET_CDESC and USB_DEVICE_GET_FDESC to usb(4).mglocker2013-04-081-1/+18
| | | | | | | Those are the equivalents for ugen(4)'s USB_GET_CONFIG_DESC and USB_GET_FULL_DESC. Help and OK mpi@, jmc@
* Remove the 4.8 version of the USB device info ioctl.mpi2013-03-161-23/+1
| | | | ok deraadt@
* - urndis_match() should support multiple interface descriptors.fgsch2012-06-201-1/+5
| | | | | | | | - in urndis_attach() use the first interface descriptor that's different from the control interface as the data interface. from armani's colleague with some tweaks by me. kettenis@ sthen@ ok
* Remove leftovers from the "usb event" removal.mpi2012-06-101-24/+1
| | | | ok jsg@, fgsch@
* Remove usb_event_cookie_t type and instances of it found in various structs;miod2012-01-081-6/+1
| | | | leftover from the "usb event" stuff removal. Diff from Tobias Ulmer.
* Add support for UISUBCLASS_MOBILE_DIRECT_LINE_MODEL to cdce(4).sthen2011-11-091-1/+2
| | | | | | This is available with at least Ericsson-derived HSPA cards (e.g. Dell 5530/5540) and provides a nice alternative to using them in ppp mode. From Rivo Nurges (rix at estpak ee), ok jsg@
* Apparently keeping some USB devices in reset for too long makes themkettenis2011-03-041-2/+2
| | | | | | | | non-functional. Reduce the root port reset delay to 100 ms. This is still twice as long as the delay mandated by the standard, but makes the Gunze TouchScreen on the Sony Vaio VGN-UX91S and a few other devices work. ok jakemsr@
* * add 'udi_serial' to struct usb_device_info.jakemsr2011-01-151-1/+25
| | | | | | | * fill 'udi_serial' with the serial number in usbd_fill_deviceinfo(). * add compatability ioctl/struct so old binaries continue to work. discussed with deraadt and miod
* Add urndis(4), a driver for RNDIS Ethernet over USB.mk2010-03-011-1/+2
| | | | | | | | | | | | | | | | | | | | It provides an Ethernet transport typically over EDGE or 3G on cellphones similar to what cdce(4) does on other phones. It is likely to work with most of HTC's recent and coming Android based phones but a bunch of other things (phones in particular) may use it. Started by me; brought to a working state by Jonathan Armani and Fabien Romano over the past week, with some input and additions from me. Tested on i386 and macppc by me (HTC Hero), amd64 by Jonathan and Fabien (HTC Hero), and by gilles@ (HTC Magic) on i386 or amd64. It still has a few kinks to work out, but it works well enough that I can commit this over my HTC Hero. `commit it!' deraadt
* assign ehcidebug to USB_DEBUG ioctl argument.yuo2008-12-091-2/+2
| | | | | | | add priv check to the ioctl. only root priv should access these debug flags. ok deraadt@
* Add isochronous xfer support for ehci(4). From NetBSD.mglocker2008-08-091-1/+3
| | | | OK brad@
* add usb2.0 to usb1.1(ohci/uchi) handover request to usb subsystem.yuo2008-06-291-1/+2
| | | | | | | | | | | add new quirk entry for uvideo which is required isoc transfer. Some usb2.0 devices use isochronous transfer but current usb subsystem does not support isoc transfer in ehci(usb2.0) bus. This patch introduce new psuedo usb hub request UHF_PORT_DISOWN_TO_1_1 to handover the device to ehci to usb1.1 bus(ohci or uhci). ok mglocker@ deraadt@ fgsch@
* First pass at removing clauses 3 and 4 from NetBSD licenses.ray2008-06-261-8/+1
| | | | | | | | | Not sure what's more surprising: how long it took for NetBSD to catch up to the rest of the BSDs (including UCB), or the amount of code that NetBSD has claimed for itself without attributing to the actual authors. OK deraadt@
* add the device and interface class codes for USB Video Class (UVC)robert2007-11-281-1/+7
| | | | | | devices ok deraadt@
* Correct the length of the usb_string_descriptor_t and fix a possiblembalmer2007-07-271-3/+12
| | | | | | | | | buffer overflow. Problem found by (and original diff from) Marc Winiger <mw@msys.ch>, comment by me on jsg's request. ok jsg, claudio
* No longer include usb_port.h, all macros have been converted to their Cmbalmer2007-06-171-5/+1
| | | | | | | | | | | counterparts. Revert usb_port.h to it's original form with all the macro definitions to ease the import of new drivers from other BSDs. after discussion with deraadt; feedback from mk, miod, jsg, dlg. ok dlg.
* Remove the definition and use of UPACKED and replace it with our own __packedmbalmer2007-06-091-16/+14
| | | | | | | (to which UPACKED was define'd before anway). No binary change, just one layer of confusion less in the sourcecode. ok jsg
* Last part of FreeBSD/NetBSD sepcific code removal.mbalmer2007-06-041-8/+1
| | | | ok jsg@
* Do not split multibyte access on little endian architectures with no alignmentmiod2006-07-121-2/+2
| | | | requirements; ok krw@
* A typo a day, keeps the dictionnary away.miod2006-06-231-2/+2
|
* convert __attribute__((__packed__)) to __packed so that parsers unawareavsm2003-11-161-2/+2
| | | | | of gcc extensions have more of a chance. ok mcbride@, no objections from millert@, deraadt@
* Sync USB code with NetBSD.nate2003-07-081-33/+108
| | | | This includes numerous fixes and paves the way for usb 2.0 support.
* sync with NetBSD and add various local hacks to make things work correctlynate2003-05-171-3/+3
| | | | with our scsi layer
* get rid of trailing whitespacenate2002-07-251-6/+6
|
* add stack version #define.nate2002-06-111-1/+3
| | | | From NetBSD requested by pval
* Sync hid stuff including ukbd, ums, and uhid with NetBSDnate2002-05-091-1/+2
| | | | | | | | | This adds a uhidev device which can be thought of as something like a uhid bus. It allows more than one ukbd, ums, or uhid to attach to the same device instance. This functionality is found on many of the newer keyboards that have extra buttons. (The extra buttons show up as uhid device(s)). Tested by me on i386, dale on macppc, and jason on sparc64
* Meant to commit only ulpt and committed everything. Most things weren't readynate2002-05-071-90/+27
|
* Sync ulpt driver with NetBSDnate2002-05-071-27/+90
|
* prefix structure members to avoid name clashes.nate2002-05-021-49/+49
| | | | From NetBSD
* Synchronize usb code with NetBSD.nate2001-10-311-3/+3
|
* Match a IEEE 1284.4 protocol. We do not support this protocol directly,gluk2001-10-041-1/+2
| | | | | | | | but USB_ATTACH will switch printer to bidirectional protocol. Read status from printer. From NetBSD. This forces newest usb printers works. Tested by drahn@ (Epson 740) and me (HP LaserJet 2200). Ok aaron@
* Another USB sync with NetBSD. We are still lacking an up-to-date umass(4)aaron2001-01-281-1/+2
| | | | | | driver. I would appreciate it if someone with the hardware looked into it. I also have to take a closer look at changes to the USB Ethernet drivers, as well as import some drivers we are missing (uftdi, if_upl, yap, etc.)