diff options
author | James Smart <james.smart@emulex.com> | 2012-06-12 13:55:07 -0400 |
---|---|---|
committer | James Bottomley <JBottomley@Parallels.com> | 2012-07-20 03:58:30 -0400 |
commit | 4b8bae08b296a1199ef40f21ea7f4685b2c56ec7 (patch) | |
tree | 1d424820115e7d03262baebd65bf0165ae324f1b /drivers/scsi/lpfc/lpfc_hw4.h | |
parent | 6b415f5d6c05eb7f4808e98baf539c5dbc53cdbc (diff) |
[SCSI] lpfc 8.3.32: Fix error reporting of misconfigured ports
Signed-off-by: Alex Iannicelli <alex.iannicelli@emulex.com>
Signed-off-by: James Smart <james.smart@emulex.com>
Signed-off-by: James Bottomley <JBottomley@Parallels.com>
Diffstat (limited to 'drivers/scsi/lpfc/lpfc_hw4.h')
-rw-r--r-- | drivers/scsi/lpfc/lpfc_hw4.h | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/drivers/scsi/lpfc/lpfc_hw4.h b/drivers/scsi/lpfc/lpfc_hw4.h index a631ebf4158d..953603a7a43c 100644 --- a/drivers/scsi/lpfc/lpfc_hw4.h +++ b/drivers/scsi/lpfc/lpfc_hw4.h | |||
@@ -3106,6 +3106,28 @@ struct lpfc_acqe_fc_la { | |||
3106 | #define LPFC_FC_LA_EVENT_TYPE_SHARED_LINK 0x2 | 3106 | #define LPFC_FC_LA_EVENT_TYPE_SHARED_LINK 0x2 |
3107 | }; | 3107 | }; |
3108 | 3108 | ||
3109 | struct lpfc_acqe_misconfigured_event { | ||
3110 | struct { | ||
3111 | uint32_t word0; | ||
3112 | #define lpfc_sli_misconfigured_port0_SHIFT 0 | ||
3113 | #define lpfc_sli_misconfigured_port0_MASK 0x000000FF | ||
3114 | #define lpfc_sli_misconfigured_port0_WORD word0 | ||
3115 | #define lpfc_sli_misconfigured_port1_SHIFT 8 | ||
3116 | #define lpfc_sli_misconfigured_port1_MASK 0x000000FF | ||
3117 | #define lpfc_sli_misconfigured_port1_WORD word0 | ||
3118 | #define lpfc_sli_misconfigured_port2_SHIFT 16 | ||
3119 | #define lpfc_sli_misconfigured_port2_MASK 0x000000FF | ||
3120 | #define lpfc_sli_misconfigured_port2_WORD word0 | ||
3121 | #define lpfc_sli_misconfigured_port3_SHIFT 24 | ||
3122 | #define lpfc_sli_misconfigured_port3_MASK 0x000000FF | ||
3123 | #define lpfc_sli_misconfigured_port3_WORD word0 | ||
3124 | } theEvent; | ||
3125 | #define LPFC_SLI_EVENT_STATUS_VALID 0x00 | ||
3126 | #define LPFC_SLI_EVENT_STATUS_NOT_PRESENT 0x01 | ||
3127 | #define LPFC_SLI_EVENT_STATUS_WRONG_TYPE 0x02 | ||
3128 | #define LPFC_SLI_EVENT_STATUS_UNSUPPORTED 0x03 | ||
3129 | }; | ||
3130 | |||
3109 | struct lpfc_acqe_sli { | 3131 | struct lpfc_acqe_sli { |
3110 | uint32_t event_data1; | 3132 | uint32_t event_data1; |
3111 | uint32_t event_data2; | 3133 | uint32_t event_data2; |
@@ -3116,6 +3138,7 @@ struct lpfc_acqe_sli { | |||
3116 | #define LPFC_SLI_EVENT_TYPE_NORM_TEMP 0x3 | 3138 | #define LPFC_SLI_EVENT_TYPE_NORM_TEMP 0x3 |
3117 | #define LPFC_SLI_EVENT_TYPE_NVLOG_POST 0x4 | 3139 | #define LPFC_SLI_EVENT_TYPE_NVLOG_POST 0x4 |
3118 | #define LPFC_SLI_EVENT_TYPE_DIAG_DUMP 0x5 | 3140 | #define LPFC_SLI_EVENT_TYPE_DIAG_DUMP 0x5 |
3141 | #define LPFC_SLI_EVENT_TYPE_MISCONFIGURED 0x9 | ||
3119 | }; | 3142 | }; |
3120 | 3143 | ||
3121 | /* | 3144 | /* |