aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/scsi/gdth.h
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/scsi/gdth.h')
-rw-r--r--drivers/scsi/gdth.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/drivers/scsi/gdth.h b/drivers/scsi/gdth.h
index e6178c421855..be4ae5abd5c3 100644
--- a/drivers/scsi/gdth.h
+++ b/drivers/scsi/gdth.h
@@ -919,6 +919,11 @@ typedef struct {
919 Scsi_Cmnd *cmnd; /* pending request */ 919 Scsi_Cmnd *cmnd; /* pending request */
920 ushort service; /* service */ 920 ushort service; /* service */
921 } cmd_tab[GDTH_MAXCMDS]; /* table of pend. requests */ 921 } cmd_tab[GDTH_MAXCMDS]; /* table of pend. requests */
922 struct gdth_cmndinfo { /* per-command private info */
923 int index;
924 int internal_command; /* don't call scsi_done */
925 dma_addr_t sense_paddr; /* sense dma-addr */
926 } cmndinfo[GDTH_MAXCMDS]; /* index==0 is free */
922 unchar bus_cnt; /* SCSI bus count */ 927 unchar bus_cnt; /* SCSI bus count */
923 unchar tid_cnt; /* Target ID count */ 928 unchar tid_cnt; /* Target ID count */
924 unchar bus_id[MAXBUS]; /* IOP IDs */ 929 unchar bus_id[MAXBUS]; /* IOP IDs */
@@ -941,6 +946,11 @@ typedef struct {
941 struct scsi_device *sdev; 946 struct scsi_device *sdev;
942} gdth_ha_str; 947} gdth_ha_str;
943 948
949static inline struct gdth_cmndinfo *gdth_cmnd_priv(struct scsi_cmnd* cmd)
950{
951 return (struct gdth_cmndinfo *)cmd->host_scribble;
952}
953
944/* INQUIRY data format */ 954/* INQUIRY data format */
945typedef struct { 955typedef struct {
946 unchar type_qual; 956 unchar type_qual;