usb: Add a speedmask to devices
authorHans de Goede <hdegoede@redhat.com>
Fri, 27 May 2011 12:27:18 +0000 (14:27 +0200)
committerGerd Hoffmann <kraxel@redhat.com>
Thu, 23 Jun 2011 09:28:06 +0000 (11:28 +0200)
commit13982e3219b4a94b94d0426b8bcbeca203fde38d
tree7868a7af402691d899d6c54007d619c9fb5cc6ce
parent72d8775a0e4261126ef3c03f047f12120a267f49
usb: Add a speedmask to devices

This is used to indicate at which speed[s] the device can operate,
so that this can be checked to match the ports capabilities when it gets
attached to a bus.

Note that currently all usb1 emulated device claim to be fullspeed, this
seems to not cause any problems, but still seems wrong, because with real
hardware keyboards, mice and tablets usually are lo-speed, so reporting these
as fullspeed devices seems wrong.

Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
hw/usb-ccid.c
hw/usb-desc.c
hw/usb.h
usb-bsd.c
usb-linux.c