Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
TD_RESULT_STOP_FRAME = 10,
TD_RESULT_COMPLETE,
TD_RESULT_NEXT_QH,
TD_RESULT_STOP_FRAME = 10,
TD_RESULT_COMPLETE,
TD_RESULT_NEXT_QH,
+ TD_RESULT_ASYNC_START,
+ TD_RESULT_ASYNC_CONT,
};
typedef struct UHCIState UHCIState;
};
typedef struct UHCIState UHCIState;
async->queue->valid = 32;
if (!async->done)
async->queue->valid = 32;
if (!async->done)
- return TD_RESULT_NEXT_QH;
+ return TD_RESULT_ASYNC_CONT;
uhci_async_unlink(async);
goto done;
uhci_async_unlink(async);
goto done;
if (len == USB_RET_ASYNC) {
uhci_async_link(async);
if (len == USB_RET_ASYNC) {
uhci_async_link(async);
- return TD_RESULT_ASYNC;
+ return TD_RESULT_ASYNC_START;
}
async->packet.result = len;
}
async->packet.result = len;
}
trace_usb_uhci_td_queue(plink & ~0xf, ptd.ctrl, ptd.token);
ret = uhci_handle_td(s, plink, &ptd, &int_mask);
}
trace_usb_uhci_td_queue(plink & ~0xf, ptd.ctrl, ptd.token);
ret = uhci_handle_td(s, plink, &ptd, &int_mask);
- assert(ret == TD_RESULT_ASYNC);
+ assert(ret == TD_RESULT_ASYNC_START);
assert(int_mask == 0);
plink = ptd.link;
}
assert(int_mask == 0);
plink = ptd.link;
}
goto out;
case TD_RESULT_NEXT_QH:
goto out;
case TD_RESULT_NEXT_QH:
+ case TD_RESULT_ASYNC_CONT:
trace_usb_uhci_td_nextqh(curr_qh & ~0xf, link & ~0xf);
link = curr_qh ? qh.link : td.link;
continue;
trace_usb_uhci_td_nextqh(curr_qh & ~0xf, link & ~0xf);
link = curr_qh ? qh.link : td.link;
continue;
+ case TD_RESULT_ASYNC_START:
trace_usb_uhci_td_async(curr_qh & ~0xf, link & ~0xf);
if (is_valid(td.link)) {
uhci_fill_queue(s, &td);
trace_usb_uhci_td_async(curr_qh & ~0xf, link & ~0xf);
if (is_valid(td.link)) {
uhci_fill_queue(s, &td);