From 8724e2bfe4724c2c886f8163ee1d77752eb582c0 Mon Sep 17 00:00:00 2001 From: OBattler Date: Tue, 6 Apr 2021 07:35:52 +0200 Subject: [PATCH] Fix for the on-board NCR 53c810 PCI SCSI controller's slot. --- src/scsi/scsi_ncr53c8xx.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/scsi/scsi_ncr53c8xx.c b/src/scsi/scsi_ncr53c8xx.c index 2fe005254..5d4dda794 100644 --- a/src/scsi/scsi_ncr53c8xx.c +++ b/src/scsi/scsi_ncr53c8xx.c @@ -2514,8 +2514,6 @@ ncr53c8xx_init(const device_t *info) memset(dev, 0x00, sizeof(ncr53c8xx_t)); dev->chip_rev = 0; - dev->pci_slot = pci_add_card(PCI_ADD_NORMAL, ncr53c8xx_pci_read, ncr53c8xx_pci_write, dev); - dev->chip = info->local & 0xff; if ((dev->chip != CHIP_810) && (dev->chip != CHIP_820) && !(info->local & 0x8000)) { @@ -2540,6 +2538,11 @@ ncr53c8xx_init(const device_t *info) } else dev->has_bios = 0; + if (info->local & 0x8000) + dev->pci_slot = pci_add_card(PCI_ADD_SCSI, ncr53c8xx_pci_read, ncr53c8xx_pci_write, dev); + else + dev->pci_slot = pci_add_card(PCI_ADD_NORMAL, ncr53c8xx_pci_read, ncr53c8xx_pci_write, dev); + if (dev->chip == CHIP_875) { dev->chip_rev = 0x04; dev->nvr_path = "ncr53c875.nvr";