[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH 1/7] atapi: fix up a few comments
From: |
Alexandre Bique |
Subject: |
[Qemu-devel] [PATCH 1/7] atapi: fix up a few comments |
Date: |
Fri, 7 Aug 2009 18:33:06 +0100 |
Signed-off-by: Alexandre Bique <address@hidden>
---
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;
--
1.6.4
- [Qemu-devel] ATAPI pass throug v4, Alexandre Bique, 2009/08/07
- [Qemu-devel] [PATCH 1/7] atapi: fix up a few comments,
Alexandre Bique <=
- [Qemu-devel] [PATCH 2/7] atapi: protocol define updates, Alexandre Bique, 2009/08/07
- [Qemu-devel] [PATCH 3/7] atapi: guessing if the cdrom device is a scsi device., Alexandre Bique, 2009/08/07
- [Qemu-devel] [PATCH 4/7] atapi: adds header guards to hw/pcmia.h, Alexandre Bique, 2009/08/07
- [Qemu-devel] [PATCH 5/7] atapi: adds header guards to hw/mac_dbdma.h, Alexandre Bique, 2009/08/07
- [Qemu-devel] [PATCH 6/7] atapi: made some part of ide.c public and moved some part to atapi., Alexandre Bique, 2009/08/07
- [Qemu-devel] [PATCH 7/7] atapi: introducing atapi pass through, Alexandre Bique, 2009/08/07
Re: [Qemu-devel] ATAPI pass throug v4, Anthony Liguori, 2009/08/10