Go to the documentation of this file.
27 #define LPFC_BSG_VENDOR_SET_CT_EVENT 1
28 #define LPFC_BSG_VENDOR_GET_CT_EVENT 2
29 #define LPFC_BSG_VENDOR_SEND_MGMT_RESP 3
30 #define LPFC_BSG_VENDOR_DIAG_MODE 4
31 #define LPFC_BSG_VENDOR_DIAG_RUN_LOOPBACK 5
32 #define LPFC_BSG_VENDOR_GET_MGMT_REV 6
33 #define LPFC_BSG_VENDOR_MBOX 7
34 #define LPFC_BSG_VENDOR_MENLO_CMD 8
35 #define LPFC_BSG_VENDOR_MENLO_DATA 9
36 #define LPFC_BSG_VENDOR_DIAG_MODE_END 10
37 #define LPFC_BSG_VENDOR_LINK_DIAG_TEST 11
63 #define INTERNAL_LOOP_BACK 0x1
64 #define EXTERNAL_LOOP_BACK 0x2
91 #define LPFC_WWNN_TYPE 0
92 #define LPFC_WWPN_TYPE 1
98 #define MANAGEMENT_MAJOR_REV 1
99 #define MANAGEMENT_MINOR_REV 1
111 #define BSG_MBOX_SIZE 4096
164 #define bsg_bf_get_le32(name, ptr) \
165 ((le32_to_cpu((ptr)->name##_WORD) >> name##_SHIFT) & name##_MASK)
166 #define bsg_bf_get(name, ptr) \
167 (((ptr)->name##_WORD >> name##_SHIFT) & name##_MASK)
168 #define bsg_bf_set_le32(name, ptr, value) \
169 ((ptr)->name##_WORD = cpu_to_le32(((((value) & \
170 name##_MASK) << name##_SHIFT) | (le32_to_cpu((ptr)->name##_WORD) & \
171 ~(name##_MASK << name##_SHIFT)))))
172 #define bsg_bf_set(name, ptr, value) \
173 ((ptr)->name##_WORD = ((((value) & name##_MASK) << name##_SHIFT) | \
174 ((ptr)->name##_WORD & ~(name##_MASK << name##_SHIFT))))
190 #define lpfc_mbox_sli_config_mse_len_SHIFT 0
191 #define lpfc_mbox_sli_config_mse_len_MASK 0xffffff
192 #define lpfc_mbox_sli_config_mse_len_WORD buf_len
197 #define lpfc_mbox_sli_config_ecmn_hbd_len_SHIFT 0
198 #define lpfc_mbox_sli_config_ecmn_hbd_len_MASK 0xffffff
199 #define lpfc_mbox_sli_config_ecmn_hbd_len_WORD buf_len
206 #define lpfc_mbox_hdr_emb_SHIFT 0
207 #define lpfc_mbox_hdr_emb_MASK 0x00000001
208 #define lpfc_mbox_hdr_emb_WORD word1
209 #define lpfc_mbox_hdr_mse_cnt_SHIFT 3
210 #define lpfc_mbox_hdr_mse_cnt_MASK 0x0000001f
211 #define lpfc_mbox_hdr_mse_cnt_WORD word1
220 #define LPFC_MBX_SLI_CONFIG_MAX_MSE 19
224 #define lpfc_emb0_subcmnd_opcode_SHIFT 0
225 #define lpfc_emb0_subcmnd_opcode_MASK 0xff
226 #define lpfc_emb0_subcmnd_opcode_WORD word64
227 #define lpfc_emb0_subcmnd_subsys_SHIFT 8
228 #define lpfc_emb0_subcmnd_subsys_MASK 0xff
229 #define lpfc_emb0_subcmnd_subsys_WORD word64
231 #define SLI_CONFIG_SUBSYS_FCOE 0x0C
232 #define FCOE_OPCODE_READ_FCF 0x08
233 #define FCOE_OPCODE_ADD_FCF 0x09
239 #define lpfc_emb1_subcmnd_opcode_SHIFT 0
240 #define lpfc_emb1_subcmnd_opcode_MASK 0xff
241 #define lpfc_emb1_subcmnd_opcode_WORD word6
242 #define lpfc_emb1_subcmnd_subsys_SHIFT 8
243 #define lpfc_emb1_subcmnd_subsys_MASK 0xff
244 #define lpfc_emb1_subcmnd_subsys_WORD word6
246 #define SLI_CONFIG_SUBSYS_COMN 0x01
247 #define COMN_OPCODE_READ_OBJECT 0xAB
248 #define COMN_OPCODE_WRITE_OBJECT 0xAC
249 #define COMN_OPCODE_READ_OBJECT_LIST 0xAD
250 #define COMN_OPCODE_DELETE_OBJECT 0xAE
251 #define COMN_OPCODE_GET_CNTL_ADDL_ATTRIBUTES 0x79
252 #define COMN_OPCODE_GET_CNTL_ATTRIBUTES 0x20
256 #define lpfc_subcmnd_version_SHIFT 0
257 #define lpfc_subcmnd_version_MASK 0xff
258 #define lpfc_subcmnd_version_WORD word9
260 #define lpfc_subcmnd_ask_rd_len_SHIFT 0
261 #define lpfc_subcmnd_ask_rd_len_MASK 0xffffff
262 #define lpfc_subcmnd_ask_rd_len_WORD word10
266 #define LPFC_MBX_SLI_CONFIG_MAX_HBD 8
272 #define lpfc_mqe_status_SHIFT 16
273 #define lpfc_mqe_status_MASK 0x0000FFFF
274 #define lpfc_mqe_status_WORD word0
275 #define lpfc_mqe_command_SHIFT 8
276 #define lpfc_mqe_command_MASK 0x000000FF
277 #define lpfc_mqe_command_WORD word0
285 #define SLI_CONFIG_NOT_HANDLED 0
286 #define SLI_CONFIG_HANDLED 1