aboutsummaryrefslogtreecommitdiff
path: root/hw/usb.h
diff options
context:
space:
mode:
authorHans de Goede <hdegoede@redhat.com>2011-02-02 17:36:29 +0100
committerGerd Hoffmann <kraxel@redhat.com>2011-05-26 11:55:02 +0200
commit50b7963e72da6c31c2bebd435aeefd2966cd94ee (patch)
treece9d06df1e9ba266461b88c8f754653ea3fa2750 /hw/usb.h
parent007fd62f4d3959f2a61abe61a34a54c9f99560b0 (diff)
downloadqemu-50b7963e72da6c31c2bebd435aeefd2966cd94ee.zip
qemu-50b7963e72da6c31c2bebd435aeefd2966cd94ee.tar.gz
qemu-50b7963e72da6c31c2bebd435aeefd2966cd94ee.tar.bz2
usb-linux: use usb_generic_handle_packet()
Make the linux usb host passthrough code use the usb_generic_handle_packet() function, rather then the curent DYI code. This removes 200 lines of almost identical code. Signed-off-by: Hans de Goede <hdegoede@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 b52fa34..c1d1014 100644
--- a/hw/usb.h
+++ b/hw/usb.h
@@ -294,6 +294,7 @@ static inline void usb_cancel_packet(USBPacket * p)
void usb_attach(USBPort *port, USBDevice *dev);
void usb_wakeup(USBDevice *dev);
int usb_generic_handle_packet(USBDevice *s, USBPacket *p);
+void usb_generic_async_ctrl_complete(USBDevice *s, USBPacket *p);
int set_usb_string(uint8_t *buf, const char *str);
void usb_send_msg(USBDevice *dev, int msg);