[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH 4/7] xhci: add XHCISlot->addressed
From: |
Gerd Hoffmann |
Subject: |
[Qemu-devel] [PATCH 4/7] xhci: add XHCISlot->addressed |
Date: |
Mon, 3 Jun 2013 12:05:48 +0200 |
Preparing for live-migration support, post_load will need that.
Signed-off-by: Gerd Hoffmann <address@hidden>
---
hw/usb/hcd-xhci.c | 3 +++
1 file changed, 3 insertions(+)
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;
}
--
1.7.9.7
- [Qemu-devel] [PULL 0/7] usb patch queue, Gerd Hoffmann, 2013/06/03
- [Qemu-devel] [PATCH 4/7] xhci: add XHCISlot->addressed,
Gerd Hoffmann <=
- [Qemu-devel] [PATCH 3/7] pci: add VMSTATE_MSIX, Gerd Hoffmann, 2013/06/03
- [Qemu-devel] [PATCH 5/7] xhci: add xhci_alloc_epctx, Gerd Hoffmann, 2013/06/03
- [Qemu-devel] [PATCH 7/7] xhci: add live migration support, Gerd Hoffmann, 2013/06/03
- [Qemu-devel] [PATCH 6/7] xhci: add xhci_init_epctx, Gerd Hoffmann, 2013/06/03
- [Qemu-devel] [PATCH 2/7] host-libusb: Correct test for USB packet state, Gerd Hoffmann, 2013/06/03
- [Qemu-devel] [PATCH 1/7] Fix usage of USB_DEV_FLAG_IS_HOST flag., Gerd Hoffmann, 2013/06/03
- Re: [Qemu-devel] [PULL 0/7] usb patch queue, Anthony Liguori, 2013/06/17