mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-12-11 16:00:50 -07:00
Make USB hid devices self-powered
Simplifies power budget negotiation. Signed-off-by: Riku Voipio <riku.voipio@nokia.com> Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
This commit is contained in:
parent
c6703b4761
commit
659139d780
2 changed files with 2 additions and 2 deletions
|
|
@ -100,7 +100,7 @@ static const uint8_t qemu_mouse_config_descriptor[] = {
|
||||||
0x01, /* u8 bNumInterfaces; (1) */
|
0x01, /* u8 bNumInterfaces; (1) */
|
||||||
0x01, /* u8 bConfigurationValue; */
|
0x01, /* u8 bConfigurationValue; */
|
||||||
0x04, /* u8 iConfiguration; */
|
0x04, /* u8 iConfiguration; */
|
||||||
0xa0, /* u8 bmAttributes;
|
0xe0, /* u8 bmAttributes;
|
||||||
Bit 7: must be set,
|
Bit 7: must be set,
|
||||||
6: Self-powered,
|
6: Self-powered,
|
||||||
5: Remote wakeup,
|
5: Remote wakeup,
|
||||||
|
|
|
||||||
|
|
@ -113,7 +113,7 @@ static const uint8_t qemu_hub_config_descriptor[] = {
|
||||||
0x01, /* u8 bNumInterfaces; (1) */
|
0x01, /* u8 bNumInterfaces; (1) */
|
||||||
0x01, /* u8 bConfigurationValue; */
|
0x01, /* u8 bConfigurationValue; */
|
||||||
0x00, /* u8 iConfiguration; */
|
0x00, /* u8 iConfiguration; */
|
||||||
0xc0, /* u8 bmAttributes;
|
0xe0, /* u8 bmAttributes;
|
||||||
Bit 7: must be set,
|
Bit 7: must be set,
|
||||||
6: Self-powered,
|
6: Self-powered,
|
||||||
5: Remote wakeup,
|
5: Remote wakeup,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue