mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-06 17:23:56 -06:00
usb: implement XHCI underrun/overrun events
Implement underrun/overrun events of isochronous endpoints according to XHCI spec (4.10.3.1) Guest software restarts data streaming when receives these events. The XHCI reports these events using interrupter assigned to the slot (as these events do not have TRB), so current commit adds the field of assigned interrupter to the XHCISlot structure. Guest software assigns interrupter to the slot on 'Address Device' and 'Evaluate Context' commands. Signed-off-by: Yuri Benditovich <yuri.benditovich@janustech.com> Message-id: 20190128200444.5128-3-yuri.benditovich@janustech.com Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
This commit is contained in:
parent
a587c832a3
commit
b4329d1a2a
2 changed files with 16 additions and 2 deletions
|
@ -140,6 +140,7 @@ typedef struct XHCIPort {
|
|||
typedef struct XHCISlot {
|
||||
bool enabled;
|
||||
bool addressed;
|
||||
uint16_t intr;
|
||||
dma_addr_t ctx;
|
||||
USBPort *uport;
|
||||
XHCIEPContext *eps[31];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue