From: Alan Cox Date: Sat, 10 Oct 2015 20:49:35 +0000 (+0100) Subject: dragon-nx-32: record the slot of the TC3 SCSI if present X-Git-Url: https://git.ndcode.org/public/gitweb.cgi?a=commitdiff_plain;h=df2de9e0906d9829c097b9f91585417269f76588;p=FUZIX.git dragon-nx-32: record the slot of the TC3 SCSI if present --- diff --git a/Kernel/platform-dragon-nx32/devices.c b/Kernel/platform-dragon-nx32/devices.c index 27fd898c..fe23c2f7 100644 --- a/Kernel/platform-dragon-nx32/devices.c +++ b/Kernel/platform-dragon-nx32/devices.c @@ -49,6 +49,7 @@ bool validdev(uint16_t dev) uint16_t ide_base = 0xFF50; uint8_t ide_slot = 3; /* Disk in slot 3 by convention */ +uint8_t scsi_slot = 3; /* Again by convention */ static uint8_t old_slot; @@ -78,5 +79,9 @@ void device_init(void) ide_slot = i; } devide_init(); - devscsi_init(); + i = cart_find(CART_TC3); + if (i >= 0) { + scsi_slot = i; + devscsi_init(); + } }