patch-2.2.13 linux/drivers/scsi/qlogicpti.h
Next file: linux/drivers/scsi/qlogicpti_asm.c
Previous file: linux/drivers/scsi/qlogicpti.c
Back to the patch index
Back to the overall index
- Lines: 68
- Date:
Tue Oct 19 17:14:01 1999
- Orig file:
v2.2.12/linux/drivers/scsi/qlogicpti.h
- Orig date:
Mon Mar 15 16:11:31 1999
diff -u --recursive --new-file v2.2.12/linux/drivers/scsi/qlogicpti.h linux/drivers/scsi/qlogicpti.h
@@ -149,8 +149,8 @@
* requests are queued serially and the scatter/gather limit is
* determined for each queue request anew.
*/
-#define QLOGICISP_REQ_QUEUE_LEN 255 /* must be power of two - 1 */
-#define QLOGICISP_MAX_SG(ql) (4 + ((ql) > 0) ? 7*((ql) - 1) : 0)
+#define QLOGICPTI_REQ_QUEUE_LEN 255 /* must be power of two - 1 */
+#define QLOGICPTI_MAX_SG(ql) (4 + ((ql) > 0) ? 7*((ql) - 1) : 0)
#ifndef NULL
#define NULL (0)
@@ -160,6 +160,7 @@
int qlogicpti_release(struct Scsi_Host *);
const char * qlogicpti_info(struct Scsi_Host *);
int qlogicpti_queuecommand(Scsi_Cmnd *, void (* done)(Scsi_Cmnd *));
+int qlogicpti_queuecommand_slow(Scsi_Cmnd *, void (* done)(Scsi_Cmnd *));
int qlogicpti_abort(Scsi_Cmnd *);
int qlogicpti_reset(Scsi_Cmnd *, unsigned int);
@@ -441,9 +442,9 @@
#define RES_QUEUE_LEN 255 /* Must be power of two - 1 */
#define QUEUE_ENTRY_LEN 64
-#define NEXT_REQ_PTR(wheee) (((wheee) + 1) & QLOGICISP_REQ_QUEUE_LEN)
+#define NEXT_REQ_PTR(wheee) (((wheee) + 1) & QLOGICPTI_REQ_QUEUE_LEN)
#define NEXT_RES_PTR(wheee) (((wheee) + 1) & RES_QUEUE_LEN)
-#define PREV_REQ_PTR(wheee) (((wheee) - 1) & QLOGICISP_REQ_QUEUE_LEN)
+#define PREV_REQ_PTR(wheee) (((wheee) - 1) & QLOGICPTI_REQ_QUEUE_LEN)
#define PREV_RES_PTR(wheee) (((wheee) - 1) & RES_QUEUE_LEN)
struct pti_queue_entry {
@@ -471,10 +472,10 @@
* Ex000 sparc64 machines with >4GB of ram we just keep track of the
* scsi command pointers here. This is essentially what Matt Jacob does. -DaveM
*/
- Scsi_Cmnd *cmd_slots[QLOGICISP_REQ_QUEUE_LEN + 1];
+ Scsi_Cmnd *cmd_slots[QLOGICPTI_REQ_QUEUE_LEN + 1];
/* The rest of the elements are unimportant for performance. */
- u_char fware_majrev, fware_minrev;
+ u_char fware_majrev, fware_minrev, fware_micrev;
struct Scsi_Host *qhost;
struct linux_sbus_device *qdev;
int qpti_id;
@@ -496,6 +497,7 @@
#define SREG_SPMASK 0x03 /* Mask for switch pack */
unsigned char swsreg;
unsigned char is_pti; /* Non-zero if this is a PTI board. */
+ unsigned short sbits;
};
/* How to twiddle them bits... */
@@ -726,12 +728,12 @@
detect: qlogicpti_detect, \
release: qlogicpti_release, \
info: qlogicpti_info, \
- queuecommand: qlogicpti_queuecommand, \
+ queuecommand: qlogicpti_queuecommand_slow, \
abort: qlogicpti_abort, \
reset: qlogicpti_reset, \
- can_queue: QLOGICISP_REQ_QUEUE_LEN, \
+ can_queue: QLOGICPTI_REQ_QUEUE_LEN, \
this_id: 7, \
- sg_tablesize: QLOGICISP_MAX_SG(QLOGICISP_REQ_QUEUE_LEN), \
+ sg_tablesize: QLOGICPTI_MAX_SG(QLOGICPTI_REQ_QUEUE_LEN), \
cmd_per_lun: 1, \
use_clustering: DISABLE_CLUSTERING, \
use_new_eh_code: 0 \
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)