diff options
author | Gerd Hoffmann <kraxel@redhat.com> | 2012-01-17 13:25:46 +0100 |
---|---|---|
committer | Gerd Hoffmann <kraxel@redhat.com> | 2012-02-10 12:16:30 +0100 |
commit | 7567b51fbe92e1300a672eaddd413c4a7e807d90 (patch) | |
tree | 99f49603bb1b279686113e15020145f827777b4a /hw/usb.c | |
parent | db4be873d312576c6971da15a38e056017a406b8 (diff) | |
download | qemu-7567b51fbe92e1300a672eaddd413c4a7e807d90.zip qemu-7567b51fbe92e1300a672eaddd413c4a7e807d90.tar.gz qemu-7567b51fbe92e1300a672eaddd413c4a7e807d90.tar.bz2 |
usb: pass USBEndpoint to usb_wakeup
Devices must specify which endpoint has data to transfer now.
The plan is to use the usb_wakeup() not only for remove wakeup support,
but for "data ready" signaling in general, so we can move away from
constant polling to event driven usb device emulation.
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Diffstat (limited to 'hw/usb.c')
-rw-r--r-- | hw/usb.c | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -70,8 +70,10 @@ void usb_device_reset(USBDevice *dev) usb_device_handle_reset(dev); } -void usb_wakeup(USBDevice *dev) +void usb_wakeup(USBEndpoint *ep) { + USBDevice *dev = ep->dev; + if (dev->remote_wakeup && dev->port && dev->port->ops->wakeup) { dev->port->ops->wakeup(dev->port); } |