Go to the documentation of this file.
21 #define FC_MAX_HOLD_RSCN 32
22 #define FC_MAX_NS_RSP 64512
23 #define FC_MAXLOOP 126
24 #define LPFC_DISC_FLOGI_TMO 10
71 #define LPFC_SLI4_MAX_XRI 1024
72 #define XRI_BITMAP_ULONGS (LPFC_SLI4_MAX_XRI / BITS_PER_LONG)
85 #define NLP_FC_NODE 0x1
86 #define NLP_FABRIC 0x4
87 #define NLP_FCP_TARGET 0x8
88 #define NLP_FCP_INITIATOR 0x10
95 #define NLP_NO_SID 0xffff
100 #define NLP_FCP_2_DEVICE 0x10
103 #define NLP_USG_NODE_ACT_BIT 0x1
104 #define NLP_USG_IACT_REQ_BIT 0x2
105 #define NLP_USG_FREE_REQ_BIT 0x4
106 #define NLP_USG_FREE_ACK_BIT 0x8
134 #define NLP_IGNR_REG_CMPL 0x00000001
135 #define NLP_REG_LOGIN_SEND 0x00000002
136 #define NLP_PLOGI_SND 0x00000020
137 #define NLP_PRLI_SND 0x00000040
138 #define NLP_ADISC_SND 0x00000080
139 #define NLP_LOGO_SND 0x00000100
140 #define NLP_RNID_SND 0x00000400
141 #define NLP_ELS_SND_MASK 0x000007e0
142 #define NLP_DEFER_RM 0x00010000
143 #define NLP_DELAY_TMO 0x00020000
144 #define NLP_NPR_2B_DISC 0x00040000
145 #define NLP_RCV_PLOGI 0x00080000
146 #define NLP_LOGO_ACC 0x00100000
147 #define NLP_TGT_NO_SCSIID 0x00200000
148 #define NLP_ISSUE_LOGO 0x00400000
149 #define NLP_ACC_REGLOGIN 0x01000000
151 #define NLP_NPR_ADISC 0x02000000
153 #define NLP_RM_DFLT_RPI 0x04000000
154 #define NLP_NODEV_REMOVE 0x08000000
155 #define NLP_TARGET_REMOVE 0x10000000
156 #define NLP_SC_REQ 0x20000000
157 #define NLP_RPI_REGISTERED 0x80000000
160 #define NLP_CHK_NODE_ACT(ndlp) (((ndlp)->nlp_usg_map \
161 & NLP_USG_NODE_ACT_BIT) \
163 !((ndlp)->nlp_usg_map \
164 & NLP_USG_FREE_ACK_BIT))
165 #define NLP_SET_NODE_ACT(ndlp) ((ndlp)->nlp_usg_map \
166 |= NLP_USG_NODE_ACT_BIT)
167 #define NLP_INT_NODE_ACT(ndlp) ((ndlp)->nlp_usg_map \
168 = NLP_USG_NODE_ACT_BIT)
169 #define NLP_CLR_NODE_ACT(ndlp) ((ndlp)->nlp_usg_map \
170 &= ~NLP_USG_NODE_ACT_BIT)
171 #define NLP_CHK_IACT_REQ(ndlp) ((ndlp)->nlp_usg_map \
172 & NLP_USG_IACT_REQ_BIT)
173 #define NLP_SET_IACT_REQ(ndlp) ((ndlp)->nlp_usg_map \
174 |= NLP_USG_IACT_REQ_BIT)
175 #define NLP_CHK_FREE_REQ(ndlp) ((ndlp)->nlp_usg_map \
176 & NLP_USG_FREE_REQ_BIT)
177 #define NLP_SET_FREE_REQ(ndlp) ((ndlp)->nlp_usg_map \
178 |= NLP_USG_FREE_REQ_BIT)
179 #define NLP_CHK_FREE_ACK(ndlp) ((ndlp)->nlp_usg_map \
180 & NLP_USG_FREE_ACK_BIT)
181 #define NLP_SET_FREE_ACK(ndlp) ((ndlp)->nlp_usg_map \
182 |= NLP_USG_FREE_ACK_BIT)
200 #define NLP_STE_UNUSED_NODE 0x0
201 #define NLP_STE_PLOGI_ISSUE 0x1
202 #define NLP_STE_ADISC_ISSUE 0x2
203 #define NLP_STE_REG_LOGIN_ISSUE 0x3
204 #define NLP_STE_PRLI_ISSUE 0x4
205 #define NLP_STE_LOGO_ISSUE 0x5
206 #define NLP_STE_UNMAPPED_NODE 0x6
207 #define NLP_STE_MAPPED_NODE 0x7
208 #define NLP_STE_NPR_NODE 0x8
209 #define NLP_STE_MAX_STATE 0x9
210 #define NLP_STE_FREED_NODE 0xff
253 #define NLP_EVT_RCV_PLOGI 0x0
254 #define NLP_EVT_RCV_PRLI 0x1
255 #define NLP_EVT_RCV_LOGO 0x2
256 #define NLP_EVT_RCV_ADISC 0x3
257 #define NLP_EVT_RCV_PDISC 0x4
258 #define NLP_EVT_RCV_PRLO 0x5
259 #define NLP_EVT_CMPL_PLOGI 0x6
260 #define NLP_EVT_CMPL_PRLI 0x7
261 #define NLP_EVT_CMPL_LOGO 0x8
262 #define NLP_EVT_CMPL_ADISC 0x9
263 #define NLP_EVT_CMPL_REG_LOGIN 0xa
264 #define NLP_EVT_DEVICE_RM 0xb
265 #define NLP_EVT_DEVICE_RECOVERY 0xc
266 #define NLP_EVT_MAX_EVENT 0xd