diff options
author | Hans de Goede <hdegoede@redhat.com> | 2011-02-02 16:33:13 +0100 |
---|---|---|
committer | Gerd Hoffmann <kraxel@redhat.com> | 2011-05-26 11:55:02 +0200 |
commit | 5ec23c2d5bccbf9b5036a70819d6a4235a67ccbb (patch) | |
tree | b5f3ffe9b4683aa60061047e3dbbde0ca6298364 /hw/usb-hub.c | |
parent | 731abd48307fde14b52d6d8b5d0502fd1284425a (diff) | |
download | qemu-5ec23c2d5bccbf9b5036a70819d6a4235a67ccbb.tar.gz qemu-5ec23c2d5bccbf9b5036a70819d6a4235a67ccbb.tar.bz2 qemu-5ec23c2d5bccbf9b5036a70819d6a4235a67ccbb.zip |
usb: Pass the packet to the device's handle_control callback
This allows using the generic usb_generic_handle_packet function from
device code which does ASYNC control requests (such as the linux host
pass through code).
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Diffstat (limited to 'hw/usb-hub.c')
-rw-r--r-- | hw/usb-hub.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/hw/usb-hub.c b/hw/usb-hub.c index 7c1f1597d4..477927b653 100644 --- a/hw/usb-hub.c +++ b/hw/usb-hub.c @@ -285,13 +285,13 @@ static void usb_hub_handle_reset(USBDevice *dev) /* XXX: do it */ } -static int usb_hub_handle_control(USBDevice *dev, int request, int value, - int index, int length, uint8_t *data) +static int usb_hub_handle_control(USBDevice *dev, USBPacket *p, + int request, int value, int index, int length, uint8_t *data) { USBHubState *s = (USBHubState *)dev; int ret; - ret = usb_desc_handle_control(dev, request, value, index, length, data); + ret = usb_desc_handle_control(dev, p, request, value, index, length, data); if (ret >= 0) { return ret; } |