aboutsummaryrefslogtreecommitdiffstats
path: root/src/hw/usb-xhci.h
Commit message (Collapse)AuthorAgeFilesLines
* usb: Control transfers always have an 8 byte command sizeKevin O'Connor2015-01-071-1/+1
| | | | | | | There is no need to pass 'cmdsize' to the usb drivers as the cmdsize is always 8 bytes. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* xhci: Merge xhci_send_control with xhci_send_bulkKevin O'Connor2015-01-071-3/+2
| | | | | | | | Merge both the control and bulk pipe sending functions into one new function: xhci_send_pipe(). This makes the xhci interface similar to the other usb drivers. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* xhci: Change xhci_update_pipe() to xhci_realloc_pipe() and use for alloc tooKevin O'Connor2014-10-161-5/+3
| | | | | | | | Instead of exporting both xhci_alloc_pipe() and xhci_update_pipe(), export only xhci_realloc_pipe() and support alloc, update, and free from it. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* usb: Rename ?hci_control() to ?hci_send_control()Kevin O'Connor2014-10-161-2/+2
| | | | | | This is just function renaming - no code implementation changes. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* xhci: Support xhci controllers with 64 byte contexts.Kevin O'Connor2014-01-291-8/+0
| | | | | | | At least some real-world controllers require 64 byte contexts. Detect this case and handle it appropriately. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* usb: Replace EHCI to UHCI/OHCI synchronization with new scheme.Kevin O'Connor2013-12-271-1/+1
| | | | | | | | | | | | | | | The previous code attempts to correlate which UHCI and OHCI controllers correlate with which EHCI controllers so that it can ensure high speed devices are handled by the EHCI code while low/full speed devices are handled by the UHCI/OHCI code. Replace this logic by initializing all EHCI controllers first, and then initializing all UHCI and OHCI controllers. This simplifies the code and improves support for some hardware devices that don't follow the OHCI/UHCI to EHCI correlation standard. Also, remove the unused usb->busid field. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* usb: add xhci supportGerd Hoffmann2013-09-191-0/+144
$subject says all. Support for usb3 streams is not implemented yet, otherwise it is fully functional. Tested all usb devices supported by qemu (keyboard, storage, usb hubs), except for usb attached scsi in usb3 mode (which needs streams). Tested on qemu only, tagged with QEMU_HARDWARE because of that. Testing with physical hardware to be done. Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>