aboutsummaryrefslogtreecommitdiff
path: root/hw/usb-uhci.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-uhci.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-uhci.c')
-rw-r--r--hw/usb-uhci.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/hw/usb-uhci.c b/hw/usb-uhci.c
index 2d2a9e791d..253561f528 100644
--- a/hw/usb-uhci.c
+++ b/hw/usb-uhci.c
@@ -1129,7 +1129,8 @@ static int usb_uhci_common_initfn(UHCIState *s)
usb_bus_new(&s->bus, &s->dev.qdev);
for(i = 0; i < NB_PORTS; i++) {
- usb_register_port(&s->bus, &s->ports[i].port, s, i, NULL, &uhci_port_ops);
+ usb_register_port(&s->bus, &s->ports[i].port, s, i, NULL, &uhci_port_ops,
+ USB_SPEED_MASK_LOW | USB_SPEED_MASK_FULL);
}
s->frame_timer = qemu_new_timer(vm_clock, uhci_frame_timer, s);
s->expire_time = qemu_get_clock(vm_clock) +