Fixed the WIN_SRST command on NEC CDR-260, now TEAC_CDI.SYS (OTI-011 ATAPI 1.7B driver) detects it.

This commit is contained in:
OBattler
2022-10-29 20:16:12 +02:00
parent e950ebae17
commit a20584fee4

View File

@@ -2157,16 +2157,16 @@ ide_callback(void *priv)
ide_set_signature(ide);
if (ide->type == IDE_ATAPI) {
ide->sc->error = 1;
if (ide->device_reset)
ide->device_reset(ide->sc);
if (ide->sc->pad0) /* pad0 = early */
ide->sc->status = DRDY_STAT | DSC_STAT;
else
ide->sc->status = 0;
ide->sc->error = 1;
if (ide->device_reset)
ide->device_reset(ide->sc);
}
ide_irq_raise(ide);
if (ide->type == IDE_ATAPI)
if ((ide->type == IDE_ATAPI) && !ide->sc->pad0)
ide->service = 0;
return;