Revision e5322f76
b/hw/usb-msd.c | ||
---|---|---|
321 | 321 |
ret = 0; |
322 | 322 |
break; |
323 | 323 |
case EndpointOutRequest | USB_REQ_CLEAR_FEATURE: |
324 |
if (value == 0 && index != 0x81) { /* clear ep halt */
|
|
325 |
goto fail;
|
|
326 |
}
|
|
324 |
ret = 0;
|
|
325 |
break;
|
|
326 |
case InterfaceOutRequest | USB_REQ_SET_INTERFACE:
|
|
327 | 327 |
ret = 0; |
328 | 328 |
break; |
329 | 329 |
/* Class specific requests. */ |
330 |
case (((USB_DIR_OUT | USB_TYPE_CLASS | USB_RECIP_INTERFACE) << 8) | MassStorageReset): |
|
330 | 331 |
case MassStorageReset: |
331 | 332 |
/* Reset state ready for the next CBW. */ |
332 | 333 |
s->mode = USB_MSDM_CBW; |
333 | 334 |
ret = 0; |
334 | 335 |
break; |
336 |
case (((USB_DIR_IN | USB_TYPE_CLASS | USB_RECIP_INTERFACE) << 8) | GetMaxLun): |
|
335 | 337 |
case GetMaxLun: |
336 | 338 |
data[0] = 0; |
337 | 339 |
ret = 1; |
Also available in: Unified diff