From patchwork Fri Aug 7 17:33:06 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bique Alexandre X-Patchwork-Id: 30947 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.gnu.org (lists.gnu.org [199.232.76.165]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by bilbo.ozlabs.org (Postfix) with ESMTPS id 6E6A1B70BA for ; Sat, 8 Aug 2009 03:38:27 +1000 (EST) Received: from localhost ([127.0.0.1]:57411 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MZTOW-0004sd-TB for incoming@patchwork.ozlabs.org; Fri, 07 Aug 2009 13:38:20 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MZTLg-00040J-3Y for qemu-devel@nongnu.org; Fri, 07 Aug 2009 13:35:24 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MZTLb-0003yA-Ha for qemu-devel@nongnu.org; Fri, 07 Aug 2009 13:35:23 -0400 Received: from [199.232.76.173] (port=39295 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MZTLb-0003y6-DG for qemu-devel@nongnu.org; Fri, 07 Aug 2009 13:35:19 -0400 Received: from smtp.ctxuk.citrix.com ([62.200.22.115]:11273 helo=SMTP.EU.CITRIX.COM) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MZTLa-0002Cr-SE for qemu-devel@nongnu.org; Fri, 07 Aug 2009 13:35:19 -0400 X-IronPort-AV: E=Sophos;i="4.43,343,1246838400"; d="scan'208";a="6538153" Received: from lonpmailmx01.citrite.net ([10.30.224.162]) by LONPIPO01.EU.CITRIX.COM with ESMTP; 07 Aug 2009 17:35:18 +0000 Received: from localhost.localdomain (10.80.2.58) by smtprelay.citirx.com (10.30.224.162) with Microsoft SMTP Server id 8.1.358.0; Fri, 7 Aug 2009 18:35:17 +0100 From: Alexandre Bique To: qemu-devel@nongnu.org Date: Fri, 7 Aug 2009 18:33:06 +0100 Message-ID: <1249666392-31905-2-git-send-email-alexandre.bique@citrix.com> X-Mailer: git-send-email 1.6.4 In-Reply-To: <1249666392-31905-1-git-send-email-alexandre.bique@citrix.com> References: <1249666392-31905-1-git-send-email-alexandre.bique@citrix.com> MIME-Version: 1.0 X-detected-operating-system: by monty-python.gnu.org: Genre and OS details not recognized. Cc: Alexandre Bique Subject: [Qemu-devel] [PATCH 1/7] atapi: fix up a few comments X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Signed-off-by: Alexandre Bique --- hw/ide.c | 12 ++++++------ 1 files changed, 6 insertions(+), 6 deletions(-) diff --git a/hw/ide.c b/hw/ide.c index 6cf04a6..e4e2ab7 100644 --- a/hw/ide.c +++ b/hw/ide.c @@ -1680,9 +1680,9 @@ static void ide_atapi_cmd(IDEState *s) switch(action) { case 0: /* current values */ switch(code) { - case 0x01: /* error recovery */ + case 0x01: /* read write error recovery parameters */ cpu_to_ube16(&buf[0], 16 + 6); - buf[2] = 0x70; + buf[2] = 0x70; /* Obsolete: medium type code */ buf[3] = 0; buf[4] = 0; buf[5] = 0; @@ -1699,17 +1699,17 @@ static void ide_atapi_cmd(IDEState *s) buf[15] = 0x00; ide_atapi_cmd_reply(s, 16, max_len); break; - case 0x2a: + case 0x2a: /* CD/DVD capabilities & mechanical status */ cpu_to_ube16(&buf[0], 28 + 6); - buf[2] = 0x70; + buf[2] = 0x70; /* Obsolete: medium type code */ buf[3] = 0; buf[4] = 0; buf[5] = 0; buf[6] = 0; buf[7] = 0; - buf[8] = 0x2a; - buf[9] = 0x12; + buf[8] = 0x2a; /* page code */ + buf[9] = 0x12; /* page length */ buf[10] = 0x00; buf[11] = 0x00;