Home | History | Annotate | Download | only in fc
      1 /****************************************************************************
      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>
     22 enum fc_els_cmd {
     23 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
     24   ELS_LS_RJT = 0x01,
     25   ELS_LS_ACC = 0x02,
     26   ELS_PLOGI = 0x03,
     27   ELS_FLOGI = 0x04,
     28 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
     29   ELS_LOGO = 0x05,
     30   ELS_ABTX = 0x06,
     31   ELS_RCS = 0x07,
     32   ELS_RES = 0x08,
     33 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
     34   ELS_RSS = 0x09,
     35   ELS_RSI = 0x0a,
     36   ELS_ESTS = 0x0b,
     37   ELS_ESTC = 0x0c,
     38 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
     39   ELS_ADVC = 0x0d,
     40   ELS_RTV = 0x0e,
     41   ELS_RLS = 0x0f,
     42   ELS_ECHO = 0x10,
     43 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
     44   ELS_TEST = 0x11,
     45   ELS_RRQ = 0x12,
     46   ELS_REC = 0x13,
     47   ELS_SRR = 0x14,
     48 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
     49   ELS_PRLI = 0x20,
     50   ELS_PRLO = 0x21,
     51   ELS_SCN = 0x22,
     52   ELS_TPLS = 0x23,
     53 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
     54   ELS_TPRLO = 0x24,
     55   ELS_LCLM = 0x25,
     56   ELS_GAID = 0x30,
     57   ELS_FACT = 0x31,
     58 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
     59   ELS_FDACDT = 0x32,
     60   ELS_NACT = 0x33,
     61   ELS_NDACT = 0x34,
     62   ELS_QOSR = 0x40,
     63 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
     64   ELS_RVCS = 0x41,
     65   ELS_PDISC = 0x50,
     66   ELS_FDISC = 0x51,
     67   ELS_ADISC = 0x52,
     68 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
     69   ELS_RNC = 0x53,
     70   ELS_FARP_REQ = 0x54,
     71   ELS_FARP_REPL = 0x55,
     72   ELS_RPS = 0x56,
     73 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
     74   ELS_RPL = 0x57,
     75   ELS_RPBC = 0x58,
     76   ELS_FAN = 0x60,
     77   ELS_RSCN = 0x61,
     78 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
     79   ELS_SCR = 0x62,
     80   ELS_RNFT = 0x63,
     81   ELS_CSR = 0x68,
     82   ELS_CSU = 0x69,
     83 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
     84   ELS_LINIT = 0x70,
     85   ELS_LSTS = 0x72,
     86   ELS_RNID = 0x78,
     87   ELS_RLIR = 0x79,
     88 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
     89   ELS_LIRR = 0x7a,
     90   ELS_SRL = 0x7b,
     91   ELS_SBRP = 0x7c,
     92   ELS_RPSC = 0x7d,
     93 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
     94   ELS_QSA = 0x7e,
     95   ELS_EVFP = 0x7f,
     96   ELS_LKA = 0x80,
     97   ELS_AUTH_ELS = 0x90,
     98 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
     99 };
    100 #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 }
    102 struct fc_els_ls_acc {
    103   __u8 la_cmd;
    104 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
    105   __u8 la_resv[3];
    106 };
    107 struct fc_els_ls_rjt {
    108   __u8 er_cmd;
    109 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
    110   __u8 er_resv[4];
    111   __u8 er_reason;
    112   __u8 er_explan;
    113   __u8 er_vendor;
    114 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
    115 };
    116 enum fc_els_rjt_reason {
    117   ELS_RJT_NONE = 0,
    118   ELS_RJT_INVAL = 0x01,
    119 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
    120   ELS_RJT_LOGIC = 0x03,
    121   ELS_RJT_BUSY = 0x05,
    122   ELS_RJT_PROT = 0x07,
    123   ELS_RJT_UNAB = 0x09,
    124 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
    125   ELS_RJT_UNSUP = 0x0b,
    126   ELS_RJT_INPROG = 0x0e,
    127   ELS_RJT_FIP = 0x20,
    128   ELS_RJT_VENDOR = 0xff,
    129 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
    130 };
    131 enum fc_els_rjt_explan {
    132   ELS_EXPL_NONE = 0x00,
    133   ELS_EXPL_SPP_OPT_ERR = 0x01,
    134 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
    135   ELS_EXPL_SPP_ICTL_ERR = 0x03,
    136   ELS_EXPL_AH = 0x11,
    137   ELS_EXPL_AH_REQ = 0x13,
    138   ELS_EXPL_SID = 0x15,
    139 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
    140   ELS_EXPL_OXID_RXID = 0x17,
    141   ELS_EXPL_INPROG = 0x19,
    142   ELS_EXPL_PLOGI_REQD = 0x1e,
    143   ELS_EXPL_INSUF_RES = 0x29,
    144 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
    145   ELS_EXPL_UNAB_DATA = 0x2a,
    146   ELS_EXPL_UNSUPR = 0x2c,
    147   ELS_EXPL_INV_LEN = 0x2d,
    148   ELS_EXPL_NOT_NEIGHBOR = 0x62,
    149 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
    150 };
    151 struct fc_els_csp {
    152   __u8 sp_hi_ver;
    153   __u8 sp_lo_ver;
    154 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
    155   __be16 sp_bb_cred;
    156   __be16 sp_features;
    157   __be16 sp_bb_data;
    158   union {
    159 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
    160     struct {
    161       __be16 _sp_tot_seq;
    162       __be16 _sp_rel_off;
    163     } sp_plogi;
    164 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
    165     struct {
    166       __be32 _sp_r_a_tov;
    167     } sp_flogi_acc;
    168   } sp_u;
    169 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
    170   __be32 sp_e_d_tov;
    171 };
    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
    203 struct fc_els_cssp {
    204 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
    205   __be16 cp_class;
    206   __be16 cp_init;
    207   __be16 cp_recip;
    208   __be16 cp_rdfs;
    209 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
    210   __be16 cp_con_seq;
    211   __be16 cp_ee_cred;
    212   __u8 cp_resv1;
    213   __u8 cp_open_seq;
    214 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
    215   __u8 _cp_resv2[2];
    216 };
    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
    226 struct fc_els_flogi {
    227   __u8 fl_cmd;
    228   __u8 _fl_resvd[3];
    229 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
    230   struct fc_els_csp fl_csp;
    231   __be64 fl_wwpn;
    232   __be64 fl_wwnn;
    233   struct fc_els_cssp fl_cssp[4];
    234 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
    235   __u8 fl_vend[16];
    236 } __attribute__((__packed__));
    237 struct fc_els_spp {
    238   __u8 spp_type;
    239 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
    240   __u8 spp_type_ext;
    241   __u8 spp_flags;
    242   __u8 _spp_resvd;
    243   __be32 spp_orig_pa;
    244 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
    245   __be32 spp_resp_pa;
    246   __be32 spp_params;
    247 };
    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
    253 enum fc_els_spp_resp {
    254 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
    255   FC_SPP_RESP_ACK = 1,
    256   FC_SPP_RESP_RES = 2,
    257   FC_SPP_RESP_INIT = 3,
    258   FC_SPP_RESP_NO_PA = 4,
    259 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
    260   FC_SPP_RESP_CONF = 5,
    261   FC_SPP_RESP_COND = 6,
    262   FC_SPP_RESP_MULT = 7,
    263   FC_SPP_RESP_INVL = 8,
    264 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
    265 };
    266 struct fc_els_rrq {
    267   __u8 rrq_cmd;
    268   __u8 rrq_zero[3];
    269 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
    270   __u8 rrq_resvd;
    271   __u8 rrq_s_id[3];
    272   __be16 rrq_ox_id;
    273   __be16 rrq_rx_id;
    274 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
    275 };
    276 struct fc_els_rec {
    277   __u8 rec_cmd;
    278   __u8 rec_zero[3];
    279 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
    280   __u8 rec_resvd;
    281   __u8 rec_s_id[3];
    282   __be16 rec_ox_id;
    283   __be16 rec_rx_id;
    284 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
    285 };
    286 struct fc_els_rec_acc {
    287   __u8 reca_cmd;
    288   __u8 reca_zero[3];
    289 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
    290   __be16 reca_ox_id;
    291   __be16 reca_rx_id;
    292   __u8 reca_resvd1;
    293   __u8 reca_ofid[3];
    294 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
    295   __u8 reca_resvd2;
    296   __u8 reca_rfid[3];
    297   __be32 reca_fc4value;
    298   __be32 reca_e_stat;
    299 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
    300 };
    301 struct fc_els_prli {
    302   __u8 prli_cmd;
    303   __u8 prli_spp_len;
    304 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
    305   __be16 prli_len;
    306 };
    307 struct fc_els_prlo {
    308   __u8 prlo_cmd;
    309 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
    310   __u8 prlo_obs;
    311   __be16 prlo_len;
    312 };
    313 struct fc_els_adisc {
    314 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
    315   __u8 adisc_cmd;
    316   __u8 adisc_resv[3];
    317   __u8 adisc_resv1;
    318   __u8 adisc_hard_addr[3];
    319 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
    320   __be64 adisc_wwpn;
    321   __be64 adisc_wwnn;
    322   __u8 adisc_resv2;
    323   __u8 adisc_port_id[3];
    324 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
    325 } __attribute__((__packed__));
    326 struct fc_els_logo {
    327   __u8 fl_cmd;
    328   __u8 fl_zero[3];
    329 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
    330   __u8 fl_resvd;
    331   __u8 fl_n_port_id[3];
    332   __be64 fl_n_port_wwn;
    333 };
    334 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
    335 struct fc_els_rtv {
    336   __u8 rtv_cmd;
    337   __u8 rtv_zero[3];
    338 };
    339 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
    340 struct fc_els_rtv_acc {
    341   __u8 rtv_cmd;
    342   __u8 rtv_zero[3];
    343   __be32 rtv_r_a_tov;
    344 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
    345   __be32 rtv_e_d_tov;
    346   __be32 rtv_toq;
    347 };
    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)
    351 struct fc_els_scr {
    352   __u8 scr_cmd;
    353   __u8 scr_resv[6];
    354 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
    355   __u8 scr_reg_func;
    356 };
    357 enum fc_els_scr_func {
    358   ELS_SCRF_FAB = 1,
    359 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
    360   ELS_SCRF_NPORT = 2,
    361   ELS_SCRF_FULL = 3,
    362   ELS_SCRF_CLEAR = 255,
    363 };
    364 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
    365 struct fc_els_rscn {
    366   __u8 rscn_cmd;
    367   __u8 rscn_page_len;
    368   __be16 rscn_plen;
    369 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
    370 };
    371 struct fc_els_rscn_page {
    372   __u8 rscn_page_flags;
    373   __u8 rscn_fid[3];
    374 /* 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
    381 enum fc_els_rscn_ev_qual {
    382   ELS_EV_QUAL_NONE = 0,
    383   ELS_EV_QUAL_NS_OBJ = 1,
    384 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
    385   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,
    389 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
    390 };
    391 enum fc_els_rscn_addr_fmt {
    392   ELS_ADDR_FMT_PORT = 0,
    393   ELS_ADDR_FMT_AREA = 1,
    394 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
    395   ELS_ADDR_FMT_DOM = 2,
    396   ELS_ADDR_FMT_FAB = 3,
    397 };
    398 struct fc_els_rnid {
    399 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
    400   __u8 rnid_cmd;
    401   __u8 rnid_resv[3];
    402   __u8 rnid_fmt;
    403   __u8 rnid_resv2[3];
    404 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
    405 };
    406 enum fc_els_rnid_fmt {
    407   ELS_RNIDF_NONE = 0,
    408   ELS_RNIDF_GEN = 0xdf,
    409 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
    410 };
    411 struct fc_els_rnid_resp {
    412   __u8 rnid_cmd;
    413   __u8 rnid_resv[3];
    414 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
    415   __u8 rnid_fmt;
    416   __u8 rnid_cid_len;
    417   __u8 rnid_resv2;
    418   __u8 rnid_sid_len;
    419 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
    420 };
    421 struct fc_els_rnid_cid {
    422   __be64 rnid_wwpn;
    423   __be64 rnid_wwnn;
    424 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
    425 };
    426 struct fc_els_rnid_gen {
    427   __u8 rnid_vend_id[16];
    428   __be32 rnid_atype;
    429 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
    430   __be32 rnid_phys_port;
    431   __be32 rnid_att_nodes;
    432   __u8 rnid_node_mgmt;
    433   __u8 rnid_ip_ver;
    434 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
    435   __be16 rnid_prot_port;
    436   __be32 rnid_ip_addr[4];
    437   __u8 rnid_resvd[2];
    438   __be16 rnid_vend_spec;
    439 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
    440 };
    441 enum fc_els_rnid_atype {
    442   ELS_RNIDA_UNK = 0x01,
    443   ELS_RNIDA_OTHER = 0x02,
    444 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
    445   ELS_RNIDA_HUB = 0x03,
    446   ELS_RNIDA_SWITCH = 0x04,
    447   ELS_RNIDA_GATEWAY = 0x05,
    448   ELS_RNIDA_CONV = 0x06,
    449 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
    450   ELS_RNIDA_HBA = 0x07,
    451   ELS_RNIDA_PROXY = 0x08,
    452   ELS_RNIDA_STORAGE = 0x09,
    453   ELS_RNIDA_HOST = 0x0a,
    454 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
    455   ELS_RNIDA_SUBSYS = 0x0b,
    456   ELS_RNIDA_ACCESS = 0x0e,
    457   ELS_RNIDA_NAS = 0x11,
    458   ELS_RNIDA_BRIDGE = 0x12,
    459 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
    460   ELS_RNIDA_VIRT = 0x13,
    461   ELS_RNIDA_MF = 0xff,
    462   ELS_RNIDA_MF_HUB = 1UL << 31,
    463   ELS_RNIDA_MF_SW = 1UL << 30,
    464 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
    465   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,
    469 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
    470   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,
    474 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
    475   ELS_RNIDA_MF_VIRT = 1UL << 21,
    476 };
    477 enum fc_els_rnid_mgmt {
    478   ELS_RNIDM_SNMP = 0,
    479 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
    480   ELS_RNIDM_TELNET = 1,
    481   ELS_RNIDM_HTTP = 2,
    482   ELS_RNIDM_HTTPS = 3,
    483   ELS_RNIDM_XML = 4,
    484 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
    485 };
    486 enum fc_els_rnid_ipver {
    487   ELS_RNIDIP_NONE = 0,
    488   ELS_RNIDIP_V4 = 1,
    489 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
    490   ELS_RNIDIP_V6 = 2,
    491 };
    492 struct fc_els_rpl {
    493   __u8 rpl_cmd;
    494 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
    495   __u8 rpl_resv[5];
    496   __be16 rpl_max_size;
    497   __u8 rpl_resv1;
    498   __u8 rpl_index[3];
    499 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
    500 };
    501 struct fc_els_pnb {
    502   __be32 pnb_phys_pn;
    503   __u8 pnb_resv;
    504 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
    505   __u8 pnb_port_id[3];
    506   __be64 pnb_wwpn;
    507 };
    508 struct fc_els_rpl_resp {
    509 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
    510   __u8 rpl_cmd;
    511   __u8 rpl_resv1;
    512   __be16 rpl_plen;
    513   __u8 rpl_resv2;
    514 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
    515   __u8 rpl_llen[3];
    516   __u8 rpl_resv3;
    517   __u8 rpl_index[3];
    518   struct fc_els_pnb rpl_pnb[1];
    519 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
    520 };
    521 struct fc_els_lesb {
    522   __be32 lesb_link_fail;
    523   __be32 lesb_sync_loss;
    524 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
    525   __be32 lesb_sig_loss;
    526   __be32 lesb_prim_err;
    527   __be32 lesb_inv_word;
    528   __be32 lesb_inv_crc;
    529 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
    530 };
    531 struct fc_els_rps {
    532   __u8 rps_cmd;
    533   __u8 rps_resv[2];
    534 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
    535   __u8 rps_flag;
    536   __be64 rps_port_spec;
    537 };
    538 enum fc_els_rps_flag {
    539 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
    540   FC_ELS_RPS_DID = 0x00,
    541   FC_ELS_RPS_PPN = 0x01,
    542   FC_ELS_RPS_WWPN = 0x02,
    543 };
    544 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
    545 struct fc_els_rps_resp {
    546   __u8 rps_cmd;
    547   __u8 rps_resv[2];
    548   __u8 rps_flag;
    549 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
    550   __u8 rps_resv2[2];
    551   __be16 rps_status;
    552   struct fc_els_lesb rps_lesb;
    553 };
    554 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
    555 enum fc_els_rps_resp_flag {
    556   FC_ELS_RPS_LPEV = 0x01,
    557 };
    558 enum fc_els_rps_resp_status {
    559 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
    560   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,
    564 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
    565   FC_ELS_RPS_NO_SYNC = 1 << 1,
    566   FC_ELS_RPS_RESET = 1 << 0,
    567 };
    568 struct fc_els_lirr {
    569 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
    570   __u8 lirr_cmd;
    571   __u8 lirr_resv[3];
    572   __u8 lirr_func;
    573   __u8 lirr_fmt;
    574 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
    575   __u8 lirr_resv2[2];
    576 };
    577 enum fc_els_lirr_func {
    578   ELS_LIRR_SET_COND = 0x01,
    579 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
    580   ELS_LIRR_SET_UNCOND = 0x02,
    581   ELS_LIRR_CLEAR = 0xff
    582 };
    583 struct fc_els_srl {
    584 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
    585   __u8 srl_cmd;
    586   __u8 srl_resv[3];
    587   __u8 srl_flag;
    588   __u8 srl_flag_param[3];
    589 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
    590 };
    591 enum fc_els_srl_flag {
    592   FC_ELS_SRL_ALL = 0x00,
    593   FC_ELS_SRL_ONE = 0x01,
    594 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
    595   FC_ELS_SRL_EN_PER = 0x02,
    596   FC_ELS_SRL_DIS_PER = 0x03,
    597 };
    598 struct fc_els_rls {
    599 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
    600   __u8 rls_cmd;
    601   __u8 rls_resv[4];
    602   __u8 rls_port_id[3];
    603 };
    604 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
    605 struct fc_els_rls_resp {
    606   __u8 rls_cmd;
    607   __u8 rls_resv[3];
    608   struct fc_els_lesb rls_lesb;
    609 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
    610 };
    611 struct fc_els_rlir {
    612   __u8 rlir_cmd;
    613   __u8 rlir_resv[3];
    614 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
    615   __u8 rlir_fmt;
    616   __u8 rlir_clr_len;
    617   __u8 rlir_cld_len;
    618   __u8 rlir_slr_len;
    619 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
    620 };
    621 struct fc_els_clir {
    622   __be64 clir_wwpn;
    623   __be64 clir_wwnn;
    624 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
    625   __u8 clir_port_type;
    626   __u8 clir_port_id[3];
    627   __be64 clir_conn_wwpn;
    628   __be64 clir_conn_wwnn;
    629 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
    630   __be64 clir_fab_name;
    631   __be32 clir_phys_port;
    632   __be32 clir_trans_id;
    633   __u8 clir_resv[3];
    634 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
    635   __u8 clir_ts_fmt;
    636   __be64 clir_timestamp;
    637 };
    638 enum fc_els_clir_ts_fmt {
    639 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
    640   ELS_CLIR_TS_UNKNOWN = 0,
    641   ELS_CLIR_TS_SEC_FRAC = 1,
    642   ELS_CLIR_TS_CSU = 2,
    643 };
    644 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
    645 struct fc_els_clid {
    646   __u8 clid_iq;
    647   __u8 clid_ic;
    648   __be16 clid_epai;
    649 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
    650 };
    651 enum fc_els_clid_iq {
    652   ELS_CLID_SWITCH = 0x20,
    653   ELS_CLID_E_PORT = 0x10,
    654 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
    655   ELS_CLID_SEV_MASK = 0x0c,
    656   ELS_CLID_SEV_INFO = 0x00,
    657   ELS_CLID_SEV_INOP = 0x08,
    658   ELS_CLID_SEV_DEG = 0x04,
    659 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
    660   ELS_CLID_LASER = 0x02,
    661   ELS_CLID_FRU = 0x01,
    662 };
    663 enum fc_els_clid_ic {
    664 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
    665   ELS_CLID_IC_IMPL = 1,
    666   ELS_CLID_IC_BER = 2,
    667   ELS_CLID_IC_LOS = 3,
    668   ELS_CLID_IC_NOS = 4,
    669 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
    670   ELS_CLID_IC_PST = 5,
    671   ELS_CLID_IC_INVAL = 6,
    672   ELS_CLID_IC_LOOP_TO = 7,
    673   ELS_CLID_IC_LIP = 8,
    674 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
    675 };
    676 #endif
    677