From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1FqimJ-0008VM-ME for qemu-devel@nongnu.org; Wed, 14 Jun 2006 23:44:19 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1FqimJ-0008V4-9B for qemu-devel@nongnu.org; Wed, 14 Jun 2006 23:44:19 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1FqimI-0008Uz-Vz for qemu-devel@nongnu.org; Wed, 14 Jun 2006 23:44:19 -0400 Received: from [24.93.47.41] (helo=ms-smtp-02.texas.rr.com) by monty-python.gnu.org with esmtp (Exim 4.52) id 1Fqivc-0000pq-8r for qemu-devel@nongnu.org; Wed, 14 Jun 2006 23:53:56 -0400 Received: from [192.168.0.11] (cpe-67-9-160-120.austin.res.rr.com [67.9.160.120]) by ms-smtp-02.texas.rr.com (8.13.6/8.13.6) with ESMTP id k5F3iGNi013246 for ; Wed, 14 Jun 2006 22:44:16 -0500 (CDT) From: Lonnie Mendez Content-Type: multipart/mixed; boundary="=-2ZRIlHslFLfPimGYLhkE" Date: Wed, 14 Jun 2006 22:44:15 -0500 Message-Id: <1150343055.5160.12.camel@localhost> Mime-Version: 1.0 Subject: [Qemu-devel] [usb] correct defines for usb-msd massstoragereset and getmaxlun Reply-To: qemu-devel@nongnu.org List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org --=-2ZRIlHslFLfPimGYLhkE Content-Type: text/plain Content-Transfer-Encoding: 7bit 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. --=-2ZRIlHslFLfPimGYLhkE Content-Disposition: attachment; filename=qemu-msd.diff Content-Type: text/x-patch; name=qemu-msd.diff; charset=UTF-8 Content-Transfer-Encoding: 7bit --- 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. */ --=-2ZRIlHslFLfPimGYLhkE--