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_FS_H_ 20 #define _FC_FS_H_ 21 #include <linux/types.h> 22 struct fc_frame_header { 23 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 24 __u8 fh_r_ctl; 25 __u8 fh_d_id[3]; 26 __u8 fh_cs_ctl; 27 __u8 fh_s_id[3]; 28 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 29 __u8 fh_type; 30 __u8 fh_f_ctl[3]; 31 __u8 fh_seq_id; 32 __u8 fh_df_ctl; 33 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 34 __be16 fh_seq_cnt; 35 __be16 fh_ox_id; 36 __be16 fh_rx_id; 37 __be32 fh_parm_offset; 38 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 39 }; 40 #define FC_FRAME_HEADER_LEN 24 41 #define FC_MAX_PAYLOAD 2112U 42 #define FC_MIN_MAX_PAYLOAD 256U 43 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 44 #define FC_MAX_FRAME (FC_MAX_PAYLOAD + FC_FRAME_HEADER_LEN) 45 #define FC_MIN_MAX_FRAME (FC_MIN_MAX_PAYLOAD + FC_FRAME_HEADER_LEN) 46 enum fc_rctl { 47 FC_RCTL_DD_UNCAT = 0x00, 48 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 49 FC_RCTL_DD_SOL_DATA = 0x01, 50 FC_RCTL_DD_UNSOL_CTL = 0x02, 51 FC_RCTL_DD_SOL_CTL = 0x03, 52 FC_RCTL_DD_UNSOL_DATA = 0x04, 53 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 54 FC_RCTL_DD_DATA_DESC = 0x05, 55 FC_RCTL_DD_UNSOL_CMD = 0x06, 56 FC_RCTL_DD_CMD_STATUS = 0x07, 57 #define FC_RCTL_ILS_REQ FC_RCTL_DD_UNSOL_CTL 58 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 59 #define FC_RCTL_ILS_REP FC_RCTL_DD_SOL_CTL 60 FC_RCTL_ELS_REQ = 0x22, 61 FC_RCTL_ELS_REP = 0x23, 62 FC_RCTL_ELS4_REQ = 0x32, 63 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 64 FC_RCTL_ELS4_REP = 0x33, 65 FC_RCTL_VFTH = 0x50, 66 FC_RCTL_IFRH = 0x51, 67 FC_RCTL_ENCH = 0x52, 68 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 69 FC_RCTL_BA_NOP = 0x80, 70 FC_RCTL_BA_ABTS = 0x81, 71 FC_RCTL_BA_RMC = 0x82, 72 FC_RCTL_BA_ACC = 0x84, 73 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 74 FC_RCTL_BA_RJT = 0x85, 75 FC_RCTL_BA_PRMT = 0x86, 76 FC_RCTL_ACK_1 = 0xc0, 77 FC_RCTL_ACK_0 = 0xc1, 78 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 79 FC_RCTL_P_RJT = 0xc2, 80 FC_RCTL_F_RJT = 0xc3, 81 FC_RCTL_P_BSY = 0xc4, 82 FC_RCTL_F_BSY = 0xc5, 83 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 84 FC_RCTL_F_BSYL = 0xc6, 85 FC_RCTL_LCR = 0xc7, 86 FC_RCTL_END = 0xc9, 87 }; 88 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 89 #define FC_RCTL_NAMES_INIT {[FC_RCTL_DD_UNCAT] = "uncat",[FC_RCTL_DD_SOL_DATA] = "sol data",[FC_RCTL_DD_UNSOL_CTL] = "unsol ctl",[FC_RCTL_DD_SOL_CTL] = "sol ctl/reply",[FC_RCTL_DD_UNSOL_DATA] = "unsol data",[FC_RCTL_DD_DATA_DESC] = "data desc",[FC_RCTL_DD_UNSOL_CMD] = "unsol cmd",[FC_RCTL_DD_CMD_STATUS] = "cmd status",[FC_RCTL_ELS_REQ] = "ELS req",[FC_RCTL_ELS_REP] = "ELS rep",[FC_RCTL_ELS4_REQ] = "FC-4 ELS req",[FC_RCTL_ELS4_REP] = "FC-4 ELS rep",[FC_RCTL_BA_NOP] = "BLS NOP",[FC_RCTL_BA_ABTS] = "BLS abort",[FC_RCTL_BA_RMC] = "BLS remove connection",[FC_RCTL_BA_ACC] = "BLS accept",[FC_RCTL_BA_RJT] = "BLS reject",[FC_RCTL_BA_PRMT] = "BLS dedicated connection preempted",[FC_RCTL_ACK_1] = "LC ACK_1",[FC_RCTL_ACK_0] = "LC ACK_0",[FC_RCTL_P_RJT] = "LC port reject",[FC_RCTL_F_RJT] = "LC fabric reject",[FC_RCTL_P_BSY] = "LC port busy",[FC_RCTL_F_BSY] = "LC fabric busy to data frame",[FC_RCTL_F_BSYL] = "LC fabric busy to link control frame",[FC_RCTL_LCR] = "LC link credit reset",[FC_RCTL_END] = "LC end", \ 90 } 91 enum fc_well_known_fid { 92 FC_FID_NONE = 0x000000, 93 FC_FID_BCAST = 0xffffff, 94 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 95 FC_FID_FLOGI = 0xfffffe, 96 FC_FID_FCTRL = 0xfffffd, 97 FC_FID_DIR_SERV = 0xfffffc, 98 FC_FID_TIME_SERV = 0xfffffb, 99 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 100 FC_FID_MGMT_SERV = 0xfffffa, 101 FC_FID_QOS = 0xfffff9, 102 FC_FID_ALIASES = 0xfffff8, 103 FC_FID_SEC_KEY = 0xfffff7, 104 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 105 FC_FID_CLOCK = 0xfffff6, 106 FC_FID_MCAST_SERV = 0xfffff5, 107 }; 108 #define FC_FID_WELL_KNOWN_MAX 0xffffff 109 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 110 #define FC_FID_WELL_KNOWN_BASE 0xfffff5 111 #define FC_FID_DOM_MGR 0xfffc00 112 #define FC_FID_DOMAIN 0 113 #define FC_FID_PORT 1 114 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 115 #define FC_FID_LINK 2 116 enum fc_fh_type { 117 FC_TYPE_BLS = 0x00, 118 FC_TYPE_ELS = 0x01, 119 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 120 FC_TYPE_IP = 0x05, 121 FC_TYPE_FCP = 0x08, 122 FC_TYPE_CT = 0x20, 123 FC_TYPE_ILS = 0x22, 124 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 125 }; 126 #define FC_TYPE_NAMES_INIT {[FC_TYPE_BLS] = "BLS",[FC_TYPE_ELS] = "ELS",[FC_TYPE_IP] = "IP",[FC_TYPE_FCP] = "FCP",[FC_TYPE_CT] = "CT",[FC_TYPE_ILS] = "ILS", \ 127 } 128 #define FC_XID_UNKNOWN 0xffff 129 #define FC_XID_MIN 0x0 130 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 131 #define FC_XID_MAX 0xfffe 132 #define FC_FC_EX_CTX (1 << 23) 133 #define FC_FC_SEQ_CTX (1 << 22) 134 #define FC_FC_FIRST_SEQ (1 << 21) 135 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 136 #define FC_FC_LAST_SEQ (1 << 20) 137 #define FC_FC_END_SEQ (1 << 19) 138 #define FC_FC_END_CONN (1 << 18) 139 #define FC_FC_RES_B17 (1 << 17) 140 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 141 #define FC_FC_SEQ_INIT (1 << 16) 142 #define FC_FC_X_ID_REASS (1 << 15) 143 #define FC_FC_X_ID_INVAL (1 << 14) 144 #define FC_FC_ACK_1 (1 << 12) 145 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 146 #define FC_FC_ACK_N (2 << 12) 147 #define FC_FC_ACK_0 (3 << 12) 148 #define FC_FC_RES_B11 (1 << 11) 149 #define FC_FC_RES_B10 (1 << 10) 150 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 151 #define FC_FC_RETX_SEQ (1 << 9) 152 #define FC_FC_UNI_TX (1 << 8) 153 #define FC_FC_CONT_SEQ(i) ((i) << 6) 154 #define FC_FC_ABT_SEQ(i) ((i) << 4) 155 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 156 #define FC_FC_REL_OFF (1 << 3) 157 #define FC_FC_RES2 (1 << 2) 158 #define FC_FC_FILL(i) ((i) & 3) 159 struct fc_ba_acc { 160 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 161 __u8 ba_seq_id_val; 162 #define FC_BA_SEQ_ID_VAL 0x80 163 __u8 ba_seq_id; 164 __u8 ba_resvd[2]; 165 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 166 __be16 ba_ox_id; 167 __be16 ba_rx_id; 168 __be16 ba_low_seq_cnt; 169 __be16 ba_high_seq_cnt; 170 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 171 }; 172 struct fc_ba_rjt { 173 __u8 br_resvd; 174 __u8 br_reason; 175 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 176 __u8 br_explan; 177 __u8 br_vendor; 178 }; 179 enum fc_ba_rjt_reason { 180 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 181 FC_BA_RJT_NONE = 0, 182 FC_BA_RJT_INVL_CMD = 0x01, 183 FC_BA_RJT_LOG_ERR = 0x03, 184 FC_BA_RJT_LOG_BUSY = 0x05, 185 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 186 FC_BA_RJT_PROTO_ERR = 0x07, 187 FC_BA_RJT_UNABLE = 0x09, 188 FC_BA_RJT_VENDOR = 0xff, 189 }; 190 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 191 enum fc_ba_rjt_explan { 192 FC_BA_RJT_EXP_NONE = 0x00, 193 FC_BA_RJT_INV_XID = 0x03, 194 FC_BA_RJT_ABT = 0x05, 195 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 196 }; 197 struct fc_pf_rjt { 198 __u8 rj_action; 199 __u8 rj_reason; 200 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 201 __u8 rj_resvd; 202 __u8 rj_vendor; 203 }; 204 enum fc_pf_rjt_reason { 205 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 206 FC_RJT_NONE = 0, 207 FC_RJT_INVL_DID = 0x01, 208 FC_RJT_INVL_SID = 0x02, 209 FC_RJT_P_UNAV_T = 0x03, 210 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 211 FC_RJT_P_UNAV = 0x04, 212 FC_RJT_CLS_UNSUP = 0x05, 213 FC_RJT_DEL_USAGE = 0x06, 214 FC_RJT_TYPE_UNSUP = 0x07, 215 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 216 FC_RJT_LINK_CTL = 0x08, 217 FC_RJT_R_CTL = 0x09, 218 FC_RJT_F_CTL = 0x0a, 219 FC_RJT_OX_ID = 0x0b, 220 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 221 FC_RJT_RX_ID = 0x0c, 222 FC_RJT_SEQ_ID = 0x0d, 223 FC_RJT_DF_CTL = 0x0e, 224 FC_RJT_SEQ_CNT = 0x0f, 225 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 226 FC_RJT_PARAM = 0x10, 227 FC_RJT_EXCH_ERR = 0x11, 228 FC_RJT_PROTO = 0x12, 229 FC_RJT_LEN = 0x13, 230 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 231 FC_RJT_UNEXP_ACK = 0x14, 232 FC_RJT_FAB_CLASS = 0x15, 233 FC_RJT_LOGI_REQ = 0x16, 234 FC_RJT_SEQ_XS = 0x17, 235 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 236 FC_RJT_EXCH_EST = 0x18, 237 FC_RJT_FAB_UNAV = 0x1a, 238 FC_RJT_VC_ID = 0x1b, 239 FC_RJT_CS_CTL = 0x1c, 240 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 241 FC_RJT_INSUF_RES = 0x1d, 242 FC_RJT_INVL_CLS = 0x1f, 243 FC_RJT_PREEMT_RJT = 0x20, 244 FC_RJT_PREEMT_DIS = 0x21, 245 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 246 FC_RJT_MCAST_ERR = 0x22, 247 FC_RJT_MCAST_ET = 0x23, 248 FC_RJT_PRLI_REQ = 0x24, 249 FC_RJT_INVL_ATT = 0x25, 250 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 251 FC_RJT_VENDOR = 0xff, 252 }; 253 #define FC_DEF_E_D_TOV 2000UL 254 #define FC_DEF_R_A_TOV 10000UL 255 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 256 #endif 257