Skip to contentSkip to conversation

correct defines for usb-msd massstoragereset and getmaxlun

Qemu-devel Lonnie Mendez 1 participant 1 message Jun 15, 2006

lore
Share & tools
lore
#0 lore raw

lo list. This is a patch to correct the GetMaxLun and
MassStorageReset defines in hw/usb-msd.c. The switch statement is checking against both request type and request. It was discussed briefly in #qemu.

hw/usb-msd.c +2 -2
@@ -19,8 +19,8 @@
 #endif
 
 /* USB requests.  */
-#define MassStorageReset  0xff
-#define GetMaxLun         0xfe
+#define MassStorageReset  0x21ff
+#define GetMaxLun         0xa1fe
 
 enum USBMSDMode {
     USB_MSDM_CBW, /* Command Block.  */