Small 5380 SCSI improvements.

1. The chip in question now supports the right command length for vendor unique commands, fixes crashes that use said commands.
2. Made the CD speed of said chip even closer to the real thing.
This commit is contained in:
TC1995
2024-01-03 23:42:24 +01:00
parent 9ab1957d72
commit a4dcd74216

View File

@@ -185,7 +185,7 @@ typedef struct ncr5380_t {
#define DMA_SEND 1
#define DMA_INITIATOR_RECEIVE 2
static int cmd_len[8] = { 6, 10, 10, 6, 16, 12, 6, 6 };
static int cmd_len[8] = { 6, 10, 10, 6, 16, 12, 10, 6 };
#ifdef ENABLE_NCR5380_LOG
int ncr5380_do_log = ENABLE_NCR5380_LOG;
@@ -278,7 +278,7 @@ ncr_timer_on(ncr5380_t *ncr_dev, ncr_t *ncr, int callback)
if (ncr_dev->type == 3)
p *= 512.0;
else
p *= 128.0;
p *= 144.0;
}
p += 1.0;