Fixed Test Unit Ready being the culprit of the non-working Read 10.

Made Unknown transfers as invalid but with SCSI Status Good/Ok in the Adaptec 1540.
SCSI Commands with no transfers are left with no transfer function.
This commit is contained in:
TC1995
2016-11-12 16:30:09 +01:00
parent 0f035b42ea
commit 1ca7016a8e
4 changed files with 14 additions and 46 deletions

View File

@@ -19,14 +19,6 @@ uint8_t SCSIDeviceIsPresent(SCSI *Scsi)
return (scsi_cdrom_id < 7 && Scsi->LunType != SCSI_NONE);
}
void SCSINoTransfer(SCSI *Scsi, uint8_t Id)
{
pclog("SCSI: No Transfer\n");
SGBUF SegmentBuffer;
SegmentBufferInit(&SegmentBuffer, &Scsi->SegmentData, 1);
pfnIoRequestCopyFromBuffer(0, &SegmentBuffer, Scsi->SegmentData.Length);
}
void SCSIReadTransfer(SCSI *Scsi, uint8_t Id)
{
if (Scsi->LunType == SCSI_CDROM)