summaryrefslogtreecommitdiffstats
path: root/drivers/scsi/scsi_debug.h
diff options
context:
space:
mode:
authorRalf Baechle <ralf@linux-mips.org>1998-03-17 22:05:47 +0000
committerRalf Baechle <ralf@linux-mips.org>1998-03-17 22:05:47 +0000
commit27cfca1ec98e91261b1a5355d10a8996464b63af (patch)
tree8e895a53e372fa682b4c0a585b9377d67ed70d0e /drivers/scsi/scsi_debug.h
parent6a76fb7214c477ccf6582bd79c5b4ccc4f9c41b1 (diff)
Look Ma' what I found on my harddisk ...
o New faster syscalls for 2.1.x, too o Upgrade to 2.1.89. Don't try to run this. It's flaky as hell. But feel free to debug ...
Diffstat (limited to 'drivers/scsi/scsi_debug.h')
-rw-r--r--drivers/scsi/scsi_debug.h35
1 files changed, 24 insertions, 11 deletions
diff --git a/drivers/scsi/scsi_debug.h b/drivers/scsi/scsi_debug.h
index 87ae155f6..43c11af57 100644
--- a/drivers/scsi/scsi_debug.h
+++ b/drivers/scsi/scsi_debug.h
@@ -8,7 +8,7 @@ int scsi_debug_command(Scsi_Cmnd *);
int scsi_debug_queuecommand(Scsi_Cmnd *, void (*done)(Scsi_Cmnd *));
int scsi_debug_abort(Scsi_Cmnd *);
int scsi_debug_biosparam(Disk *, kdev_t, int[]);
-int scsi_debug_reset(Scsi_Cmnd *);
+int scsi_debug_reset(Scsi_Cmnd *, unsigned int);
int scsi_debug_proc_info(char *, char **, off_t, int, int, int);
#ifndef NULL
@@ -16,15 +16,28 @@ int scsi_debug_proc_info(char *, char **, off_t, int, int, int);
#endif
-#define SCSI_DEBUG_MAILBOXES 8
+#define SCSI_DEBUG_MAILBOXES 1
-#define SCSI_DEBUG {NULL, NULL, NULL, scsi_debug_proc_info, \
- "SCSI DEBUG", scsi_debug_detect, NULL, \
- NULL, scsi_debug_command, \
- scsi_debug_queuecommand, \
- scsi_debug_abort, \
- scsi_debug_reset, \
- NULL, \
- scsi_debug_biosparam, \
- SCSI_DEBUG_MAILBOXES, 7, SG_ALL, 1, 0, 1, ENABLE_CLUSTERING}
+/*
+ * Allow the driver to reject commands. Thus we accept only one, but
+ * and the mid-level will queue the remainder.
+ */
+#define SCSI_DEBUG_CANQUEUE 255
+
+#define SCSI_DEBUG {proc_info: scsi_debug_proc_info, \
+ name: "SCSI DEBUG", \
+ detect: scsi_debug_detect, \
+ command: scsi_debug_command, \
+ queuecommand: scsi_debug_queuecommand, \
+ abort: scsi_debug_abort, \
+ reset: scsi_debug_reset, \
+ bios_param: scsi_debug_biosparam, \
+ can_queue: SCSI_DEBUG_CANQUEUE, \
+ this_id: 7, \
+ sg_tablesize: SG_ALL, \
+ cmd_per_lun: 3, \
+ unchecked_isa_dma: 1, \
+ use_clustering: ENABLE_CLUSTERING, \
+ use_new_eh_code: 1, \
+}
#endif