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 enum fc_well_known_fid { 91 FC_FID_NONE = 0x000000, 92 FC_FID_BCAST = 0xffffff, 93 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 94 FC_FID_FLOGI = 0xfffffe, 95 FC_FID_FCTRL = 0xfffffd, 96 FC_FID_DIR_SERV = 0xfffffc, 97 FC_FID_TIME_SERV = 0xfffffb, 98 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 99 FC_FID_MGMT_SERV = 0xfffffa, 100 FC_FID_QOS = 0xfffff9, 101 FC_FID_ALIASES = 0xfffff8, 102 FC_FID_SEC_KEY = 0xfffff7, 103 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 104 FC_FID_CLOCK = 0xfffff6, 105 FC_FID_MCAST_SERV = 0xfffff5, 106 }; 107 #define FC_FID_WELL_KNOWN_MAX 0xffffff 108 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 109 #define FC_FID_WELL_KNOWN_BASE 0xfffff5 110 #define FC_FID_DOM_MGR 0xfffc00 111 #define FC_FID_DOMAIN 0 112 #define FC_FID_PORT 1 113 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 114 #define FC_FID_LINK 2 115 enum fc_fh_type { 116 FC_TYPE_BLS = 0x00, 117 FC_TYPE_ELS = 0x01, 118 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 119 FC_TYPE_IP = 0x05, 120 FC_TYPE_FCP = 0x08, 121 FC_TYPE_CT = 0x20, 122 FC_TYPE_ILS = 0x22, 123 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 124 }; 125 #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", } 126 #define FC_XID_UNKNOWN 0xffff 127 #define FC_XID_MIN 0x0 128 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 129 #define FC_XID_MAX 0xfffe 130 #define FC_FC_EX_CTX (1 << 23) 131 #define FC_FC_SEQ_CTX (1 << 22) 132 #define FC_FC_FIRST_SEQ (1 << 21) 133 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 134 #define FC_FC_LAST_SEQ (1 << 20) 135 #define FC_FC_END_SEQ (1 << 19) 136 #define FC_FC_END_CONN (1 << 18) 137 #define FC_FC_RES_B17 (1 << 17) 138 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 139 #define FC_FC_SEQ_INIT (1 << 16) 140 #define FC_FC_X_ID_REASS (1 << 15) 141 #define FC_FC_X_ID_INVAL (1 << 14) 142 #define FC_FC_ACK_1 (1 << 12) 143 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 144 #define FC_FC_ACK_N (2 << 12) 145 #define FC_FC_ACK_0 (3 << 12) 146 #define FC_FC_RES_B11 (1 << 11) 147 #define FC_FC_RES_B10 (1 << 10) 148 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 149 #define FC_FC_RETX_SEQ (1 << 9) 150 #define FC_FC_UNI_TX (1 << 8) 151 #define FC_FC_CONT_SEQ(i) ((i) << 6) 152 #define FC_FC_ABT_SEQ(i) ((i) << 4) 153 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 154 #define FC_FC_REL_OFF (1 << 3) 155 #define FC_FC_RES2 (1 << 2) 156 #define FC_FC_FILL(i) ((i) & 3) 157 struct fc_ba_acc { 158 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 159 __u8 ba_seq_id_val; 160 #define FC_BA_SEQ_ID_VAL 0x80 161 __u8 ba_seq_id; 162 __u8 ba_resvd[2]; 163 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 164 __be16 ba_ox_id; 165 __be16 ba_rx_id; 166 __be16 ba_low_seq_cnt; 167 __be16 ba_high_seq_cnt; 168 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 169 }; 170 struct fc_ba_rjt { 171 __u8 br_resvd; 172 __u8 br_reason; 173 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 174 __u8 br_explan; 175 __u8 br_vendor; 176 }; 177 enum fc_ba_rjt_reason { 178 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 179 FC_BA_RJT_NONE = 0, 180 FC_BA_RJT_INVL_CMD = 0x01, 181 FC_BA_RJT_LOG_ERR = 0x03, 182 FC_BA_RJT_LOG_BUSY = 0x05, 183 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 184 FC_BA_RJT_PROTO_ERR = 0x07, 185 FC_BA_RJT_UNABLE = 0x09, 186 FC_BA_RJT_VENDOR = 0xff, 187 }; 188 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 189 enum fc_ba_rjt_explan { 190 FC_BA_RJT_EXP_NONE = 0x00, 191 FC_BA_RJT_INV_XID = 0x03, 192 FC_BA_RJT_ABT = 0x05, 193 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 194 }; 195 struct fc_pf_rjt { 196 __u8 rj_action; 197 __u8 rj_reason; 198 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 199 __u8 rj_resvd; 200 __u8 rj_vendor; 201 }; 202 enum fc_pf_rjt_reason { 203 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 204 FC_RJT_NONE = 0, 205 FC_RJT_INVL_DID = 0x01, 206 FC_RJT_INVL_SID = 0x02, 207 FC_RJT_P_UNAV_T = 0x03, 208 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 209 FC_RJT_P_UNAV = 0x04, 210 FC_RJT_CLS_UNSUP = 0x05, 211 FC_RJT_DEL_USAGE = 0x06, 212 FC_RJT_TYPE_UNSUP = 0x07, 213 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 214 FC_RJT_LINK_CTL = 0x08, 215 FC_RJT_R_CTL = 0x09, 216 FC_RJT_F_CTL = 0x0a, 217 FC_RJT_OX_ID = 0x0b, 218 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 219 FC_RJT_RX_ID = 0x0c, 220 FC_RJT_SEQ_ID = 0x0d, 221 FC_RJT_DF_CTL = 0x0e, 222 FC_RJT_SEQ_CNT = 0x0f, 223 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 224 FC_RJT_PARAM = 0x10, 225 FC_RJT_EXCH_ERR = 0x11, 226 FC_RJT_PROTO = 0x12, 227 FC_RJT_LEN = 0x13, 228 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 229 FC_RJT_UNEXP_ACK = 0x14, 230 FC_RJT_FAB_CLASS = 0x15, 231 FC_RJT_LOGI_REQ = 0x16, 232 FC_RJT_SEQ_XS = 0x17, 233 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 234 FC_RJT_EXCH_EST = 0x18, 235 FC_RJT_FAB_UNAV = 0x1a, 236 FC_RJT_VC_ID = 0x1b, 237 FC_RJT_CS_CTL = 0x1c, 238 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 239 FC_RJT_INSUF_RES = 0x1d, 240 FC_RJT_INVL_CLS = 0x1f, 241 FC_RJT_PREEMT_RJT = 0x20, 242 FC_RJT_PREEMT_DIS = 0x21, 243 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 244 FC_RJT_MCAST_ERR = 0x22, 245 FC_RJT_MCAST_ET = 0x23, 246 FC_RJT_PRLI_REQ = 0x24, 247 FC_RJT_INVL_ATT = 0x25, 248 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 249 FC_RJT_VENDOR = 0xff, 250 }; 251 #define FC_DEF_E_D_TOV 2000UL 252 #define FC_DEF_R_A_TOV 10000UL 253 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 254 #endif 255