summaryrefslogtreecommitdiff
path: root/drivers/scsi/qla4xxx/ql4_def.h
diff options
context:
space:
mode:
authorNilesh Javali <nilesh.javali@qlogic.com>2012-01-11 14:44:17 +0400
committerJames Bottomley <JBottomley@Parallels.com>2012-01-16 12:32:58 +0400
commit527c8b2e962d21baa38a96b22e1bf50a47fdf4fb (patch)
treeae35de8d17c20c32de942f13bffe7569ba355ec9 /drivers/scsi/qla4xxx/ql4_def.h
parente6bd0ebd4a8ba9118e970c0214e912e35895c92b (diff)
downloadlinux-527c8b2e962d21baa38a96b22e1bf50a47fdf4fb.tar.xz
[SCSI] qla4xxx: Added error logging for firmware abort
Added debug print with error code in case of firmware error. Signed-off-by: Nilesh Javali <nilesh.javali@qlogic.com> Signed-off-by: Vikas Chaudhary <vikas.chaudhary@qlogic.com> Reviewed-by: Mike Christie <michaelc@cs.wisc.edu> Signed-off-by: James Bottomley <JBottomley@Parallels.com>
Diffstat (limited to 'drivers/scsi/qla4xxx/ql4_def.h')
-rw-r--r--drivers/scsi/qla4xxx/ql4_def.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/scsi/qla4xxx/ql4_def.h b/drivers/scsi/qla4xxx/ql4_def.h
index ec48dc30b9a2..bfe68545203f 100644
--- a/drivers/scsi/qla4xxx/ql4_def.h
+++ b/drivers/scsi/qla4xxx/ql4_def.h
@@ -150,6 +150,8 @@
#define QL4_SESS_RECOVERY_TMO 120 /* iSCSI session */
/* recovery timeout */
+#define MSB(x) ((uint8_t)((uint16_t)(x) >> 8))
+#define LSW(x) ((uint16_t)(x))
#define LSDW(x) ((u32)((u64)(x)))
#define MSDW(x) ((u32)((((u64)(x)) >> 16) >> 16))