patch-2.2.4 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: 41
- Date:
Mon Mar 15 16:11:31 1999
- Orig file:
v2.2.3/linux/drivers/scsi/qlogicpti.h
- Orig date:
Thu Aug 6 14:06:33 1998
diff -u --recursive --new-file v2.2.3/linux/drivers/scsi/qlogicpti.h linux/drivers/scsi/qlogicpti.h
@@ -455,16 +455,24 @@
/* These are the hot elements in the cache, so they come first. */
struct qlogicpti *next; /* Next active adapter */
struct qlogicpti_regs *qregs; /* Adapter registers */
- u_int req_in_ptr; /* index of next request slot */
- u_int res_out_ptr; /* index of next result slot */
struct pti_queue_entry *res_cpu; /* Ptr to RESPONSE bufs (CPU) */
- __u32 res_dvma; /* Ptr to RESPONSE bufs (DVMA)*/
struct pti_queue_entry *req_cpu; /* Ptr to REQUEST bufs (CPU) */
+
+ __u32 res_dvma; /* Ptr to RESPONSE bufs (DVMA)*/
__u32 req_dvma; /* Ptr to REQUEST bufs (DVMA) */
+ u_int req_in_ptr; /* index of next request slot */
+ u_int res_out_ptr; /* index of next result slot */
+
int cmd_count[MAX_TARGETS];
unsigned long tag_ages[MAX_TARGETS];
long send_marker; /* must we send a marker? */
+ /* The cmd->handler is only 32-bits, so that things work even on monster
+ * 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];
+
/* The rest of the elements are unimportant for performance. */
u_char fware_majrev, fware_minrev;
struct Scsi_Host *qhost;
@@ -487,11 +495,7 @@
#define SREG_IMASK 0x0c /* Interrupt level */
#define SREG_SPMASK 0x03 /* Mask for switch pack */
unsigned char swsreg;
-
-#if 0
- char res[RES_QUEUE_LEN+1][QUEUE_ENTRY_LEN];
- char req[QLOGICISP_REQ_QUEUE_LEN+1][QUEUE_ENTRY_LEN];
-#endif
+ unsigned char is_pti; /* Non-zero if this is a PTI board. */
};
/* How to twiddle them bits... */
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)