Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MbHTo-0001vc-N6 for qemu-devel@nongnu.org; Wed, 12 Aug 2009 13:19:16 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MbHTk-0001ro-Iv for qemu-devel@nongnu.org; Wed, 12 Aug 2009 13:19:16 -0400 Received: from [199.232.76.173] (port=58034 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MbHTj-0001rB-V0 for qemu-devel@nongnu.org; Wed, 12 Aug 2009 13:19:12 -0400 Received: from smtp.eu.citrix.com ([62.200.22.115]:62963) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MbHTj-0004gT-GY for qemu-devel@nongnu.org; Wed, 12 Aug 2009 13:19:11 -0400 Received: from iwj by mariner.uk.xensource.com with local (Exim 4.63) (envelope-from ) id 1MbHTh-0007l0-4s for qemu-devel@nongnu.org; Wed, 12 Aug 2009 18:19:09 +0100 In-Reply-To: <<19074.63829.151234.423348@mariner.uk.xensource.com>> References: <<19074.63829.151234.423348@mariner.uk.xensource.com>> From: Ian Jackson Date: Tue, 11 Aug 2009 16:35:08 +0100 Message-ID: MIME-Version: 1.0 Content-Type: text/plain Subject: [Qemu-devel] [PATCH 1/7] atapi: fix up a few comments List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@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 bebda7c..675a06d 100644 --- a/hw/ide.c +++ b/hw/ide.c @@ -1682,9 +1682,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; @@ -1701,17 +1701,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; -- 1.4.4.4