Go to the documentation of this file.
23 #include <linux/types.h>
100 #define FC_ELS_CMDS_INIT { \
101 [ELS_LS_RJT] = "LS_RJT", \
102 [ELS_LS_ACC] = "LS_ACC", \
103 [ELS_PLOGI] = "PLOGI", \
104 [ELS_FLOGI] = "FLOGI", \
105 [ELS_LOGO] = "LOGO", \
106 [ELS_ABTX] = "ABTX", \
111 [ELS_ESTS] = "ESTS", \
112 [ELS_ESTC] = "ESTC", \
113 [ELS_ADVC] = "ADVC", \
116 [ELS_ECHO] = "ECHO", \
117 [ELS_TEST] = "TEST", \
121 [ELS_PRLI] = "PRLI", \
122 [ELS_PRLO] = "PRLO", \
124 [ELS_TPLS] = "TPLS", \
125 [ELS_TPRLO] = "TPRLO", \
126 [ELS_LCLM] = "LCLM", \
127 [ELS_GAID] = "GAID", \
128 [ELS_FACT] = "FACT", \
129 [ELS_FDACDT] = "FDACDT", \
130 [ELS_NACT] = "NACT", \
131 [ELS_NDACT] = "NDACT", \
132 [ELS_QOSR] = "QOSR", \
133 [ELS_RVCS] = "RVCS", \
134 [ELS_PDISC] = "PDISC", \
135 [ELS_FDISC] = "FDISC", \
136 [ELS_ADISC] = "ADISC", \
138 [ELS_FARP_REQ] = "FARP_REQ", \
139 [ELS_FARP_REPL] = "FARP_REPL", \
142 [ELS_RPBC] = "RPBC", \
144 [ELS_RSCN] = "RSCN", \
146 [ELS_RNFT] = "RNFT", \
149 [ELS_LINIT] = "LINIT", \
150 [ELS_LSTS] = "LSTS", \
151 [ELS_RNID] = "RNID", \
152 [ELS_RLIR] = "RLIR", \
153 [ELS_LIRR] = "LIRR", \
155 [ELS_SBRP] = "SBRP", \
156 [ELS_RPSC] = "RPSC", \
158 [ELS_EVFP] = "EVFP", \
160 [ELS_AUTH_ELS] = "AUTH_ELS", \
240 #define sp_tot_seq sp_u.sp_plogi._sp_tot_seq
241 #define sp_rel_off sp_u.sp_plogi._sp_rel_off
242 #define sp_r_a_tov sp_u.sp_flogi_acc._sp_r_a_tov
244 #define FC_SP_BB_DATA_MASK 0xfff
249 #define FC_SP_MIN_MAX_PAYLOAD FC_MIN_MAX_PAYLOAD
250 #define FC_SP_MAX_MAX_PAYLOAD FC_MAX_PAYLOAD
255 #define FC_SP_FT_NPIV 0x8000
256 #define FC_SP_FT_CIRO 0x8000
257 #define FC_SP_FT_CLAD 0x8000
258 #define FC_SP_FT_RAND 0x4000
259 #define FC_SP_FT_VAL 0x2000
260 #define FC_SP_FT_NPIV_ACC 0x2000
261 #define FC_SP_FT_FPORT 0x1000
262 #define FC_SP_FT_ABB 0x0800
263 #define FC_SP_FT_EDTR 0x0400
264 #define FC_SP_FT_MCAST 0x0200
265 #define FC_SP_FT_BCAST 0x0100
266 #define FC_SP_FT_HUNT 0x0080
267 #define FC_SP_FT_SIMP 0x0040
268 #define FC_SP_FT_SEC 0x0020
269 #define FC_SP_FT_CSYN 0x0010
270 #define FC_SP_FT_RTTOV 0x0008
271 #define FC_SP_FT_HALF 0x0004
272 #define FC_SP_FT_SEQC 0x0002
273 #define FC_SP_FT_PAYL 0x0001
293 #define FC_CPC_VALID 0x8000
294 #define FC_CPC_IMIX 0x4000
295 #define FC_CPC_SEQ 0x0800
296 #define FC_CPC_CAMP 0x0200
297 #define FC_CPC_PRI 0x0080
303 #define FC_CPI_CSYN 0x0010
308 #define FC_CPR_CSYN 0x0008
340 #define FC_SPP_OPA_VAL 0x80
341 #define FC_SPP_RPA_VAL 0x40
342 #define FC_SPP_EST_IMG_PAIR 0x20
343 #define FC_SPP_RESP_MASK 0x0f
465 #define FC_ELS_RTV_EDRES (1 << 26)
466 #define FC_ELS_RTV_RTTOV (1 << 19)
500 #define ELS_RSCN_EV_QUAL_BIT 2
501 #define ELS_RSCN_EV_QUAL_MASK 0xf
502 #define ELS_RSCN_ADDR_FMT_BIT 0
503 #define ELS_RSCN_ADDR_FMT_MASK 0x3