[PATCH 21/52] initio: use standard SAM status definitions

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Use standard SAM status definitions and drop the
driver-defined ones.

Signed-off-by: Hannes Reinecke <hare@xxxxxxx>
---
 drivers/scsi/initio.c | 2 +-
 drivers/scsi/initio.h | 5 -----
 2 files changed, 1 insertion(+), 6 deletions(-)

diff --git a/drivers/scsi/initio.c b/drivers/scsi/initio.c
index 41fd64c9c8e9..d1430a39fe46 100644
--- a/drivers/scsi/initio.c
+++ b/drivers/scsi/initio.c
@@ -1077,7 +1077,7 @@ static int tulip_main(struct initio_host * host)
 
 		/* Walk the list of completed SCBs */
 		while ((scb = initio_find_done_scb(host)) != NULL) {	/* find done entry */
-			if (scb->tastat == INI_QUEUE_FULL) {
+			if (scb->tastat == SAM_STAT_TASK_SET_FULL) {
 				host->max_tags[scb->target] =
 				    host->act_tags[scb->target] - 1;
 				scb->tastat = 0;
diff --git a/drivers/scsi/initio.h b/drivers/scsi/initio.h
index 219b901bdc25..61bae14fee9e 100644
--- a/drivers/scsi/initio.h
+++ b/drivers/scsi/initio.h
@@ -428,11 +428,6 @@ struct scsi_ctrl_blk {
 #define HOST_SCSI_RST   0x1B
 #define HOST_DEV_RST    0x1C
 
-/* Error Codes for SCB_TaStat */
-#define TARGET_CHKCOND  0x02
-#define TARGET_BUSY     0x08
-#define INI_QUEUE_FULL	0x28
-
 /* SCSI MESSAGE */
 #define MSG_COMP        0x00
 #define MSG_EXTEND      0x01
-- 
2.16.4




[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [SCSI Target Devel]     [Linux SCSI Target Infrastructure]     [Kernel Newbies]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Linux IIO]     [Samba]     [Device Mapper]

  Powered by Linux