aboutsummaryrefslogtreecommitdiff
path: root/hw/usb-ohci.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
commit843d4e0c633824a11c4067d0e84bd683520b5d39 (patch)
tree550450ae452dc3d70d64e3ffddc22a59df174d5b /hw/usb-ohci.c
parent7b074a22dab4bdda9864b933f1bc811a3db42845 (diff)
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-ohci.c')
-rw-r--r--hw/usb-ohci.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/hw/usb-ohci.c b/hw/usb-ohci.c
index c859540c19..0d4271692d 100644
--- a/hw/usb-ohci.c
+++ b/hw/usb-ohci.c
@@ -1699,7 +1699,8 @@ static void usb_ohci_init(OHCIState *ohci, DeviceState *dev,
usb_bus_new(&ohci->bus, dev);
ohci->num_ports = num_ports;
for (i = 0; i < num_ports; i++) {
- usb_register_port(&ohci->bus, &ohci->rhport[i].port, ohci, i, NULL, &ohci_port_ops);
+ usb_register_port(&ohci->bus, &ohci->rhport[i].port, ohci, i, NULL, &ohci_port_ops,
+ USB_SPEED_MASK_LOW | USB_SPEED_MASK_FULL);
}
ohci->async_td = 0;