summary refs log tree commit diff stats
path: root/hw/usb.h
diff options
context:
space:
mode:
authorGerd Hoffmann <kraxel@redhat.com>2012-01-20 13:29:53 +0100
committerGerd Hoffmann <kraxel@redhat.com>2012-02-10 12:16:30 +0100
commit37f32f0fdd3ed589266d159abb69f3a1bae20ec5 (patch)
treea704b86e09848c129eace5c224fcd85d5bcf21dd /hw/usb.h
parent7567b51fbe92e1300a672eaddd413c4a7e807d90 (diff)
downloadfocaccia-qemu-37f32f0fdd3ed589266d159abb69f3a1bae20ec5.tar.gz
focaccia-qemu-37f32f0fdd3ed589266d159abb69f3a1bae20ec5.zip
usb: add USBBusOps->wakeup_endpoint
Add usb bus op which is called whenever a usb endpoint becomes ready,
so the host adapter emulation can react on that event.

Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Diffstat (limited to 'hw/usb.h')
-rw-r--r--hw/usb.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/hw/usb.h b/hw/usb.h
index b2caa77345..4470ea890a 100644
--- a/hw/usb.h
+++ b/hw/usb.h
@@ -425,6 +425,7 @@ struct USBBus {
 struct USBBusOps {
     int (*register_companion)(USBBus *bus, USBPort *ports[],
                               uint32_t portcount, uint32_t firstport);
+    void (*wakeup_endpoint)(USBBus *bus, USBEndpoint *ep);
 };
 
 void usb_bus_new(USBBus *bus, USBBusOps *ops, DeviceState *host);