From 25620cba94d7ca126a24d74ce6f2ac42aa9a2fe8 Mon Sep 17 00:00:00 2001 From: Gerd Hoffmann Date: Wed, 8 Dec 2010 17:35:22 +0100 Subject: usb: add device qualifier support Add support for device_qualifier and other_speed_config descriptors. These are used to query the "other speed" configuration of usb 2.0 devices, i.e. in high-speed mode they return the full-speed configuration and visa versa. Signed-off-by: Gerd Hoffmann --- hw/usb-desc.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'hw/usb-desc.h') diff --git a/hw/usb-desc.h b/hw/usb-desc.h index 484c7c7fc3..ac734ab088 100644 --- a/hw/usb-desc.h +++ b/hw/usb-desc.h @@ -72,6 +72,8 @@ struct USBDesc { /* generate usb packages from structs */ int usb_desc_device(const USBDescID *id, const USBDescDevice *dev, uint8_t *dest, size_t len); +int usb_desc_device_qualifier(const USBDescDevice *dev, + uint8_t *dest, size_t len); int usb_desc_config(const USBDescConfig *conf, uint8_t *dest, size_t len); int usb_desc_iface(const USBDescIface *iface, uint8_t *dest, size_t len); int usb_desc_endpoint(const USBDescEndpoint *ep, uint8_t *dest, size_t len); -- cgit v1.2.3