patch-2.4.18 linux/drivers/scsi/scsi_debug.h
Next file: linux/drivers/scsi/scsi_dma.c
Previous file: linux/drivers/scsi/scsi_debug.c
Back to the patch index
Back to the overall index
- Lines: 52
- Date:
Wed Dec 26 15:53:59 2001
- Orig file:
linux.orig/drivers/scsi/scsi_debug.h
- Orig date:
Mon Feb 18 20:18:40 2002
diff -Naur -X /home/marcelo/lib/dontdiff linux.orig/drivers/scsi/scsi_debug.h linux/drivers/scsi/scsi_debug.h
@@ -8,35 +8,43 @@
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 *, unsigned int);
+int scsi_debug_bus_reset(Scsi_Cmnd *);
+int scsi_debug_dev_reset(Scsi_Cmnd *);
+int scsi_debug_host_reset(Scsi_Cmnd *);
int scsi_debug_proc_info(char *, char **, off_t, int, int, int);
+const char * scsi_debug_info(struct Scsi_Host *);
#ifndef NULL
#define NULL 0
#endif
-
-#define SCSI_DEBUG_MAILBOXES 1
-
/*
* 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, \
+#define SCSI_DEBUG_MAX_CMD_LEN 16
+
+#define SCSI_DEBUG_TEMPLATE \
+ {proc_info: scsi_debug_proc_info, \
name: "SCSI DEBUG", \
+ info: scsi_debug_info, \
detect: scsi_debug_detect, \
+ release: scsi_debug_release, \
queuecommand: scsi_debug_queuecommand, \
- abort: scsi_debug_abort, \
- reset: scsi_debug_reset, \
+ eh_abort_handler: scsi_debug_abort, \
+ eh_bus_reset_handler: scsi_debug_bus_reset, \
+ eh_device_reset_handler: scsi_debug_device_reset, \
+ eh_host_reset_handler: scsi_debug_host_reset, \
bios_param: scsi_debug_biosparam, \
can_queue: SCSI_DEBUG_CANQUEUE, \
this_id: 7, \
- sg_tablesize: 16, \
+ sg_tablesize: 64, \
cmd_per_lun: 3, \
unchecked_isa_dma: 0, \
use_clustering: ENABLE_CLUSTERING, \
use_new_eh_code: 1, \
}
+
#endif
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)