patch-2.4.20 linux-2.4.20/drivers/message/fusion/mptscsih.h
Next file: linux-2.4.20/drivers/message/i2o/README.ioctl
Previous file: linux-2.4.20/drivers/message/fusion/mptscsih.c
Back to the patch index
Back to the overall index
- Lines: 82
- Date:
Thu Nov 28 15:53:13 2002
- Orig file:
linux-2.4.19/drivers/message/fusion/mptscsih.h
- Orig date:
Fri Aug 2 17:39:44 2002
diff -urN linux-2.4.19/drivers/message/fusion/mptscsih.h linux-2.4.20/drivers/message/fusion/mptscsih.h
@@ -20,7 +20,7 @@
* (mailto:netscape.net)
* (mailto:Pam.Delaney@lsil.com)
*
- * $Id: mptscsih.h,v 1.16 2002/02/27 18:44:30 sralston Exp $
+ * $Id: mptscsih.h,v 1.18 2002/06/06 15:32:52 pdelaney Exp $
*/
/*=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=*/
/*
@@ -73,7 +73,8 @@
* Try to keep these at 2^N-1
*/
#define MPT_FC_CAN_QUEUE 63
-#define MPT_SCSI_CAN_QUEUE 31
+//#define MPT_SCSI_CAN_QUEUE 31
+#define MPT_SCSI_CAN_QUEUE MPT_FC_CAN_QUEUE
#define MPT_SCSI_CMD_PER_LUN 7
#define MPT_SCSI_SG_DEPTH 40
@@ -195,7 +196,7 @@
extern int x_scsi_abort(Scsi_Cmnd *);
extern int x_scsi_bus_reset(Scsi_Cmnd *);
extern int x_scsi_dev_reset(Scsi_Cmnd *);
-/*extern int x_scsi_host_reset(Scsi_Cmnd *);*/
+extern int x_scsi_host_reset(Scsi_Cmnd *);
#else
extern int x_scsi_old_abort(Scsi_Cmnd *);
extern int x_scsi_old_reset(Scsi_Cmnd *, unsigned int);
@@ -212,6 +213,33 @@
#ifdef MPT_SCSI_USE_NEW_EH
+#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,5,1)
+
+#define MPT_SCSIHOST { \
+ next: NULL, \
+ PROC_SCSI_DECL \
+ name: "MPT SCSI Host", \
+ detect: x_scsi_detect, \
+ release: x_scsi_release, \
+ info: x_scsi_info, \
+ command: NULL, \
+ queuecommand: x_scsi_queuecommand, \
+ eh_strategy_handler: NULL, \
+ eh_abort_handler: x_scsi_abort, \
+ eh_device_reset_handler: x_scsi_dev_reset, \
+ eh_bus_reset_handler: x_scsi_bus_reset, \
+ eh_host_reset_handler: x_scsi_host_reset, \
+ bios_param: x_scsi_bios_param, \
+ can_queue: MPT_SCSI_CAN_QUEUE, \
+ this_id: -1, \
+ sg_tablesize: MPT_SCSI_SG_DEPTH, \
+ cmd_per_lun: MPT_SCSI_CMD_PER_LUN, \
+ unchecked_isa_dma: 0, \
+ use_clustering: ENABLE_CLUSTERING, \
+}
+
+#else /* LINUX_VERSION_CODE >= KERNEL_VERSION(2,5,1) */
+
#define MPT_SCSIHOST { \
next: NULL, \
PROC_SCSI_DECL \
@@ -236,7 +264,9 @@
use_new_eh_code: 1 \
}
-#else
+#endif /* LINUX_VERSION_CODE >= KERNEL_VERSION(2,5,1) */
+
+#else /* MPT_SCSI_USE_NEW_EH */
#define MPT_SCSIHOST { \
next: NULL, \
@@ -257,7 +287,7 @@
unchecked_isa_dma: 0, \
use_clustering: ENABLE_CLUSTERING \
}
-#endif
+#endif /* MPT_SCSI_USE_NEW_EH */
/*=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=*/
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)