From 7ce4bd1a11da1b86479f080a72fc22eb03e1e4b2 Mon Sep 17 00:00:00 2001 From: TC1995 Date: Tue, 12 Jan 2021 20:48:47 +0100 Subject: [PATCH] Minor fix to the Longshine card, now it formats HDD's as it should. --- src/scsi/scsi_ncr5380.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/scsi/scsi_ncr5380.c b/src/scsi/scsi_ncr5380.c index defb56d16..2760d2623 100644 --- a/src/scsi/scsi_ncr5380.c +++ b/src/scsi/scsi_ncr5380.c @@ -122,7 +122,7 @@ typedef struct { int8_t irq; int8_t type; int8_t bios_ver; - uint16_t block_count, block_count_num; + uint8_t block_count, block_count_num; uint8_t status_ctrl; uint8_t pad[2]; @@ -638,7 +638,7 @@ ncr_write(uint16_t port, uint8_t val, void *priv) break; } - if (ncr->dma_mode == DMA_IDLE) { + if (ncr->dma_mode == DMA_IDLE || ncr_dev->type == 0) { bus_host = get_bus_host(ncr); ncr_bus_update(priv, bus_host); }