From df2de9e0906d9829c097b9f91585417269f76588 Mon Sep 17 00:00:00 2001 From: Alan Cox Date: Sat, 10 Oct 2015 21:49:35 +0100 Subject: [PATCH] dragon-nx-32: record the slot of the TC3 SCSI if present --- Kernel/platform-dragon-nx32/devices.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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(); + } } -- 2.34.1