1 /* 2 * This header was generated from the Linux kernel headers by update_headers.py, 3 * to provide necessary information from kernel to userspace, such as constants, 4 * structures, and macros, and thus, contains no copyrightable information. 5 */ 6 #ifndef _FC_GS_H_ 7 #define _FC_GS_H_ 8 #include <linux/types.h> 9 struct fc_ct_hdr { 10 __u8 ct_rev; 11 __u8 ct_in_id[3]; 12 __u8 ct_fs_type; 13 __u8 ct_fs_subtype; 14 __u8 ct_options; 15 __u8 _ct_resvd1; 16 __be16 ct_cmd; 17 __be16 ct_mr_size; 18 __u8 _ct_resvd2; 19 __u8 ct_reason; 20 __u8 ct_explan; 21 __u8 ct_vendor; 22 }; 23 #define FC_CT_HDR_LEN 16 24 enum fc_ct_rev { 25 FC_CT_REV = 1 26 }; 27 enum fc_ct_fs_type { 28 FC_FST_ALIAS = 0xf8, 29 FC_FST_MGMT = 0xfa, 30 FC_FST_TIME = 0xfb, 31 FC_FST_DIR = 0xfc, 32 }; 33 enum fc_ct_cmd { 34 FC_FS_RJT = 0x8001, 35 FC_FS_ACC = 0x8002, 36 }; 37 enum fc_ct_reason { 38 FC_FS_RJT_CMD = 0x01, 39 FC_FS_RJT_VER = 0x02, 40 FC_FS_RJT_LOG = 0x03, 41 FC_FS_RJT_IUSIZ = 0x04, 42 FC_FS_RJT_BSY = 0x05, 43 FC_FS_RJT_PROTO = 0x07, 44 FC_FS_RJT_UNABL = 0x09, 45 FC_FS_RJT_UNSUP = 0x0b, 46 }; 47 enum fc_ct_explan { 48 FC_FS_EXP_NONE = 0x00, 49 FC_FS_EXP_PID = 0x01, 50 FC_FS_EXP_PNAM = 0x02, 51 FC_FS_EXP_NNAM = 0x03, 52 FC_FS_EXP_COS = 0x04, 53 FC_FS_EXP_FTNR = 0x07, 54 55 }; 56 #endif 57