summaryrefslogtreecommitdiff
path: root/sys/dev/usb
AgeCommit message (Collapse)Author
2013-11-19Kill matchlvl usage throughout the usb stack.Paul Irofti
Allows us to move forward on cleaning. Okay mpi@
2013-11-18simplify kthread_create(). no more stdargTheo de Raadt
ok matthew guenther mikeb
2013-11-17correct some iodata strings and add ETX-US2Jonathan Gray
from ISIHARA Takanori
2013-11-17regenJonathan Gray
2013-11-17correct some iodata strings and add ETX-US2Jonathan Gray
from ISIHARA Takanori
2013-11-15Added dev/usb/if_ugl.c, a driver for Genesys Logic GL620USB-Asasano
USB host-to-host link cable. This driver is derived from upl(4).
2013-11-15Clean-up usbd_abort_pipe() usage.Paul Irofti
This function never fails. So change it's return type to void and adjust the copy-pasted callers that were checking the return. "If it compiles, ok" mpi@
2013-11-15Sort-out activate functionality for ucom(4) and it's parents.Paul Irofti
The child should not have to call the parent for deactivation. The parent should handle it. So kill the activate routine in ucom(4) and adapt the parents to no longer call it. Also remove sc_dying in ucom(4) and use usbd_is_dying() instead. Okay mpi@.
2013-11-15Clean-up the HID environment.Paul Irofti
This set of drivers were very very dirty. i/ Clean-up the match/attach multi-casting hackjob - stop casting aux to every attach arg in existance - be consistent about casting it only to uhidev_attach_arg - fetch the usb_attach_arg from above where needed ii/ Sort out the activate routines - leave the deactivation to the parent (uhidev(4)) - ditch the sc_dying flag in favour of usbd_is_dying() iii/ Get closer to keeping all the usb hid information in the uhidev structure (one uhidev per reportID) - store the usbd_device in the uhidev - use it consistently instead of always peaking at the parent's soft state Okay mpi@
2013-11-13Polling is done per controller not per interface.Paul Irofti
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@
2013-11-11Replace sc_dying in favour of usbd_is_dying() and usbd_deactivate().Paul Irofti
Okay mpi@
2013-11-11Replace sc_dying in favour of usbd_is_dying() and usbd_deactivate().Paul Irofti
Okay mpi@
2013-11-11Kill commented out code dealing with a non existent sc_dying variable.Martin Pieuchot
2013-11-11Clean-up the activate routines from the uoak*(4) drivers.Paul Irofti
Leave the deactivate bits to the parent. Simplify by making a single dying check in uhidev(4) interrupt routine instead of having each child doing it. Okay mpi@
2013-11-10Replace sc_dying in favour of usbd_is_dying() and usbd_deactivate().Paul Irofti
Okay mpi@
2013-11-09In our USB world, timeouts are in milliseconds, so use timeout_add_msec()Martin Pieuchot
coherently through all our controller drivers and kill the mstohz() macro. ok pirofti@
2013-11-09Reduce the differences between our controller drivers and initializeMartin Pieuchot
the timeout task in the *_timeout() routine. It now becomes obvious that the allocx/freex hooks can be merged. ok pirofti@
2013-11-09regenJonathan Gray
2013-11-09more rate matching hubsJonathan Gray
2013-11-08Replace sc_dying in favour of usbd_is_dying() and usbd_deactivate().Paul Irofti
Okay mpi@
2013-11-07In polling mode since r1.101 we could end up dereferencing anMartin Pieuchot
uninitialized variable in case the transfer we were waiting for timed out; problem reported by oga@bitrig. So bring uhci_waitintr() in sync with its equivalent in ohci(4) and ehci(4), stop using an uhci_xfer, do not dereference it and set the correct status of the transfer.
2013-11-07Replace sc_dying in favour of usbd_is_dying() and usbd_deactivate().Paul Irofti
Okay mpi@
2013-11-07Replace sc_dying in favour of usbd_is_dying() and usbd_deactivate().Paul Irofti
Okay mpi@
2013-11-07Replace sc_dying in favour of usbd_is_dying() and usbd_deactivate().Paul Irofti
Okay mpi@
2013-11-07Replace sc_dying in favour of usbd_is_dying() and usbd_deactivate().Paul Irofti
Okay mpi@
2013-11-07Kill sc_dying. Nobody was using it anyway.Paul Irofti
"just kill it" mpi@
2013-11-07Replace sc_dying in favour of usbd_is_dying() and usbd_deactivate().Paul Irofti
Okay mpi@
2013-11-07Replace sc_dying in favour of usbd_is_dying() and usbd_deactivate().Paul Irofti
Tested and okay mpi@.
2013-11-07Replace sc_dying in favour of usbd_is_dying() and usbd_deactivate().Paul Irofti
Testing and okay mpi@.
2013-11-07Replace sc_dying in favour of usbd_is_dying() and usbd_deactivate().Paul Irofti
Okay yuo@
2013-11-07Replace sc_dying in favour of usbd_is_dying() and usbd_deactivate().Paul Irofti
Okay mpi@
2013-11-07Make sure to mark the controller as dying in order to stop processingMartin Pieuchot
any transfer when autoconf(9) asks for it. This brings uhci(4) in sync with ohci(4) and ehci(4). ok pirofti@
2013-11-07Remove isoc_len from the transfer descriptor, it is assigned once butMartin Pieuchot
never read.
2013-11-07Replace sc_dying in favour of usbd_is_dying() and usbd_deactivate().Paul Irofti
Okay mpi@
2013-11-06Replace sc_dying in favour of usbd_is_dying() and usbd_deactivate().Paul Irofti
Okay mpi@
2013-11-06Replace sc_dying in favour of usbd_is_dying() and usbd_deactivate().Paul Irofti
Okay mpi@
2013-11-06Replace sc_dying in favour of usbd_is_dying() and usbd_deactivate().Paul Irofti
Tested and okay mpi@
2013-11-06Replace sc_dying in favour of usbd_is_dying() and usbd_deactivate().Paul Irofti
Okay mpi@
2013-11-06Replace sc_dying in favour of usbd_is_dying() and usbd_deactivate().Paul Irofti
Okay mpi@
2013-11-06Make usbd_free_xfer return void, since no callers use the return value.Jeremy Evans
OK mpi@
2013-11-06Replace sc_dying in favour of usbd_is_dying() and usbd_deactivate().Paul Irofti
Okay mpi@
2013-11-05Instead of comparing the lower and higher addresses of all the multicastMartin Pieuchot
entries to decide if the IFF_ALLMULTI flag should be set, check if there is at least one real range between them. This should not introduce any behavior change but will help changing our representation of multicast entries.
2013-11-04Use the async version of uhidev_set_report(), there's no need to sleepMartin Pieuchot
until the transfer is done when submitting a command since the answers are read from the interrupt and we cannot do much if it fails. ok sasano@
2013-11-04regenJasper Lievisse Adriaanse
2013-11-04add vmware vendor idJasper Lievisse Adriaanse
ok jsg@
2013-11-02Remove a layer of abstraction for fetching a configuration descriptor.Martin Pieuchot
2013-11-02Begin conversion of USB stack to return int instead of usbd_status,Jeremy Evans
starting with usbd_endpoint_count and usbd_interface_count. usbd_status should only be used to indicate the status of a USB transfer, it should not be used for generic error codes. Idea from and much hand-holding by mpi@ OK mpi@
2013-11-01Spacing.Martin Pieuchot
2013-11-01Reduce the differences with ehci(4)'s transfer decriptors. This is aMartin Pieuchot
first step to merge the code of our controllers that deal with usbd transfers. Tested with miod@
2013-11-01Do not abuse the stack of the current process to prepend a report IDMartin Pieuchot
to the report request, use malloc(9) with the appropriate size like it is done in the synchronous version. ok miod@