summaryrefslogtreecommitdiffstats
path: root/drivers/scsi/qla2xxx/qla_bsg.h
diff options
context:
space:
mode:
authorHarish Zunjarrao2016-01-27 18:03:35 +0100
committerMartin K. Petersen2016-02-24 03:27:02 +0100
commitc73191b83be3ab8b7f402045a57c27cc5bc4f672 (patch)
treece0b9d18a32c6977c0903aa75e74910c9dd7f944 /drivers/scsi/qla2xxx/qla_bsg.h
parentqla2xxx: Avoid side effects when using endianizer macros. (diff)
downloadkernel-qcow2-linux-c73191b83be3ab8b7f402045a57c27cc5bc4f672.tar.gz
kernel-qcow2-linux-c73191b83be3ab8b7f402045a57c27cc5bc4f672.tar.xz
kernel-qcow2-linux-c73191b83be3ab8b7f402045a57c27cc5bc4f672.zip
qla2xxx: Provide mbx info in BBCR data after mbx failure
Signed-off-by: Harish Zunjarrao <harish.zunjarrao@qlogic.com> Signed-off-by: Himanshu Madhani <himanshu.madhani@qlogic.com> Reviewed-by: Johannes Thumshirn <jthumshirn@suse.de> Reviewed-by: Hannes Reinecke <hare@suse.de> Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Diffstat (limited to 'drivers/scsi/qla2xxx/qla_bsg.h')
-rw-r--r--drivers/scsi/qla2xxx/qla_bsg.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/scsi/qla2xxx/qla_bsg.h b/drivers/scsi/qla2xxx/qla_bsg.h
index c40dd8b608a0..c80192d45536 100644
--- a/drivers/scsi/qla2xxx/qla_bsg.h
+++ b/drivers/scsi/qla2xxx/qla_bsg.h
@@ -245,6 +245,7 @@ struct qla_flash_update_caps {
/* BB_CR Status */
#define QLA_BBCR_STATUS_DISABLED 0
#define QLA_BBCR_STATUS_ENABLED 1
+#define QLA_BBCR_STATUS_UNKNOWN 2
/* BB_CR State */
#define QLA_BBCR_STATE_OFFLINE 0
@@ -262,6 +263,7 @@ struct qla_bbcr_data {
uint8_t configured_bbscn; /* 0-15 */
uint8_t negotiated_bbscn; /* 0-15 */
uint8_t offline_reason_code;
- uint8_t reserved[11];
+ uint16_t mbx1; /* Port state */
+ uint8_t reserved[9];
} __packed;
#endif