]> Git Repo - qemu.git/commitdiff
usb: kill usb_send_msg
authorGerd Hoffmann <[email protected]>
Fri, 6 Jan 2012 14:31:38 +0000 (15:31 +0100)
committerGerd Hoffmann <[email protected]>
Fri, 10 Feb 2012 10:12:04 +0000 (11:12 +0100)
No users left.  Zap it.

Signed-off-by: Gerd Hoffmann <[email protected]>
hw/usb.c
hw/usb.h

index c8e6be4bc5baa434001833e6003d644399ca9ba3..0c261644ecb9e7ea20d52fd3a8b689617408bb32 100644 (file)
--- a/hw/usb.c
+++ b/hw/usb.c
@@ -295,19 +295,6 @@ int set_usb_string(uint8_t *buf, const char *str)
     return q - buf;
 }
 
-/* Send an internal message to a USB device.  */
-void usb_send_msg(USBDevice *dev, int msg)
-{
-    USBPacket p;
-    int ret;
-
-    memset(&p, 0, sizeof(p));
-    p.pid = msg;
-    ret = usb_handle_packet(dev, &p);
-    /* This _must_ be synchronous */
-    assert(ret != USB_RET_ASYNC);
-}
-
 /* Hand over a packet to a device for processing.  Return value
    USB_RET_ASYNC indicates the processing isn't finished yet, the
    driver will call usb_packet_complete() when done processing it. */
index b56e812d2c937dc5ccfdf01e9885af6e8f8f4390..61271768bc4982b99c9abb8bd8efe088d0835b79 100644 (file)
--- a/hw/usb.h
+++ b/hw/usb.h
@@ -355,7 +355,6 @@ 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);
 
 /* usb-linux.c */
 USBDevice *usb_host_device_open(const char *devname);
This page took 0.03042 seconds and 4 git commands to generate.