Implement START STOP UNIT for magneto-optical disks.

This commit is contained in:
2020-03-27 21:03:38 +00:00
parent da259d6150
commit b9d463cf42

View File

@@ -1450,15 +1450,18 @@ do_command(void *p, uint8_t *cdb)
set_phase(dev, SCSI_PHASE_STATUS); set_phase(dev, SCSI_PHASE_STATUS);
switch(cdb[4] & 3) { switch(cdb[4] & 3) {
case 0: /* Stop the disc. */ case 0:
/* Stop the disk */
break;
case 1:
/* Start unit */
break;
case 2:
/* Eject the disk */
ui_mo_eject(dev->id); ui_mo_eject(dev->id);
break; break;
case 1: /* Start the disc and read the TOC. */ case 3:
break; /* Load the disk */
case 2: /* Eject the disc if possible. */
/* mo_eject(dev->id); */
break;
case 3: /* Load the disc (close tray). */
ui_mo_reload(dev->id); ui_mo_reload(dev->id);
break; break;
} }