Revision 5fafdf24 hw/usb-wacom.c
b/hw/usb-wacom.c | ||
---|---|---|
78 | 78 |
0x01, /* u8 bNumInterfaces; (1) */ |
79 | 79 |
0x01, /* u8 bConfigurationValue; */ |
80 | 80 |
0x00, /* u8 iConfiguration; */ |
81 |
0x80, /* u8 bmAttributes;
|
|
81 |
0x80, /* u8 bmAttributes; |
|
82 | 82 |
Bit 7: must be set, |
83 | 83 |
6: Self-powered, |
84 | 84 |
5: Remote wakeup, |
... | ... | |
272 | 272 |
case DeviceRequest | USB_REQ_GET_DESCRIPTOR: |
273 | 273 |
switch (value >> 8) { |
274 | 274 |
case USB_DT_DEVICE: |
275 |
memcpy(data, qemu_wacom_dev_descriptor,
|
|
275 |
memcpy(data, qemu_wacom_dev_descriptor, |
|
276 | 276 |
sizeof(qemu_wacom_dev_descriptor)); |
277 | 277 |
ret = sizeof(qemu_wacom_dev_descriptor); |
278 | 278 |
break; |
279 | 279 |
case USB_DT_CONFIG: |
280 |
memcpy(data, qemu_wacom_config_descriptor,
|
|
280 |
memcpy(data, qemu_wacom_config_descriptor, |
|
281 | 281 |
sizeof(qemu_wacom_config_descriptor)); |
282 | 282 |
ret = sizeof(qemu_wacom_config_descriptor); |
283 | 283 |
break; |
Also available in: Unified diff