summaryrefslogtreecommitdiffstats
path: root/sys/dev/usb/usbdi_util.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Use "%s", __func__ in DPRINTF() to reduce grep noise.mpi2018-11-181-7/+7
|
* Remove unneeded <sys/malloc.h> from Michael W. Bombardieri.mpi2017-01-091-2/+1
|
* 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@
* Deprecate usb_*_report(). USB HID devices are always attached belowmpi2014-12-081-46/+1
| | | | | | | | | | an uhidev(4) on OpenBSD and there is not point in rerolling your own reportID handling. Simply use uhidev_*_report(). This is a first step towards better error handling required to deal with broken upd(4) firmwares. Tested by David Higgs.
* Give Super-Speed hubs a chance to route USB 3.0 transfers.mpi2014-11-071-1/+14
| | | | | | | | | 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 hub descriptor definition and routine, required for upcomingmpi2014-08-081-1/+16
| | | | external USB 3.0 hub support.
* Adds an optional bus function to set the address of a new device andmpi2014-07-091-14/+1
| | | | | | | | | explicitly set it when required. Right now xhci(4) does not need such function because it assigns addresses when the first pipe of a device is opened. ok yuo@, pirofti@
* Change the usbd_*_report() family of functions to take a usbd_devicempi2014-04-241-123/+19
| | | | | | | | | | | and a infaceno argument instead of an iface pointer. While here, remove some unused functions and inlined usbd_read_report_desc since it is used only once. This is part of plumbing required to convert the various USB HID devices to handle multiples report IDs. ok andre@
* Indtroduce usbd_get_hub_descriptor() to start cleaning uhub(4)'s mess.mpi2014-03-071-1/+16
| | | | | This will help us deal with the different hub device descriptors used by super speed devices.
* Polling is done per controller not per interface.pirofti2013-11-131-1/+11
| | | | | | | | | The controllers are linked through device->bus so the iface is redundant. So fixing usbd_dopoll() to take the device as argument and making usbd_interface2device_handle() private (for now) inside usbdi_util. Tested and okay mpi@
* Remove a layer of abstraction for fetching a configuration descriptor.mpi2013-11-021-21/+1
|
* Unify and document usbd_transfer(9).mpi2013-09-201-85/+1
| | | | | | | | | | | Get rid of the badly named usbd_bulk_transfer() and usbd_intr_transfer() they were two identical wrappers to submit a synchronous transfer. Now all synchronous transfers are submited using usbd_setup_xfer(9) and usbd_transfer(9) explicitly using the USBD_CATCH flag when signals must be checked. Previous version ok'd by mglocker@, with subtle inputs from miod@
* Get rid of various 'typedef struct' definitions and use plain structuremglocker2013-04-151-39/+39
| | | | | | | | | definitions instead. We don't change usb.h for now to stay compatible with userland. Tested by mpi@ on macppc and myself on i386. ok mpi@
* Merge usbd_get_device_desc() into the only function using them.mpi2013-04-101-9/+1
| | | | ok mglocker@
* Remove unused function usb_find_desc().mpi2013-04-101-19/+1
|
* There's no need for usbd_get_config_desc_full() so just call usbd_get_desc()mpi2013-04-091-8/+1
| | | | | | | directly this also makes it easier to understand which function actually generates IO. ok mglocker@
* proc.h is way too much header for usb to handle.tedu2013-03-281-2/+1
|
* don't catch signals in usbd_{bulk,intr}_transfer if a timeout isjakemsr2010-12-171-5/+7
| | | | | set. no other transfer methods catch signals, and it is not possible to restart these transfers reliably.
* 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@
* KNF after macro removals, no binary change.mbalmer2007-06-181-36/+33
| | | | ok dlg.
* Remove the definition and use of the device_ptr_t which was a struct device *.mbalmer2007-06-121-3/+3
| | | | | | No binary change. ok mk.
* Get rid of the USBDEVPTRNAME macro.mbalmer2007-06-101-5/+5
| | | | | | No binary change. ok jsg.
* Remove the definition and use of usb_malloc_type which is really int.mbalmer2007-06-091-2/+2
| | | | | | | | While here, reindent the function prototypes in usbdi_util.h No binary change. ok jsg
* Remove the "Static" declaration of many functions. It was defined to be emptymbalmer2007-06-051-5/+5
| | | | | | | and it was not consistently used. It was confusing as it suggested these functions were static, which they were not. discussed with dlg and jsg, ok jsg.
* Remove more #ifdef/#endif's that checked for other bsds. No binarymbalmer2007-05-311-5/+1
| | | | | | change, no functionality change. ok jsg
* Remove logprintf macrojsg2007-05-211-3/+3
|
* from freebsd, ugen.c 1.68 usbdi_util.c 1.27 usbdi_util.h 1.15dlg2004-07-211-1/+43
| | | | | | | | log message: Implement outgoing interrupt pipes. It is part of the USB 1.1 spec. The Lego Infrared Tower use it. ok deraadt@
* put "do { } while (0)" wrappers on all the debug maroc functionsderaadt2004-07-081-3/+3
|
* Sync USB code with NetBSD.nate2003-07-081-31/+48
| | | | This includes numerous fixes and paves the way for usb 2.0 support.
* get rid of trailing whitespacenate2002-07-251-11/+11
|
* Meant to commit only ulpt and committed everything. Most things weren't readynate2002-05-071-48/+31
|
* Sync ulpt driver with NetBSDnate2002-05-071-31/+48
|
* Synchronize usb code with NetBSD.nate2001-10-311-8/+8
|
* Sync with NetBSD. Too many changes to mention. For now I have skippedaaron2000-11-081-103/+38
| | | | umass.c and ukbd.c as the diffs are a bit hairier.
* sync with NetBSD... well almost. someone w/ the hw should check umass.fgsch2000-07-041-8/+3
|
* Sync with NetBSD. USB Ethernet drivers should work now.aaron2000-03-301-4/+4
|
* Much cleaner sync with NetBSD. Some #if defined() magic has been sent in theaaron2000-03-281-5/+6
| | | | | | form of a diff to augustss@netbsd.org so that future syncs will be very easy. This commit also adds support for ADMtek AN986 "Pegasus" based USB Ethernet, CATC USB-EL1210A based USB Ethernet, and USB Printers (all untested).
* Sync with NetBSD.aaron2000-03-261-81/+74
|
* sync with NetBSD.fgsch1999-11-071-3/+5
|
* Sync with NetBSD.fgsch1999-09-271-12/+10
|
* Sync with NetBSD;fgsch1999-08-271-6/+5
| | | | | | | Make sure not to call tsleep() from suspend/resume routine. Move more of the transfer completion processing to HC independent code. Fix some problems with transfer abort & timeout. Merge the soft_{td,qh} with the real {td,qh}. This saves time and space.
* Sync with NetBSD. Mostly FreeBSD related changes.fgsch1999-08-161-3/+3
| | | | Diffs sent to augustsson.
* From NetBSD; USB support.fgsch1999-08-131-0/+561