diff options
Diffstat (limited to 'drivers/scsi/lpfc/lpfc_nl.h')
-rw-r--r-- | drivers/scsi/lpfc/lpfc_nl.h | 30 |
1 files changed, 23 insertions, 7 deletions
diff --git a/drivers/scsi/lpfc/lpfc_nl.h b/drivers/scsi/lpfc/lpfc_nl.h index 1accb5a9f4e6..27d1a88a98fe 100644 --- a/drivers/scsi/lpfc/lpfc_nl.h +++ b/drivers/scsi/lpfc/lpfc_nl.h | |||
@@ -22,18 +22,20 @@ | |||
22 | #define FC_REG_LINK_EVENT 0x0001 /* link up / down events */ | 22 | #define FC_REG_LINK_EVENT 0x0001 /* link up / down events */ |
23 | #define FC_REG_RSCN_EVENT 0x0002 /* RSCN events */ | 23 | #define FC_REG_RSCN_EVENT 0x0002 /* RSCN events */ |
24 | #define FC_REG_CT_EVENT 0x0004 /* CT request events */ | 24 | #define FC_REG_CT_EVENT 0x0004 /* CT request events */ |
25 | #define FC_REG_DUMP_EVENT 0x0008 /* Dump events */ | 25 | #define FC_REG_DUMP_EVENT 0x0010 /* Dump events */ |
26 | #define FC_REG_TEMPERATURE_EVENT 0x0010 /* temperature events */ | 26 | #define FC_REG_TEMPERATURE_EVENT 0x0020 /* temperature events */ |
27 | #define FC_REG_ELS_EVENT 0x0020 /* lpfc els events */ | 27 | #define FC_REG_VPORTRSCN_EVENT 0x0040 /* Vport RSCN events */ |
28 | #define FC_REG_FABRIC_EVENT 0x0040 /* lpfc fabric events */ | 28 | #define FC_REG_ELS_EVENT 0x0080 /* lpfc els events */ |
29 | #define FC_REG_SCSI_EVENT 0x0080 /* lpfc scsi events */ | 29 | #define FC_REG_FABRIC_EVENT 0x0100 /* lpfc fabric events */ |
30 | #define FC_REG_BOARD_EVENT 0x0100 /* lpfc board events */ | 30 | #define FC_REG_SCSI_EVENT 0x0200 /* lpfc scsi events */ |
31 | #define FC_REG_ADAPTER_EVENT 0x0200 /* lpfc adapter events */ | 31 | #define FC_REG_BOARD_EVENT 0x0400 /* lpfc board events */ |
32 | #define FC_REG_ADAPTER_EVENT 0x0800 /* lpfc adapter events */ | ||
32 | #define FC_REG_EVENT_MASK (FC_REG_LINK_EVENT | \ | 33 | #define FC_REG_EVENT_MASK (FC_REG_LINK_EVENT | \ |
33 | FC_REG_RSCN_EVENT | \ | 34 | FC_REG_RSCN_EVENT | \ |
34 | FC_REG_CT_EVENT | \ | 35 | FC_REG_CT_EVENT | \ |
35 | FC_REG_DUMP_EVENT | \ | 36 | FC_REG_DUMP_EVENT | \ |
36 | FC_REG_TEMPERATURE_EVENT | \ | 37 | FC_REG_TEMPERATURE_EVENT | \ |
38 | FC_REG_VPORTRSCN_EVENT | \ | ||
37 | FC_REG_ELS_EVENT | \ | 39 | FC_REG_ELS_EVENT | \ |
38 | FC_REG_FABRIC_EVENT | \ | 40 | FC_REG_FABRIC_EVENT | \ |
39 | FC_REG_SCSI_EVENT | \ | 41 | FC_REG_SCSI_EVENT | \ |
@@ -52,6 +54,13 @@ | |||
52 | * The payload sent via the fc transport is one-way driver->application. | 54 | * The payload sent via the fc transport is one-way driver->application. |
53 | */ | 55 | */ |
54 | 56 | ||
57 | /* RSCN event header */ | ||
58 | struct lpfc_rscn_event_header { | ||
59 | uint32_t event_type; | ||
60 | uint32_t payload_length; /* RSCN data length in bytes */ | ||
61 | uint32_t rscn_payload[]; | ||
62 | }; | ||
63 | |||
55 | /* els event header */ | 64 | /* els event header */ |
56 | struct lpfc_els_event_header { | 65 | struct lpfc_els_event_header { |
57 | uint32_t event_type; | 66 | uint32_t event_type; |
@@ -65,6 +74,7 @@ struct lpfc_els_event_header { | |||
65 | #define LPFC_EVENT_PRLO_RCV 0x02 | 74 | #define LPFC_EVENT_PRLO_RCV 0x02 |
66 | #define LPFC_EVENT_ADISC_RCV 0x04 | 75 | #define LPFC_EVENT_ADISC_RCV 0x04 |
67 | #define LPFC_EVENT_LSRJT_RCV 0x08 | 76 | #define LPFC_EVENT_LSRJT_RCV 0x08 |
77 | #define LPFC_EVENT_LOGO_RCV 0x10 | ||
68 | 78 | ||
69 | /* special els lsrjt event */ | 79 | /* special els lsrjt event */ |
70 | struct lpfc_lsrjt_event { | 80 | struct lpfc_lsrjt_event { |
@@ -74,6 +84,11 @@ struct lpfc_lsrjt_event { | |||
74 | uint32_t explanation; | 84 | uint32_t explanation; |
75 | }; | 85 | }; |
76 | 86 | ||
87 | /* special els logo event */ | ||
88 | struct lpfc_logo_event { | ||
89 | struct lpfc_els_event_header header; | ||
90 | uint8_t logo_wwpn[8]; | ||
91 | }; | ||
77 | 92 | ||
78 | /* fabric event header */ | 93 | /* fabric event header */ |
79 | struct lpfc_fabric_event_header { | 94 | struct lpfc_fabric_event_header { |
@@ -125,6 +140,7 @@ struct lpfc_scsi_varqueuedepth_event { | |||
125 | /* special case scsi check condition event */ | 140 | /* special case scsi check condition event */ |
126 | struct lpfc_scsi_check_condition_event { | 141 | struct lpfc_scsi_check_condition_event { |
127 | struct lpfc_scsi_event_header scsi_event; | 142 | struct lpfc_scsi_event_header scsi_event; |
143 | uint8_t opcode; | ||
128 | uint8_t sense_key; | 144 | uint8_t sense_key; |
129 | uint8_t asc; | 145 | uint8_t asc; |
130 | uint8_t ascq; | 146 | uint8_t ascq; |