summaryrefslogtreecommitdiff
path: root/hw/usb-hub.c
diff options
context:
space:
mode:
authorGerd Hoffmann <kraxel@redhat.com>2010-12-03 17:30:13 +0100
committerGerd Hoffmann <kraxel@redhat.com>2011-01-11 17:15:23 +0100
commita68026b52b3992eeafdeb628144785e381f29980 (patch)
tree550450ae452dc3d70d64e3ffddc22a59df174d5b /hw/usb-hub.c
parented4d0bf2d3e7a2ac6d7e85aa0364e40c16fedaaa (diff)
downloadqemu-a68026b52b3992eeafdeb628144785e381f29980.tar.gz
qemu-a68026b52b3992eeafdeb628144785e381f29980.tar.bz2
qemu-a68026b52b3992eeafdeb628144785e381f29980.zip
usb: add speed mask to ports
Add a field to usb ports indicating the speed(s) they are able to handle. Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Diffstat (limited to 'hw/usb-hub.c')
-rw-r--r--hw/usb-hub.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/hw/usb-hub.c b/hw/usb-hub.c
index 8a80151da2..ba712d6252 100644
--- a/hw/usb-hub.c
+++ b/hw/usb-hub.c
@@ -526,7 +526,8 @@ static int usb_hub_initfn(USBDevice *dev)
for (i = 0; i < NUM_PORTS; i++) {
port = &s->ports[i];
usb_register_port(usb_bus_from_device(dev),
- &port->port, s, i, &s->dev, &usb_hub_port_ops);
+ &port->port, s, i, &s->dev, &usb_hub_port_ops,
+ USB_SPEED_MASK_LOW | USB_SPEED_MASK_FULL);
port->wPortStatus = PORT_STAT_POWER;
port->wPortChange = 0;
}