/[qemu]/qemu/hw/ide.c
ViewVC logotype

Diff of /qemu/hw/ide.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.36 by bellard, Sat Jul 2 18:11:44 2005 UTC revision 1.37 by bellard, Thu Jul 7 21:46:09 2005 UTC
# Line 1118  static int cdrom_read_toc_raw(IDEState * Line 1118  static int cdrom_read_toc_raw(IDEState *
1118      *q++ = 0; /* min */      *q++ = 0; /* min */
1119      *q++ = 0; /* sec */      *q++ = 0; /* sec */
1120      *q++ = 0; /* frame */      *q++ = 0; /* frame */
1121      *q++ = 0;      if (msf) {
1122      *q++ = 0;          *q++ = 0;
1123      *q++ = 0;          lba_to_msf(q, 0);
1124      *q++ = 0;          q += 3;
1125        } else {
1126            *q++ = 0;
1127            *q++ = 0;
1128            *q++ = 0;
1129            *q++ = 0;
1130        }
1131    
1132      len = q - buf;      len = q - buf;
1133      cpu_to_ube16(buf, len - 2);      cpu_to_ube16(buf, len - 2);
# Line 1488  static void ide_ioport_write(void *opaqu Line 1494  static void ide_ioport_write(void *opaqu
1494          unit = (val >> 4) & 1;          unit = (val >> 4) & 1;
1495          s = ide_if + unit;          s = ide_if + unit;
1496          ide_if->cur_drive = s;          ide_if->cur_drive = s;
 #ifdef TARGET_PPC  
         /* XXX: currently a workaround for Darwin/PPC. Need to check  
            the IDE spec to see if it is correct */  
         ide_set_signature(s);  
 #endif  
1497          break;          break;
1498      default:      default:
1499      case 7:      case 7:

Legend:
Removed from v.1.36  
changed lines
  Added in v.1.37

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26