aboutsummaryrefslogtreecommitdiff
path: root/hw/usb-desc.h
diff options
context:
space:
mode:
authorGerd Hoffmann <kraxel@redhat.com>2010-12-03 18:07:20 +0100
committerGerd Hoffmann <kraxel@redhat.com>2011-01-11 17:15:24 +0100
commit32d41919784abe56b10f6d7784c00bb27e4f4d39 (patch)
tree41416dca0d054a5557b22626e3ad8bb3ecdc8c9c /hw/usb-desc.h
parentb6f77fbe230ad3e9ec5c9115a1535137d5e5d04b (diff)
downloadqemu-32d41919784abe56b10f6d7784c00bb27e4f4d39.zip
qemu-32d41919784abe56b10f6d7784c00bb27e4f4d39.tar.gz
qemu-32d41919784abe56b10f6d7784c00bb27e4f4d39.tar.bz2
usb: add usb_desc_attach
Add usb_desc_attach() which sets up the device according to the speed the usb port is able to handle. This function can be hooked into the handle_attach callback. Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Diffstat (limited to 'hw/usb-desc.h')
-rw-r--r--hw/usb-desc.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/hw/usb-desc.h b/hw/usb-desc.h
index d441725..484c7c7 100644
--- a/hw/usb-desc.h
+++ b/hw/usb-desc.h
@@ -79,6 +79,7 @@ int usb_desc_other(const USBDescOther *desc, uint8_t *dest, size_t len);
/* control message emulation helpers */
void usb_desc_init(USBDevice *dev);
+void usb_desc_attach(USBDevice *dev);
void usb_desc_set_string(USBDevice *dev, uint8_t index, const char *str);
const char *usb_desc_get_string(USBDevice *dev, uint8_t index);
int usb_desc_string(USBDevice *dev, int index, uint8_t *dest, size_t len);