aboutsummaryrefslogtreecommitdiff
path: root/hw/usb-serial.c
diff options
context:
space:
mode:
authorHans de Goede <hdegoede@redhat.com>2011-02-02 16:33:13 +0100
committerGerd Hoffmann <kraxel@redhat.com>2011-05-26 11:55:02 +0200
commit007fd62f4d3959f2a61abe61a34a54c9f99560b0 (patch)
treeb5f3ffe9b4683aa60061047e3dbbde0ca6298364 /hw/usb-serial.c
parent8656954aedbd9995e68e998df734a849f8e63ade (diff)
downloadqemu-007fd62f4d3959f2a61abe61a34a54c9f99560b0.zip
qemu-007fd62f4d3959f2a61abe61a34a54c9f99560b0.tar.gz
qemu-007fd62f4d3959f2a61abe61a34a54c9f99560b0.tar.bz2
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-serial.c')
-rw-r--r--hw/usb-serial.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/hw/usb-serial.c b/hw/usb-serial.c
index 48ea0d8..59cb0fb 100644
--- a/hw/usb-serial.c
+++ b/hw/usb-serial.c
@@ -219,14 +219,14 @@ static uint8_t usb_get_modem_lines(USBSerialState *s)
return ret;
}
-static int usb_serial_handle_control(USBDevice *dev, int request, int value,
- int index, int length, uint8_t *data)
+static int usb_serial_handle_control(USBDevice *dev, USBPacket *p,
+ int request, int value, int index, int length, uint8_t *data)
{
USBSerialState *s = (USBSerialState *)dev;
int ret;
DPRINTF("got control %x, value %x\n",request, value);
- 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;
}