aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/scsi/tmscsim.h
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/scsi/tmscsim.h')
-rw-r--r--drivers/scsi/tmscsim.h10
1 files changed, 1 insertions, 9 deletions
diff --git a/drivers/scsi/tmscsim.h b/drivers/scsi/tmscsim.h
index c3d8c80cfb38..77adc54dbd16 100644
--- a/drivers/scsi/tmscsim.h
+++ b/drivers/scsi/tmscsim.h
@@ -57,7 +57,6 @@ u8 SGcount;
57 57
58u8 MsgCnt; 58u8 MsgCnt;
59u8 EndMessage; 59u8 EndMessage;
60u8 SavedSGCount;
61 60
62u8 MsgInBuf[6]; 61u8 MsgInBuf[6];
63u8 MsgOutBuf[6]; 62u8 MsgOutBuf[6];
@@ -258,13 +257,6 @@ struct dc390_srb SRB_array[MAX_SRB_CNT]; /* 50 SRBs */
258#define H_BAD_CCB_OR_SG 0x1A 257#define H_BAD_CCB_OR_SG 0x1A
259#define H_ABORT 0x0FF 258#define H_ABORT 0x0FF
260 259
261/*; SCSI Status byte codes*/
262/* The values defined in include/scsi/scsi.h, to be shifted << 1 */
263
264#define SCSI_STAT_UNEXP_BUS_F 0xFD /*; Unexpect Bus Free */
265#define SCSI_STAT_BUS_RST_DETECT 0xFE /*; Scsi Bus Reset detected */
266#define SCSI_STAT_SEL_TIMEOUT 0xFF /*; Selection Time out */
267
268/* cmd->result */ 260/* cmd->result */
269#define RES_TARGET 0x000000FF /* Target State */ 261#define RES_TARGET 0x000000FF /* Target State */
270#define RES_TARGET_LNX STATUS_MASK /* Only official ... */ 262#define RES_TARGET_LNX STATUS_MASK /* Only official ... */
@@ -273,7 +265,7 @@ struct dc390_srb SRB_array[MAX_SRB_CNT]; /* 50 SRBs */
273#define RES_DRV 0xFF000000 /* DRIVER_ codes */ 265#define RES_DRV 0xFF000000 /* DRIVER_ codes */
274 266
275#define MK_RES(drv,did,msg,tgt) ((int)(drv)<<24 | (int)(did)<<16 | (int)(msg)<<8 | (int)(tgt)) 267#define MK_RES(drv,did,msg,tgt) ((int)(drv)<<24 | (int)(did)<<16 | (int)(msg)<<8 | (int)(tgt))
276#define MK_RES_LNX(drv,did,msg,tgt) ((int)(drv)<<24 | (int)(did)<<16 | (int)(msg)<<8 | (int)(tgt)<<1) 268#define MK_RES_LNX(drv,did,msg,tgt) ((int)(drv)<<24 | (int)(did)<<16 | (int)(msg)<<8 | (int)(tgt))
277 269
278#define SET_RES_TARGET(who, tgt) do { who &= ~RES_TARGET; who |= (int)(tgt); } while (0) 270#define SET_RES_TARGET(who, tgt) do { who &= ~RES_TARGET; who |= (int)(tgt); } while (0)
279#define SET_RES_TARGET_LNX(who, tgt) do { who &= ~RES_TARGET_LNX; who |= (int)(tgt) << 1; } while (0) 271#define SET_RES_TARGET_LNX(who, tgt) do { who &= ~RES_TARGET_LNX; who |= (int)(tgt) << 1; } while (0)