1 /* 2 * This file is auto-generated. Modifications will be lost. 3 * 4 * See https://android.googlesource.com/platform/bionic/+/master/libc/kernel/ 5 * for more information. 6 */ 7 #ifndef _FC_NS_H_ 8 #define _FC_NS_H_ 9 #include <linux/types.h> 10 #define FC_NS_SUBTYPE 2 11 enum fc_ns_req { 12 FC_NS_GA_NXT = 0x0100, 13 FC_NS_GI_A = 0x0101, 14 FC_NS_GPN_ID = 0x0112, 15 FC_NS_GNN_ID = 0x0113, 16 FC_NS_GSPN_ID = 0x0118, 17 FC_NS_GID_PN = 0x0121, 18 FC_NS_GID_NN = 0x0131, 19 FC_NS_GID_FT = 0x0171, 20 FC_NS_GPN_FT = 0x0172, 21 FC_NS_GID_PT = 0x01a1, 22 FC_NS_RPN_ID = 0x0212, 23 FC_NS_RNN_ID = 0x0213, 24 FC_NS_RFT_ID = 0x0217, 25 FC_NS_RSPN_ID = 0x0218, 26 FC_NS_RFF_ID = 0x021f, 27 FC_NS_RSNN_NN = 0x0239, 28 }; 29 enum fc_ns_pt { 30 FC_NS_UNID_PORT = 0x00, 31 FC_NS_N_PORT = 0x01, 32 FC_NS_NL_PORT = 0x02, 33 FC_NS_FNL_PORT = 0x03, 34 FC_NS_NX_PORT = 0x7f, 35 FC_NS_F_PORT = 0x81, 36 FC_NS_FL_PORT = 0x82, 37 FC_NS_E_PORT = 0x84, 38 FC_NS_B_PORT = 0x85, 39 }; 40 struct fc_ns_pt_obj { 41 __u8 pt_type; 42 }; 43 struct fc_ns_fid { 44 __u8 fp_flags; 45 __u8 fp_fid[3]; 46 }; 47 #define FC_NS_FID_LAST 0x80 48 #define FC_NS_TYPES 256 49 #define FC_NS_BPW 32 50 struct fc_ns_fts { 51 __be32 ff_type_map[FC_NS_TYPES / FC_NS_BPW]; 52 }; 53 struct fc_ns_ff { 54 __be32 fd_feat[FC_NS_TYPES * 4 / FC_NS_BPW]; 55 }; 56 struct fc_ns_gid_pt { 57 __u8 fn_pt_type; 58 __u8 fn_domain_id_scope; 59 __u8 fn_area_id_scope; 60 __u8 fn_resvd; 61 }; 62 struct fc_ns_gid_ft { 63 __u8 fn_resvd; 64 __u8 fn_domain_id_scope; 65 __u8 fn_area_id_scope; 66 __u8 fn_fc4_type; 67 }; 68 struct fc_gpn_ft_resp { 69 __u8 fp_flags; 70 __u8 fp_fid[3]; 71 __be32 fp_resvd; 72 __be64 fp_wwpn; 73 }; 74 struct fc_ns_gid_pn { 75 __be64 fn_wwpn; 76 }; 77 struct fc_gid_pn_resp { 78 __u8 fp_resvd; 79 __u8 fp_fid[3]; 80 }; 81 struct fc_gspn_resp { 82 __u8 fp_name_len; 83 char fp_name[]; 84 }; 85 struct fc_ns_rft_id { 86 struct fc_ns_fid fr_fid; 87 struct fc_ns_fts fr_fts; 88 }; 89 struct fc_ns_rn_id { 90 struct fc_ns_fid fr_fid; 91 __be64 fr_wwn; 92 } __attribute__((__packed__)); 93 struct fc_ns_rsnn { 94 __be64 fr_wwn; 95 __u8 fr_name_len; 96 char fr_name[]; 97 } __attribute__((__packed__)); 98 struct fc_ns_rspn { 99 struct fc_ns_fid fr_fid; 100 __u8 fr_name_len; 101 char fr_name[]; 102 } __attribute__((__packed__)); 103 struct fc_ns_rff_id { 104 struct fc_ns_fid fr_fid; 105 __u8 fr_resvd[2]; 106 __u8 fr_feat; 107 __u8 fr_type; 108 } __attribute__((__packed__)); 109 #endif 110