The migration of the legacy SCSI controller is now perfectly seamless, thanks, Ryuzaki!

This commit is contained in:
OBattler
2021-07-23 01:20:14 +02:00
parent 729b6d5069
commit c47e766bc4
8 changed files with 54 additions and 74 deletions

View File

@@ -46,7 +46,6 @@
#endif
int scsi_card_current_legacy = 0;
int scsi_card_current[SCSI_BUS_MAX] = { 0, 0 };
static uint8_t next_scsi_bus = 0;
@@ -170,12 +169,6 @@ scsi_card_init(void)
if (machines[machine].flags & MACHINE_SCSI)
max--;
/* This is for grandfathering legacy single-controller configurations. */
if (scsi_cards[scsi_card_current_legacy].device) {
device_add(scsi_cards[scsi_card_current_legacy].device);
max--;
}
/* Do not initialize any controllers if we have do not have any SCSI
bus left. */
if (max > 0) {