diff options
author | Gerd Hoffmann <kraxel@redhat.com> | 2013-04-05 12:37:32 +0200 |
---|---|---|
committer | Gerd Hoffmann <kraxel@redhat.com> | 2013-06-03 11:37:51 +0200 |
commit | 4034e6938a4cba090a8fac02499c8a9567201665 (patch) | |
tree | dd6e01df22a46f13a1fde2c8039aa03c2546563e /hw/usb/hcd-xhci.c | |
parent | 340b50c759d6b4ef33e514c40afcc799c0d7df7a (diff) | |
download | qemu-4034e6938a4cba090a8fac02499c8a9567201665.zip qemu-4034e6938a4cba090a8fac02499c8a9567201665.tar.gz qemu-4034e6938a4cba090a8fac02499c8a9567201665.tar.bz2 |
xhci: add XHCISlot->addressed
Preparing for live-migration support, post_load will need that.
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Diffstat (limited to 'hw/usb/hcd-xhci.c')
-rw-r--r-- | hw/usb/hcd-xhci.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/hw/usb/hcd-xhci.c b/hw/usb/hcd-xhci.c index 8813bdf..ac683ce 100644 --- a/hw/usb/hcd-xhci.c +++ b/hw/usb/hcd-xhci.c @@ -405,6 +405,7 @@ struct XHCIEPContext { typedef struct XHCISlot { bool enabled; + bool addressed; dma_addr_t ctx; USBPort *uport; XHCIEPContext * eps[31]; @@ -2041,6 +2042,7 @@ static TRBCCode xhci_disable_slot(XHCIState *xhci, unsigned int slotid) } xhci->slots[slotid-1].enabled = 0; + xhci->slots[slotid-1].addressed = 0; return CC_SUCCESS; } @@ -2167,6 +2169,7 @@ static TRBCCode xhci_address_slot(XHCIState *xhci, unsigned int slotid, xhci_dma_write_u32s(xhci, octx, slot_ctx, sizeof(slot_ctx)); xhci_dma_write_u32s(xhci, octx+32, ep0_ctx, sizeof(ep0_ctx)); + xhci->slots[slotid-1].addressed = 1; return res; } |