mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-09 02:24:58 -06:00
Merge remote-tracking branch 'kraxel/usb.38' into staging
* kraxel/usb.38: (28 commits) xhci: handle USB_RET_NAK xhci: remote wakeup support xhci: kill port arg from xhci_setup_packet xhci: stop on errors xhci: add trb type name lookup support. xhci: signal low- and fullspeed support usb: add USBBusOps->wakeup_endpoint usb: pass USBEndpoint to usb_wakeup usb: maintain async packet list per endpoint usb: Set USBEndpoint in usb_packet_setup(). usb: add USBEndpoint->{nr,pid} usb: USBPacket: add status, rename owner -> ep usb: fold usb_generic_handle_packet into usb_handle_packet usb: kill handle_packet callback usb-xhci: switch to usb_find_device() usb-musb: switch to usb_find_device() usb-ohci: switch to usb_find_device() usb-ehci: switch to usb_find_device() usb-uhci: switch to usb_find_device() usb: handle dev == NULL in usb_handle_packet() ...
This commit is contained in:
commit
7718564ba1
21 changed files with 728 additions and 400 deletions
|
@ -423,7 +423,7 @@ static int usb_bt_handle_data(USBDevice *dev, USBPacket *p)
|
|||
|
||||
switch (p->pid) {
|
||||
case USB_TOKEN_IN:
|
||||
switch (p->devep & 0xf) {
|
||||
switch (p->ep->nr) {
|
||||
case USB_EVT_EP:
|
||||
ret = usb_bt_fifo_dequeue(&s->evt, p);
|
||||
break;
|
||||
|
@ -442,7 +442,7 @@ static int usb_bt_handle_data(USBDevice *dev, USBPacket *p)
|
|||
break;
|
||||
|
||||
case USB_TOKEN_OUT:
|
||||
switch (p->devep & 0xf) {
|
||||
switch (p->ep->nr) {
|
||||
case USB_ACL_EP:
|
||||
usb_bt_fifo_out_enqueue(s, &s->outacl, s->hci->acl_send,
|
||||
usb_bt_hci_acl_complete, p);
|
||||
|
@ -535,7 +535,6 @@ static void usb_bt_class_initfn(ObjectClass *klass, void *data)
|
|||
uc->init = usb_bt_initfn;
|
||||
uc->product_desc = "QEMU BT dongle";
|
||||
uc->usb_desc = &desc_bluetooth;
|
||||
uc->handle_packet = usb_generic_handle_packet;
|
||||
uc->handle_reset = usb_bt_handle_reset;
|
||||
uc->handle_control = usb_bt_handle_control;
|
||||
uc->handle_data = usb_bt_handle_data;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue