Commits (1)
/* (2.14)
/* (2.15)
*
* This file is automatically maintained by srccommit, do not edit manually.
* Last processed by srccommit version: 1.1.
*
*/
#define Module_MajorVersion_CMHG 2.14
#define Module_MajorVersion_CMHG 2.15
#define Module_MinorVersion_CMHG
#define Module_Date_CMHG 11 Jan 2018
#define Module_Date_CMHG 13 Jul 2018
#define Module_MajorVersion "2.14"
#define Module_Version 214
#define Module_MajorVersion "2.15"
#define Module_Version 215
#define Module_MinorVersion ""
#define Module_Date "11 Jan 2018"
#define Module_Date "13 Jul 2018"
#define Module_ApplicationDate "11-Jan-18"
#define Module_ApplicationDate "13-Jul-18"
#define Module_ComponentName "SCSISwitch"
#define Module_ComponentPath "castle/RiscOS/Sources/HWSupport/SCSI/SCSISwitch"
#define Module_FullVersion "2.14"
#define Module_HelpVersion "2.14 (11 Jan 2018)"
#define Module_LibraryVersionInfo "2:14"
#define Module_FullVersion "2.15"
#define Module_HelpVersion "2.15 (13 Jul 2018)"
#define Module_LibraryVersionInfo "2:15"
......@@ -29,6 +29,16 @@ void *module_wsp;
void (*irqtrigger)(void);
static int msg_struct[4];
static _kernel_oserror msg_buff;
#ifdef DEBUGLIB
#define DEBUG
#endif
#ifdef DEBUG
#undef dprintf
#define dprintf(...) _dprintf("",__VA_ARGS__)
#else
#undef dprintf
#define dprintf(...) (void) 0
#endif
const char *module_lookup(const char *token)
{
......@@ -64,10 +74,11 @@ _kernel_oserror *module_initialise(const char *cmd_tail, int podule_base, void *
module_wsp = pw;
debug_initialise ("SCSIDriver", "", 0);
debug_set_device(DEBUGIT_OUTPUT);
debug_set_device(DADEBUG_OUTPUT);
// debug_set_device(PRINTF_OUTPUT);
debug_set_unbuffered_files (TRUE);
debug_set_stamp_debug (TRUE);
dprintf("SCSI starting\n");
#ifndef ROM
err = _swix(ResourceFS_RegisterFiles, _IN(0), Resources());
......
......@@ -674,8 +674,13 @@ static void unqueue_cmd_slot(Driver *driver, Cmd *cmd)
if (!irqsoff) _kernel_irqs_off();
Cmd **prevptr = &driver->first_cmd;
Cmd *p;
for (p = *prevptr; p != cmd; prevptr = &p->next, p = *prevptr)
dprintf(" prev: %p %p",prevptr,*prevptr);
if((p = *prevptr),p)
{
for (; p != cmd; prevptr = &p->next, p = *prevptr)
dprintf(" nxp: %p prev: %p",p,prevptr);
;
}
if(p) *prevptr = p->next;
if (!irqsoff) _kernel_irqs_on();
}
......@@ -987,7 +992,7 @@ _kernel_oserror *scsi_op_internal(Device *dev, Driver *driver,
" r5=%08X, r6=%08X, r7=%08X)\n",
(void*)dev, (void*)driver, flags, devid, r->r[1], r->r[2], r->r[3], r->r[4],
r->r[5], r->r[6], r->r[7]);
dprintf("CBD= %02x %02x %02x %02x %02x %02x",
dprintf("devid=%02X CDB= %02x %02x %02x %02x %02x %02x",devid,
*(char*)(r->r[2]),*(char*)(r->r[2]+1),*(char*)(r->r[2]+2),
*(char*)(r->r[2]+3),*(char*)(r->r[2]+4),*(char*)(r->r[2]+5));
if(r->r[1]>6)
......