qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] [usb] correct defines for usb-msd massstoragereset and getmaxlun
@ 2006-06-15  3:44 Lonnie Mendez
  0 siblings, 0 replies; only message in thread
From: Lonnie Mendez @ 2006-06-15  3:44 UTC (permalink / raw)
  To: qemu-devel

[-- Attachment #1: Type: text/plain, Size: 209 bytes --]

   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.

[-- Attachment #2: qemu-msd.diff --]
[-- Type: text/x-patch, Size: 360 bytes --]

--- qemu/hw/usb-msd.c	2006-06-14 22:21:29.000000000 -0500
+++ qemu/hw/usb-msd.c	2006-06-14 22:23:09.000000000 -0500
@@ -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.  */

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2006-06-15  3:44 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-06-15  3:44 [Qemu-devel] [usb] correct defines for usb-msd massstoragereset and getmaxlun Lonnie Mendez

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).