blob: c1f9e940597d9f3e1c2d2c9502f4c5ab36740a43 [file] [log] [blame]
Ben Cheng655a7c02013-10-16 16:09:24 -07001/****************************************************************************
2 ****************************************************************************
3 ***
4 *** This header was automatically generated from a Linux kernel header
5 *** of the same name, to make information necessary for userspace to
6 *** call into the kernel available to libc. It contains only constants,
7 *** structures, and macros generated from the original header, and thus,
8 *** contains no copyrightable information.
9 ***
10 *** To edit the content of this header, modify the corresponding
11 *** source file (e.g. under external/kernel-headers/original/) then
12 *** run bionic/libc/kernel/tools/update_all.py
13 ***
14 *** Any manual change here will be lost the next time this script will
15 *** be run. You've been warned!
16 ***
17 ****************************************************************************
18 ****************************************************************************/
19#ifndef _FC_ELS_H_
20#define _FC_ELS_H_
21#include <linux/types.h>
22enum fc_els_cmd {
23/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -080024 ELS_LS_RJT = 0x01,
25 ELS_LS_ACC = 0x02,
26 ELS_PLOGI = 0x03,
27 ELS_FLOGI = 0x04,
Ben Cheng655a7c02013-10-16 16:09:24 -070028/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -080029 ELS_LOGO = 0x05,
30 ELS_ABTX = 0x06,
31 ELS_RCS = 0x07,
32 ELS_RES = 0x08,
Ben Cheng655a7c02013-10-16 16:09:24 -070033/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -080034 ELS_RSS = 0x09,
35 ELS_RSI = 0x0a,
36 ELS_ESTS = 0x0b,
37 ELS_ESTC = 0x0c,
Ben Cheng655a7c02013-10-16 16:09:24 -070038/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -080039 ELS_ADVC = 0x0d,
40 ELS_RTV = 0x0e,
41 ELS_RLS = 0x0f,
42 ELS_ECHO = 0x10,
Ben Cheng655a7c02013-10-16 16:09:24 -070043/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -080044 ELS_TEST = 0x11,
45 ELS_RRQ = 0x12,
46 ELS_REC = 0x13,
47 ELS_SRR = 0x14,
Ben Cheng655a7c02013-10-16 16:09:24 -070048/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -080049 ELS_PRLI = 0x20,
50 ELS_PRLO = 0x21,
51 ELS_SCN = 0x22,
52 ELS_TPLS = 0x23,
Ben Cheng655a7c02013-10-16 16:09:24 -070053/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -080054 ELS_TPRLO = 0x24,
55 ELS_LCLM = 0x25,
56 ELS_GAID = 0x30,
57 ELS_FACT = 0x31,
Ben Cheng655a7c02013-10-16 16:09:24 -070058/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -080059 ELS_FDACDT = 0x32,
60 ELS_NACT = 0x33,
61 ELS_NDACT = 0x34,
62 ELS_QOSR = 0x40,
Ben Cheng655a7c02013-10-16 16:09:24 -070063/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -080064 ELS_RVCS = 0x41,
65 ELS_PDISC = 0x50,
66 ELS_FDISC = 0x51,
67 ELS_ADISC = 0x52,
Ben Cheng655a7c02013-10-16 16:09:24 -070068/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -080069 ELS_RNC = 0x53,
70 ELS_FARP_REQ = 0x54,
71 ELS_FARP_REPL = 0x55,
72 ELS_RPS = 0x56,
Ben Cheng655a7c02013-10-16 16:09:24 -070073/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -080074 ELS_RPL = 0x57,
75 ELS_RPBC = 0x58,
76 ELS_FAN = 0x60,
77 ELS_RSCN = 0x61,
Ben Cheng655a7c02013-10-16 16:09:24 -070078/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -080079 ELS_SCR = 0x62,
80 ELS_RNFT = 0x63,
81 ELS_CSR = 0x68,
82 ELS_CSU = 0x69,
Ben Cheng655a7c02013-10-16 16:09:24 -070083/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -080084 ELS_LINIT = 0x70,
85 ELS_LSTS = 0x72,
86 ELS_RNID = 0x78,
87 ELS_RLIR = 0x79,
Ben Cheng655a7c02013-10-16 16:09:24 -070088/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -080089 ELS_LIRR = 0x7a,
90 ELS_SRL = 0x7b,
91 ELS_SBRP = 0x7c,
92 ELS_RPSC = 0x7d,
Ben Cheng655a7c02013-10-16 16:09:24 -070093/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -080094 ELS_QSA = 0x7e,
95 ELS_EVFP = 0x7f,
96 ELS_LKA = 0x80,
97 ELS_AUTH_ELS = 0x90,
Ben Cheng655a7c02013-10-16 16:09:24 -070098/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
99};
Tao Baod7db5942015-01-28 10:07:51 -0800100#define FC_ELS_CMDS_INIT {[ELS_LS_RJT] = "LS_RJT",[ELS_LS_ACC] = "LS_ACC",[ELS_PLOGI] = "PLOGI",[ELS_FLOGI] = "FLOGI",[ELS_LOGO] = "LOGO",[ELS_ABTX] = "ABTX",[ELS_RCS] = "RCS",[ELS_RES] = "RES",[ELS_RSS] = "RSS",[ELS_RSI] = "RSI",[ELS_ESTS] = "ESTS",[ELS_ESTC] = "ESTC",[ELS_ADVC] = "ADVC",[ELS_RTV] = "RTV",[ELS_RLS] = "RLS",[ELS_ECHO] = "ECHO",[ELS_TEST] = "TEST",[ELS_RRQ] = "RRQ",[ELS_REC] = "REC",[ELS_SRR] = "SRR",[ELS_PRLI] = "PRLI",[ELS_PRLO] = "PRLO",[ELS_SCN] = "SCN",[ELS_TPLS] = "TPLS",[ELS_TPRLO] = "TPRLO",[ELS_LCLM] = "LCLM",[ELS_GAID] = "GAID",[ELS_FACT] = "FACT",[ELS_FDACDT] = "FDACDT",[ELS_NACT] = "NACT",[ELS_NDACT] = "NDACT",[ELS_QOSR] = "QOSR",[ELS_RVCS] = "RVCS",[ELS_PDISC] = "PDISC",[ELS_FDISC] = "FDISC",[ELS_ADISC] = "ADISC",[ELS_RNC] = "RNC",[ELS_FARP_REQ] = "FARP_REQ",[ELS_FARP_REPL] = "FARP_REPL",[ELS_RPS] = "RPS",[ELS_RPL] = "RPL",[ELS_RPBC] = "RPBC",[ELS_FAN] = "FAN",[ELS_RSCN] = "RSCN",[ELS_SCR] = "SCR",[ELS_RNFT] = "RNFT",[ELS_CSR] = "CSR",[ELS_CSU] = "CSU",[ELS_LINIT] = "LINIT",[ELS_LSTS] = "LSTS",[ELS_RNID] = "RNID",[ELS_RLIR] = "RLIR",[ELS_LIRR] = "LIRR",[ELS_SRL] = "SRL",[ELS_SBRP] = "SBRP",[ELS_RPSC] = "RPSC",[ELS_QSA] = "QSA",[ELS_EVFP] = "EVFP",[ELS_LKA] = "LKA",[ELS_AUTH_ELS] = "AUTH_ELS", \
101}
Ben Cheng655a7c02013-10-16 16:09:24 -0700102struct fc_els_ls_acc {
Tao Baod7db5942015-01-28 10:07:51 -0800103 __u8 la_cmd;
Ben Cheng655a7c02013-10-16 16:09:24 -0700104/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800105 __u8 la_resv[3];
Ben Cheng655a7c02013-10-16 16:09:24 -0700106};
107struct fc_els_ls_rjt {
Tao Baod7db5942015-01-28 10:07:51 -0800108 __u8 er_cmd;
Ben Cheng655a7c02013-10-16 16:09:24 -0700109/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800110 __u8 er_resv[4];
111 __u8 er_reason;
112 __u8 er_explan;
113 __u8 er_vendor;
Ben Cheng655a7c02013-10-16 16:09:24 -0700114/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
115};
116enum fc_els_rjt_reason {
Tao Baod7db5942015-01-28 10:07:51 -0800117 ELS_RJT_NONE = 0,
118 ELS_RJT_INVAL = 0x01,
Ben Cheng655a7c02013-10-16 16:09:24 -0700119/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800120 ELS_RJT_LOGIC = 0x03,
121 ELS_RJT_BUSY = 0x05,
122 ELS_RJT_PROT = 0x07,
123 ELS_RJT_UNAB = 0x09,
Ben Cheng655a7c02013-10-16 16:09:24 -0700124/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800125 ELS_RJT_UNSUP = 0x0b,
126 ELS_RJT_INPROG = 0x0e,
127 ELS_RJT_FIP = 0x20,
128 ELS_RJT_VENDOR = 0xff,
Ben Cheng655a7c02013-10-16 16:09:24 -0700129/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
130};
131enum fc_els_rjt_explan {
Tao Baod7db5942015-01-28 10:07:51 -0800132 ELS_EXPL_NONE = 0x00,
133 ELS_EXPL_SPP_OPT_ERR = 0x01,
Ben Cheng655a7c02013-10-16 16:09:24 -0700134/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800135 ELS_EXPL_SPP_ICTL_ERR = 0x03,
136 ELS_EXPL_AH = 0x11,
137 ELS_EXPL_AH_REQ = 0x13,
138 ELS_EXPL_SID = 0x15,
Ben Cheng655a7c02013-10-16 16:09:24 -0700139/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800140 ELS_EXPL_OXID_RXID = 0x17,
141 ELS_EXPL_INPROG = 0x19,
142 ELS_EXPL_PLOGI_REQD = 0x1e,
143 ELS_EXPL_INSUF_RES = 0x29,
Ben Cheng655a7c02013-10-16 16:09:24 -0700144/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800145 ELS_EXPL_UNAB_DATA = 0x2a,
146 ELS_EXPL_UNSUPR = 0x2c,
147 ELS_EXPL_INV_LEN = 0x2d,
148 ELS_EXPL_NOT_NEIGHBOR = 0x62,
Ben Cheng655a7c02013-10-16 16:09:24 -0700149/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
150};
151struct fc_els_csp {
Tao Baod7db5942015-01-28 10:07:51 -0800152 __u8 sp_hi_ver;
153 __u8 sp_lo_ver;
Ben Cheng655a7c02013-10-16 16:09:24 -0700154/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800155 __be16 sp_bb_cred;
156 __be16 sp_features;
157 __be16 sp_bb_data;
158 union {
Ben Cheng655a7c02013-10-16 16:09:24 -0700159/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800160 struct {
161 __be16 _sp_tot_seq;
162 __be16 _sp_rel_off;
163 } sp_plogi;
Ben Cheng655a7c02013-10-16 16:09:24 -0700164/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800165 struct {
166 __be32 _sp_r_a_tov;
167 } sp_flogi_acc;
168 } sp_u;
Ben Cheng655a7c02013-10-16 16:09:24 -0700169/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800170 __be32 sp_e_d_tov;
Ben Cheng655a7c02013-10-16 16:09:24 -0700171};
172#define sp_tot_seq sp_u.sp_plogi._sp_tot_seq
173#define sp_rel_off sp_u.sp_plogi._sp_rel_off
174/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
175#define sp_r_a_tov sp_u.sp_flogi_acc._sp_r_a_tov
176#define FC_SP_BB_DATA_MASK 0xfff
177#define FC_SP_MIN_MAX_PAYLOAD FC_MIN_MAX_PAYLOAD
178#define FC_SP_MAX_MAX_PAYLOAD FC_MAX_PAYLOAD
179/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
180#define FC_SP_FT_NPIV 0x8000
181#define FC_SP_FT_CIRO 0x8000
182#define FC_SP_FT_CLAD 0x8000
183#define FC_SP_FT_RAND 0x4000
184/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
185#define FC_SP_FT_VAL 0x2000
186#define FC_SP_FT_NPIV_ACC 0x2000
187#define FC_SP_FT_FPORT 0x1000
188#define FC_SP_FT_ABB 0x0800
189/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
190#define FC_SP_FT_EDTR 0x0400
191#define FC_SP_FT_MCAST 0x0200
192#define FC_SP_FT_BCAST 0x0100
193#define FC_SP_FT_HUNT 0x0080
194/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
195#define FC_SP_FT_SIMP 0x0040
196#define FC_SP_FT_SEC 0x0020
197#define FC_SP_FT_CSYN 0x0010
198#define FC_SP_FT_RTTOV 0x0008
199/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
200#define FC_SP_FT_HALF 0x0004
201#define FC_SP_FT_SEQC 0x0002
202#define FC_SP_FT_PAYL 0x0001
203struct fc_els_cssp {
204/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800205 __be16 cp_class;
206 __be16 cp_init;
207 __be16 cp_recip;
208 __be16 cp_rdfs;
Ben Cheng655a7c02013-10-16 16:09:24 -0700209/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800210 __be16 cp_con_seq;
211 __be16 cp_ee_cred;
212 __u8 cp_resv1;
213 __u8 cp_open_seq;
Ben Cheng655a7c02013-10-16 16:09:24 -0700214/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800215 __u8 _cp_resv2[2];
Ben Cheng655a7c02013-10-16 16:09:24 -0700216};
217#define FC_CPC_VALID 0x8000
218#define FC_CPC_IMIX 0x4000
219/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
220#define FC_CPC_SEQ 0x0800
221#define FC_CPC_CAMP 0x0200
222#define FC_CPC_PRI 0x0080
223#define FC_CPI_CSYN 0x0010
224/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
225#define FC_CPR_CSYN 0x0008
226struct fc_els_flogi {
Tao Baod7db5942015-01-28 10:07:51 -0800227 __u8 fl_cmd;
228 __u8 _fl_resvd[3];
Ben Cheng655a7c02013-10-16 16:09:24 -0700229/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800230 struct fc_els_csp fl_csp;
231 __be64 fl_wwpn;
232 __be64 fl_wwnn;
233 struct fc_els_cssp fl_cssp[4];
Ben Cheng655a7c02013-10-16 16:09:24 -0700234/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800235 __u8 fl_vend[16];
Ben Cheng655a7c02013-10-16 16:09:24 -0700236} __attribute__((__packed__));
237struct fc_els_spp {
Tao Baod7db5942015-01-28 10:07:51 -0800238 __u8 spp_type;
Ben Cheng655a7c02013-10-16 16:09:24 -0700239/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800240 __u8 spp_type_ext;
241 __u8 spp_flags;
242 __u8 _spp_resvd;
243 __be32 spp_orig_pa;
Ben Cheng655a7c02013-10-16 16:09:24 -0700244/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800245 __be32 spp_resp_pa;
246 __be32 spp_params;
Ben Cheng655a7c02013-10-16 16:09:24 -0700247};
248#define FC_SPP_OPA_VAL 0x80
249/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
250#define FC_SPP_RPA_VAL 0x40
251#define FC_SPP_EST_IMG_PAIR 0x20
252#define FC_SPP_RESP_MASK 0x0f
253enum fc_els_spp_resp {
254/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800255 FC_SPP_RESP_ACK = 1,
256 FC_SPP_RESP_RES = 2,
257 FC_SPP_RESP_INIT = 3,
258 FC_SPP_RESP_NO_PA = 4,
Ben Cheng655a7c02013-10-16 16:09:24 -0700259/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800260 FC_SPP_RESP_CONF = 5,
261 FC_SPP_RESP_COND = 6,
262 FC_SPP_RESP_MULT = 7,
263 FC_SPP_RESP_INVL = 8,
Ben Cheng655a7c02013-10-16 16:09:24 -0700264/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
265};
266struct fc_els_rrq {
Tao Baod7db5942015-01-28 10:07:51 -0800267 __u8 rrq_cmd;
268 __u8 rrq_zero[3];
Ben Cheng655a7c02013-10-16 16:09:24 -0700269/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800270 __u8 rrq_resvd;
271 __u8 rrq_s_id[3];
272 __be16 rrq_ox_id;
273 __be16 rrq_rx_id;
Ben Cheng655a7c02013-10-16 16:09:24 -0700274/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
275};
276struct fc_els_rec {
Tao Baod7db5942015-01-28 10:07:51 -0800277 __u8 rec_cmd;
278 __u8 rec_zero[3];
Ben Cheng655a7c02013-10-16 16:09:24 -0700279/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800280 __u8 rec_resvd;
281 __u8 rec_s_id[3];
282 __be16 rec_ox_id;
283 __be16 rec_rx_id;
Ben Cheng655a7c02013-10-16 16:09:24 -0700284/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
285};
286struct fc_els_rec_acc {
Tao Baod7db5942015-01-28 10:07:51 -0800287 __u8 reca_cmd;
288 __u8 reca_zero[3];
Ben Cheng655a7c02013-10-16 16:09:24 -0700289/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800290 __be16 reca_ox_id;
291 __be16 reca_rx_id;
292 __u8 reca_resvd1;
293 __u8 reca_ofid[3];
Ben Cheng655a7c02013-10-16 16:09:24 -0700294/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800295 __u8 reca_resvd2;
296 __u8 reca_rfid[3];
297 __be32 reca_fc4value;
298 __be32 reca_e_stat;
Ben Cheng655a7c02013-10-16 16:09:24 -0700299/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
300};
301struct fc_els_prli {
Tao Baod7db5942015-01-28 10:07:51 -0800302 __u8 prli_cmd;
303 __u8 prli_spp_len;
Ben Cheng655a7c02013-10-16 16:09:24 -0700304/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800305 __be16 prli_len;
Ben Cheng655a7c02013-10-16 16:09:24 -0700306};
307struct fc_els_prlo {
Tao Baod7db5942015-01-28 10:07:51 -0800308 __u8 prlo_cmd;
Ben Cheng655a7c02013-10-16 16:09:24 -0700309/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800310 __u8 prlo_obs;
311 __be16 prlo_len;
Ben Cheng655a7c02013-10-16 16:09:24 -0700312};
313struct fc_els_adisc {
314/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800315 __u8 adisc_cmd;
316 __u8 adisc_resv[3];
317 __u8 adisc_resv1;
318 __u8 adisc_hard_addr[3];
Ben Cheng655a7c02013-10-16 16:09:24 -0700319/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800320 __be64 adisc_wwpn;
321 __be64 adisc_wwnn;
322 __u8 adisc_resv2;
323 __u8 adisc_port_id[3];
Ben Cheng655a7c02013-10-16 16:09:24 -0700324/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
325} __attribute__((__packed__));
326struct fc_els_logo {
Tao Baod7db5942015-01-28 10:07:51 -0800327 __u8 fl_cmd;
328 __u8 fl_zero[3];
Ben Cheng655a7c02013-10-16 16:09:24 -0700329/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800330 __u8 fl_resvd;
331 __u8 fl_n_port_id[3];
332 __be64 fl_n_port_wwn;
Ben Cheng655a7c02013-10-16 16:09:24 -0700333};
334/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
335struct fc_els_rtv {
Tao Baod7db5942015-01-28 10:07:51 -0800336 __u8 rtv_cmd;
337 __u8 rtv_zero[3];
Ben Cheng655a7c02013-10-16 16:09:24 -0700338};
339/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
340struct fc_els_rtv_acc {
Tao Baod7db5942015-01-28 10:07:51 -0800341 __u8 rtv_cmd;
342 __u8 rtv_zero[3];
343 __be32 rtv_r_a_tov;
Ben Cheng655a7c02013-10-16 16:09:24 -0700344/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800345 __be32 rtv_e_d_tov;
346 __be32 rtv_toq;
Ben Cheng655a7c02013-10-16 16:09:24 -0700347};
348#define FC_ELS_RTV_EDRES (1 << 26)
349/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
350#define FC_ELS_RTV_RTTOV (1 << 19)
351struct fc_els_scr {
Tao Baod7db5942015-01-28 10:07:51 -0800352 __u8 scr_cmd;
353 __u8 scr_resv[6];
Ben Cheng655a7c02013-10-16 16:09:24 -0700354/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800355 __u8 scr_reg_func;
Ben Cheng655a7c02013-10-16 16:09:24 -0700356};
357enum fc_els_scr_func {
Tao Baod7db5942015-01-28 10:07:51 -0800358 ELS_SCRF_FAB = 1,
Ben Cheng655a7c02013-10-16 16:09:24 -0700359/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800360 ELS_SCRF_NPORT = 2,
361 ELS_SCRF_FULL = 3,
362 ELS_SCRF_CLEAR = 255,
Ben Cheng655a7c02013-10-16 16:09:24 -0700363};
364/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
365struct fc_els_rscn {
Tao Baod7db5942015-01-28 10:07:51 -0800366 __u8 rscn_cmd;
367 __u8 rscn_page_len;
368 __be16 rscn_plen;
Ben Cheng655a7c02013-10-16 16:09:24 -0700369/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
370};
371struct fc_els_rscn_page {
Tao Baod7db5942015-01-28 10:07:51 -0800372 __u8 rscn_page_flags;
373 __u8 rscn_fid[3];
Ben Cheng655a7c02013-10-16 16:09:24 -0700374/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
375};
376#define ELS_RSCN_EV_QUAL_BIT 2
377#define ELS_RSCN_EV_QUAL_MASK 0xf
378#define ELS_RSCN_ADDR_FMT_BIT 0
379/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
380#define ELS_RSCN_ADDR_FMT_MASK 0x3
381enum fc_els_rscn_ev_qual {
Tao Baod7db5942015-01-28 10:07:51 -0800382 ELS_EV_QUAL_NONE = 0,
383 ELS_EV_QUAL_NS_OBJ = 1,
Ben Cheng655a7c02013-10-16 16:09:24 -0700384/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800385 ELS_EV_QUAL_PORT_ATTR = 2,
386 ELS_EV_QUAL_SERV_OBJ = 3,
387 ELS_EV_QUAL_SW_CONFIG = 4,
388 ELS_EV_QUAL_REM_OBJ = 5,
Ben Cheng655a7c02013-10-16 16:09:24 -0700389/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
390};
391enum fc_els_rscn_addr_fmt {
Tao Baod7db5942015-01-28 10:07:51 -0800392 ELS_ADDR_FMT_PORT = 0,
393 ELS_ADDR_FMT_AREA = 1,
Ben Cheng655a7c02013-10-16 16:09:24 -0700394/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800395 ELS_ADDR_FMT_DOM = 2,
396 ELS_ADDR_FMT_FAB = 3,
Ben Cheng655a7c02013-10-16 16:09:24 -0700397};
398struct fc_els_rnid {
399/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800400 __u8 rnid_cmd;
401 __u8 rnid_resv[3];
402 __u8 rnid_fmt;
403 __u8 rnid_resv2[3];
Ben Cheng655a7c02013-10-16 16:09:24 -0700404/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
405};
406enum fc_els_rnid_fmt {
Tao Baod7db5942015-01-28 10:07:51 -0800407 ELS_RNIDF_NONE = 0,
408 ELS_RNIDF_GEN = 0xdf,
Ben Cheng655a7c02013-10-16 16:09:24 -0700409/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
410};
411struct fc_els_rnid_resp {
Tao Baod7db5942015-01-28 10:07:51 -0800412 __u8 rnid_cmd;
413 __u8 rnid_resv[3];
Ben Cheng655a7c02013-10-16 16:09:24 -0700414/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800415 __u8 rnid_fmt;
416 __u8 rnid_cid_len;
417 __u8 rnid_resv2;
418 __u8 rnid_sid_len;
Ben Cheng655a7c02013-10-16 16:09:24 -0700419/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
420};
421struct fc_els_rnid_cid {
Tao Baod7db5942015-01-28 10:07:51 -0800422 __be64 rnid_wwpn;
423 __be64 rnid_wwnn;
Ben Cheng655a7c02013-10-16 16:09:24 -0700424/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
425};
426struct fc_els_rnid_gen {
Tao Baod7db5942015-01-28 10:07:51 -0800427 __u8 rnid_vend_id[16];
428 __be32 rnid_atype;
Ben Cheng655a7c02013-10-16 16:09:24 -0700429/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800430 __be32 rnid_phys_port;
431 __be32 rnid_att_nodes;
432 __u8 rnid_node_mgmt;
433 __u8 rnid_ip_ver;
Ben Cheng655a7c02013-10-16 16:09:24 -0700434/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800435 __be16 rnid_prot_port;
436 __be32 rnid_ip_addr[4];
437 __u8 rnid_resvd[2];
438 __be16 rnid_vend_spec;
Ben Cheng655a7c02013-10-16 16:09:24 -0700439/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
440};
441enum fc_els_rnid_atype {
Tao Baod7db5942015-01-28 10:07:51 -0800442 ELS_RNIDA_UNK = 0x01,
443 ELS_RNIDA_OTHER = 0x02,
Ben Cheng655a7c02013-10-16 16:09:24 -0700444/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800445 ELS_RNIDA_HUB = 0x03,
446 ELS_RNIDA_SWITCH = 0x04,
447 ELS_RNIDA_GATEWAY = 0x05,
448 ELS_RNIDA_CONV = 0x06,
Ben Cheng655a7c02013-10-16 16:09:24 -0700449/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800450 ELS_RNIDA_HBA = 0x07,
451 ELS_RNIDA_PROXY = 0x08,
452 ELS_RNIDA_STORAGE = 0x09,
453 ELS_RNIDA_HOST = 0x0a,
Ben Cheng655a7c02013-10-16 16:09:24 -0700454/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800455 ELS_RNIDA_SUBSYS = 0x0b,
456 ELS_RNIDA_ACCESS = 0x0e,
457 ELS_RNIDA_NAS = 0x11,
458 ELS_RNIDA_BRIDGE = 0x12,
Ben Cheng655a7c02013-10-16 16:09:24 -0700459/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800460 ELS_RNIDA_VIRT = 0x13,
461 ELS_RNIDA_MF = 0xff,
462 ELS_RNIDA_MF_HUB = 1UL << 31,
463 ELS_RNIDA_MF_SW = 1UL << 30,
Ben Cheng655a7c02013-10-16 16:09:24 -0700464/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800465 ELS_RNIDA_MF_GW = 1UL << 29,
466 ELS_RNIDA_MF_ST = 1UL << 28,
467 ELS_RNIDA_MF_HOST = 1UL << 27,
468 ELS_RNIDA_MF_SUB = 1UL << 26,
Ben Cheng655a7c02013-10-16 16:09:24 -0700469/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800470 ELS_RNIDA_MF_ACC = 1UL << 25,
471 ELS_RNIDA_MF_WDM = 1UL << 24,
472 ELS_RNIDA_MF_NAS = 1UL << 23,
473 ELS_RNIDA_MF_BR = 1UL << 22,
Ben Cheng655a7c02013-10-16 16:09:24 -0700474/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800475 ELS_RNIDA_MF_VIRT = 1UL << 21,
Ben Cheng655a7c02013-10-16 16:09:24 -0700476};
477enum fc_els_rnid_mgmt {
Tao Baod7db5942015-01-28 10:07:51 -0800478 ELS_RNIDM_SNMP = 0,
Ben Cheng655a7c02013-10-16 16:09:24 -0700479/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800480 ELS_RNIDM_TELNET = 1,
481 ELS_RNIDM_HTTP = 2,
482 ELS_RNIDM_HTTPS = 3,
483 ELS_RNIDM_XML = 4,
Ben Cheng655a7c02013-10-16 16:09:24 -0700484/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
485};
486enum fc_els_rnid_ipver {
Tao Baod7db5942015-01-28 10:07:51 -0800487 ELS_RNIDIP_NONE = 0,
488 ELS_RNIDIP_V4 = 1,
Ben Cheng655a7c02013-10-16 16:09:24 -0700489/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800490 ELS_RNIDIP_V6 = 2,
Ben Cheng655a7c02013-10-16 16:09:24 -0700491};
492struct fc_els_rpl {
Tao Baod7db5942015-01-28 10:07:51 -0800493 __u8 rpl_cmd;
Ben Cheng655a7c02013-10-16 16:09:24 -0700494/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800495 __u8 rpl_resv[5];
496 __be16 rpl_max_size;
497 __u8 rpl_resv1;
498 __u8 rpl_index[3];
Ben Cheng655a7c02013-10-16 16:09:24 -0700499/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
500};
501struct fc_els_pnb {
Tao Baod7db5942015-01-28 10:07:51 -0800502 __be32 pnb_phys_pn;
503 __u8 pnb_resv;
Ben Cheng655a7c02013-10-16 16:09:24 -0700504/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800505 __u8 pnb_port_id[3];
506 __be64 pnb_wwpn;
Ben Cheng655a7c02013-10-16 16:09:24 -0700507};
508struct fc_els_rpl_resp {
509/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800510 __u8 rpl_cmd;
511 __u8 rpl_resv1;
512 __be16 rpl_plen;
513 __u8 rpl_resv2;
Ben Cheng655a7c02013-10-16 16:09:24 -0700514/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800515 __u8 rpl_llen[3];
516 __u8 rpl_resv3;
517 __u8 rpl_index[3];
518 struct fc_els_pnb rpl_pnb[1];
Ben Cheng655a7c02013-10-16 16:09:24 -0700519/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
520};
521struct fc_els_lesb {
Tao Baod7db5942015-01-28 10:07:51 -0800522 __be32 lesb_link_fail;
523 __be32 lesb_sync_loss;
Ben Cheng655a7c02013-10-16 16:09:24 -0700524/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800525 __be32 lesb_sig_loss;
526 __be32 lesb_prim_err;
527 __be32 lesb_inv_word;
528 __be32 lesb_inv_crc;
Ben Cheng655a7c02013-10-16 16:09:24 -0700529/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
530};
531struct fc_els_rps {
Tao Baod7db5942015-01-28 10:07:51 -0800532 __u8 rps_cmd;
533 __u8 rps_resv[2];
Ben Cheng655a7c02013-10-16 16:09:24 -0700534/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800535 __u8 rps_flag;
536 __be64 rps_port_spec;
Ben Cheng655a7c02013-10-16 16:09:24 -0700537};
538enum fc_els_rps_flag {
539/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800540 FC_ELS_RPS_DID = 0x00,
541 FC_ELS_RPS_PPN = 0x01,
542 FC_ELS_RPS_WWPN = 0x02,
Ben Cheng655a7c02013-10-16 16:09:24 -0700543};
544/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
545struct fc_els_rps_resp {
Tao Baod7db5942015-01-28 10:07:51 -0800546 __u8 rps_cmd;
547 __u8 rps_resv[2];
548 __u8 rps_flag;
Ben Cheng655a7c02013-10-16 16:09:24 -0700549/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800550 __u8 rps_resv2[2];
551 __be16 rps_status;
552 struct fc_els_lesb rps_lesb;
Ben Cheng655a7c02013-10-16 16:09:24 -0700553};
554/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
555enum fc_els_rps_resp_flag {
Tao Baod7db5942015-01-28 10:07:51 -0800556 FC_ELS_RPS_LPEV = 0x01,
Ben Cheng655a7c02013-10-16 16:09:24 -0700557};
558enum fc_els_rps_resp_status {
559/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800560 FC_ELS_RPS_PTP = 1 << 5,
561 FC_ELS_RPS_LOOP = 1 << 4,
562 FC_ELS_RPS_FAB = 1 << 3,
563 FC_ELS_RPS_NO_SIG = 1 << 2,
Ben Cheng655a7c02013-10-16 16:09:24 -0700564/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800565 FC_ELS_RPS_NO_SYNC = 1 << 1,
566 FC_ELS_RPS_RESET = 1 << 0,
Ben Cheng655a7c02013-10-16 16:09:24 -0700567};
568struct fc_els_lirr {
569/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800570 __u8 lirr_cmd;
571 __u8 lirr_resv[3];
572 __u8 lirr_func;
573 __u8 lirr_fmt;
Ben Cheng655a7c02013-10-16 16:09:24 -0700574/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800575 __u8 lirr_resv2[2];
Ben Cheng655a7c02013-10-16 16:09:24 -0700576};
577enum fc_els_lirr_func {
Tao Baod7db5942015-01-28 10:07:51 -0800578 ELS_LIRR_SET_COND = 0x01,
Ben Cheng655a7c02013-10-16 16:09:24 -0700579/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800580 ELS_LIRR_SET_UNCOND = 0x02,
581 ELS_LIRR_CLEAR = 0xff
Ben Cheng655a7c02013-10-16 16:09:24 -0700582};
583struct fc_els_srl {
584/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800585 __u8 srl_cmd;
586 __u8 srl_resv[3];
587 __u8 srl_flag;
588 __u8 srl_flag_param[3];
Ben Cheng655a7c02013-10-16 16:09:24 -0700589/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
590};
591enum fc_els_srl_flag {
Tao Baod7db5942015-01-28 10:07:51 -0800592 FC_ELS_SRL_ALL = 0x00,
593 FC_ELS_SRL_ONE = 0x01,
Ben Cheng655a7c02013-10-16 16:09:24 -0700594/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800595 FC_ELS_SRL_EN_PER = 0x02,
596 FC_ELS_SRL_DIS_PER = 0x03,
Ben Cheng655a7c02013-10-16 16:09:24 -0700597};
598struct fc_els_rls {
599/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800600 __u8 rls_cmd;
601 __u8 rls_resv[4];
602 __u8 rls_port_id[3];
Ben Cheng655a7c02013-10-16 16:09:24 -0700603};
604/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
605struct fc_els_rls_resp {
Tao Baod7db5942015-01-28 10:07:51 -0800606 __u8 rls_cmd;
607 __u8 rls_resv[3];
608 struct fc_els_lesb rls_lesb;
Ben Cheng655a7c02013-10-16 16:09:24 -0700609/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
610};
611struct fc_els_rlir {
Tao Baod7db5942015-01-28 10:07:51 -0800612 __u8 rlir_cmd;
613 __u8 rlir_resv[3];
Ben Cheng655a7c02013-10-16 16:09:24 -0700614/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800615 __u8 rlir_fmt;
616 __u8 rlir_clr_len;
617 __u8 rlir_cld_len;
618 __u8 rlir_slr_len;
Ben Cheng655a7c02013-10-16 16:09:24 -0700619/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
620};
621struct fc_els_clir {
Tao Baod7db5942015-01-28 10:07:51 -0800622 __be64 clir_wwpn;
623 __be64 clir_wwnn;
Ben Cheng655a7c02013-10-16 16:09:24 -0700624/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800625 __u8 clir_port_type;
626 __u8 clir_port_id[3];
627 __be64 clir_conn_wwpn;
628 __be64 clir_conn_wwnn;
Ben Cheng655a7c02013-10-16 16:09:24 -0700629/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800630 __be64 clir_fab_name;
631 __be32 clir_phys_port;
632 __be32 clir_trans_id;
633 __u8 clir_resv[3];
Ben Cheng655a7c02013-10-16 16:09:24 -0700634/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800635 __u8 clir_ts_fmt;
636 __be64 clir_timestamp;
Ben Cheng655a7c02013-10-16 16:09:24 -0700637};
638enum fc_els_clir_ts_fmt {
639/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800640 ELS_CLIR_TS_UNKNOWN = 0,
641 ELS_CLIR_TS_SEC_FRAC = 1,
642 ELS_CLIR_TS_CSU = 2,
Ben Cheng655a7c02013-10-16 16:09:24 -0700643};
644/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
645struct fc_els_clid {
Tao Baod7db5942015-01-28 10:07:51 -0800646 __u8 clid_iq;
647 __u8 clid_ic;
648 __be16 clid_epai;
Ben Cheng655a7c02013-10-16 16:09:24 -0700649/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
650};
651enum fc_els_clid_iq {
Tao Baod7db5942015-01-28 10:07:51 -0800652 ELS_CLID_SWITCH = 0x20,
653 ELS_CLID_E_PORT = 0x10,
Ben Cheng655a7c02013-10-16 16:09:24 -0700654/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800655 ELS_CLID_SEV_MASK = 0x0c,
656 ELS_CLID_SEV_INFO = 0x00,
657 ELS_CLID_SEV_INOP = 0x08,
658 ELS_CLID_SEV_DEG = 0x04,
Ben Cheng655a7c02013-10-16 16:09:24 -0700659/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800660 ELS_CLID_LASER = 0x02,
661 ELS_CLID_FRU = 0x01,
Ben Cheng655a7c02013-10-16 16:09:24 -0700662};
663enum fc_els_clid_ic {
664/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800665 ELS_CLID_IC_IMPL = 1,
666 ELS_CLID_IC_BER = 2,
667 ELS_CLID_IC_LOS = 3,
668 ELS_CLID_IC_NOS = 4,
Ben Cheng655a7c02013-10-16 16:09:24 -0700669/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800670 ELS_CLID_IC_PST = 5,
671 ELS_CLID_IC_INVAL = 6,
672 ELS_CLID_IC_LOOP_TO = 7,
673 ELS_CLID_IC_LIP = 8,
Ben Cheng655a7c02013-10-16 16:09:24 -0700674/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
675};
676#endif