Go to the documentation of this file.
21 #define LPFC_ACTIVE_MBOX_WAIT_CNT 100
22 #define LPFC_XRI_EXCH_BUSY_WAIT_TMO 10000
23 #define LPFC_XRI_EXCH_BUSY_WAIT_T1 10
24 #define LPFC_XRI_EXCH_BUSY_WAIT_T2 30000
25 #define LPFC_RELEASE_NOTIFICATION_INTERVAL 32
26 #define LPFC_RPI_LOW_WATER_MARK 10
28 #define LPFC_UNREG_FCF 1
29 #define LPFC_SKIP_UNREG_FCF 0
32 #define LPFC_FCF_REDISCOVER_WAIT_TMO 2000
35 #define LPFC_NEMBED_MBOX_SGL_CNT 254
38 #define LPFC_FCP_IO_CHAN_DEF 4
39 #define LPFC_FCP_IO_CHAN_MIN 1
40 #define LPFC_FCP_IO_CHAN_MAX 16
47 #define LPFC_FCOE_FCF_DEF_INDEX 0
48 #define LPFC_FCOE_FCF_GET_FIRST 0xFFFF
49 #define LPFC_FCOE_FCF_NEXT_NONE 0xFFFF
51 #define LPFC_FCOE_NULL_VID 0xFFF
52 #define LPFC_FCOE_IGNORE_VID 0xFFFF
55 #define LPFC_FCOE_FCF_MAC3 0xFF
56 #define LPFC_FCOE_FCF_MAC4 0xFF
57 #define LPFC_FCOE_FCF_MAC5 0xFE
58 #define LPFC_FCOE_FCF_MAP0 0x0E
59 #define LPFC_FCOE_FCF_MAP1 0xFC
60 #define LPFC_FCOE_FCF_MAP2 0x00
61 #define LPFC_FCOE_MAX_RCV_SIZE 0x800
62 #define LPFC_FCOE_FKA_ADV_PER 0
63 #define LPFC_FCOE_FIP_PRIORITY 0x80
65 #define sli4_sid_from_fc_hdr(fc_hdr) \
66 ((fc_hdr)->fh_s_id[0] << 16 | \
67 (fc_hdr)->fh_s_id[1] << 8 | \
70 #define sli4_did_from_fc_hdr(fc_hdr) \
71 ((fc_hdr)->fh_d_id[0] << 16 | \
72 (fc_hdr)->fh_d_id[1] << 8 | \
75 #define sli4_fctl_from_fc_hdr(fc_hdr) \
76 ((fc_hdr)->fh_f_ctl[0] << 16 | \
77 (fc_hdr)->fh_f_ctl[1] << 8 | \
78 (fc_hdr)->fh_f_ctl[2])
80 #define sli4_type_from_fc_hdr(fc_hdr) \
83 #define LPFC_FW_RESET_MAXIMUM_WAIT_10MS_CNT 12000
129 #define LPFC_QUEUE_MIN_REPOST 8
145 #define EQ_max_eqe q_cnt_1
146 #define EQ_no_entry q_cnt_2
147 #define EQ_badstate q_cnt_3
148 #define EQ_processed q_cnt_4
151 #define CQ_mbox q_cnt_1
152 #define CQ_max_cqe q_cnt_1
153 #define CQ_release_wqe q_cnt_2
154 #define CQ_xri_aborted q_cnt_3
155 #define CQ_wq q_cnt_4
158 #define WQ_overflow q_cnt_1
159 #define WQ_posted q_cnt_4
162 #define RQ_no_posted_buf q_cnt_1
163 #define RQ_no_buf_found q_cnt_2
164 #define RQ_buf_trunc q_cnt_3
165 #define RQ_rcv_buf q_cnt_4
190 #define BOOT_ENABLE 0x01
191 #define RECORD_VALID 0x02
196 #define LPFC_FCF_ON_PRI_LIST 0x0001
197 #define LPFC_FCF_FLOGI_FAILED 0x0002
211 #define LPFC_SLI4_FCF_TBL_INDX_MAX 32
216 #define FCF_AVAILABLE 0x01
217 #define FCF_REGISTERED 0x02
218 #define FCF_SCAN_DONE 0x04
219 #define FCF_IN_USE 0x08
220 #define FCF_INIT_DISC 0x10
221 #define FCF_DEAD_DISC 0x20
222 #define FCF_ACVL_DISC 0x40
223 #define FCF_DISCOVERY (FCF_INIT_DISC | FCF_DEAD_DISC | FCF_ACVL_DISC)
224 #define FCF_REDISC_PEND 0x80
225 #define FCF_REDISC_EVT 0x100
226 #define FCF_REDISC_FOV 0x200
227 #define FCF_REDISC_PROG (FCF_REDISC_PEND | FCF_REDISC_EVT)
240 #define LPFC_REGION23_SIGNATURE "RG23"
241 #define LPFC_REGION23_VERSION 1
242 #define LPFC_REGION23_LAST_REC 0xff
243 #define DRIVER_SPECIFIC_TYPE 0xA2
244 #define LINUX_DRIVER_ID 0x20
245 #define PORT_STE_TYPE 0x1
249 #define FCOE_PARAM_TYPE 0xA0
251 #define FCOE_PARAM_LENGTH 2
253 #define FIPP_VERSION 0x01
255 #define lpfc_fip_param_hdr_fipp_mode_SHIFT 6
256 #define lpfc_fip_param_hdr_fipp_mode_MASK 0x3
257 #define lpfc_fip_param_hdr_fipp_mode_WORD parm_flags
258 #define FIPP_MODE_ON 0x1
259 #define FIPP_MODE_OFF 0x0
260 #define FIPP_VLAN_VALID 0x1
272 #define FCOE_CONN_TBL_TYPE 0xA1
279 #define FCFCNCT_VALID 0x0001
280 #define FCFCNCT_BOOT 0x0002
281 #define FCFCNCT_PRIMARY 0x0004
282 #define FCFCNCT_FBNM_VALID 0x0008
283 #define FCFCNCT_SWNM_VALID 0x0010
284 #define FCFCNCT_VLAN_VALID 0x0020
285 #define FCFCNCT_AM_VALID 0x0040
286 #define FCFCNCT_AM_PREFERRED 0x0080
287 #define FCFCNCT_AM_SPMA 0x0100
315 #define LPFC_EQE_SIZE LPFC_EQE_SIZE_4
317 #define LPFC_EQE_SIZE_4B 4
318 #define LPFC_EQE_SIZE_16B 16
319 #define LPFC_CQE_SIZE 16
320 #define LPFC_WQE_SIZE 64
321 #define LPFC_MQE_SIZE 256
322 #define LPFC_RQE_SIZE 8
324 #define LPFC_EQE_DEF_COUNT 1024
325 #define LPFC_CQE_DEF_COUNT 1024
326 #define LPFC_WQE_DEF_COUNT 256
327 #define LPFC_MQE_DEF_COUNT 16
328 #define LPFC_RQE_DEF_COUNT 512
330 #define LPFC_QUEUE_NOARM false
331 #define LPFC_QUEUE_REARM true
337 #define SLI4_CT_RPI 0
338 #define SLI4_CT_VPI 1
339 #define SLI4_CT_VFI 2
340 #define SLI4_CT_FCFI 3
342 #define LPFC_SLI4_FL1_MAX_SEGMENT_SIZE 0x10000
343 #define LPFC_SLI4_FL1_MAX_BUF_SIZE 0X2000
344 #define LPFC_SLI4_MIN_BUF_SIZE 0x400
345 #define LPFC_SLI4_MAX_BUF_SIZE 0x20000
388 #define LPFC_SLI4_PROTO_FCOE 0x0000001
389 #define LPFC_SLI4_PROTO_FC 0x0000002
390 #define LPFC_SLI4_PROTO_NIC 0x0000004
391 #define LPFC_SLI4_PROTO_ISCSI 0x0000008
392 #define LPFC_SLI4_PROTO_RDMA 0x0000010
426 #define LPFC_LNK_DAT_INVAL 0
427 #define LPFC_LNK_DAT_VAL 1
429 #define LPFC_LNK_GE 0x0
430 #define LPFC_LNK_FC 0x1
434 #define LPFC_SLI4_HANDLER_NAME_SZ 16
457 #define SLIPORT_ERR1_REG_ERR_CODE_1 0x1
458 #define SLIPORT_ERR1_REG_ERR_CODE_2 0x2
460 #define SLIPORT_ERR2_REG_FW_RESTART 0x0
461 #define SLIPORT_ERR2_REG_FUNC_PROVISON 0x1
462 #define SLIPORT_ERR2_REG_FORCED_DUMP 0x2
463 #define SLIPORT_ERR2_REG_FAILURE_EQ 0x3
464 #define SLIPORT_ERR2_REG_FAILURE_CQ 0x4
465 #define SLIPORT_ERR2_REG_FAILURE_BUS 0x5
466 #define SLIPORT_ERR2_REG_FAILURE_RQ 0x6
519 #define LPFC_SP_EQ_MAX_INTR_SEC 10000
520 #define LPFC_FP_EQ_MAX_INTR_SEC 10000
560 #define LPFC_SLI4_PPNAME_NON 0
561 #define LPFC_SLI4_PPNAME_GET 1