summaryrefslogtreecommitdiffstats
path: root/hw/usb/hcd-ehci.h
diff options
context:
space:
mode:
authorGonglei2014-06-04 10:31:51 +0200
committerGerd Hoffmann2014-08-29 12:52:14 +0200
commit4e130cf6a83193218e357e6db49a7ade24ab9675 (patch)
treec90ab57aa51f1a4e32de526a9c10ed986d4a450c /hw/usb/hcd-ehci.h
parentusb-ehci: add vmstate properity for EHCIState (diff)
downloadqemu-4e130cf6a83193218e357e6db49a7ade24ab9675.tar.gz
qemu-4e130cf6a83193218e357e6db49a7ade24ab9675.tar.xz
qemu-4e130cf6a83193218e357e6db49a7ade24ab9675.zip
usb-ehci: add ehci unrealize funciton
cleanup ehci controller resource, both pci and sysbus if they're necessary. Signed-off-by: Gonglei <arei.gonglei@huawei.com> Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Diffstat (limited to 'hw/usb/hcd-ehci.h')
-rw-r--r--hw/usb/hcd-ehci.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/hw/usb/hcd-ehci.h b/hw/usb/hcd-ehci.h
index 594d9d30e9..4858b7e80c 100644
--- a/hw/usb/hcd-ehci.h
+++ b/hw/usb/hcd-ehci.h
@@ -323,6 +323,7 @@ extern const VMStateDescription vmstate_ehci;
void usb_ehci_init(EHCIState *s, DeviceState *dev);
void usb_ehci_realize(EHCIState *s, DeviceState *dev, Error **errp);
+void usb_ehci_unrealize(EHCIState *s, DeviceState *dev, Error **errp);
#define TYPE_PCI_EHCI "pci-ehci-usb"
#define PCI_EHCI(obj) OBJECT_CHECK(EHCIPCIState, (obj), TYPE_PCI_EHCI)