xref: /aosp_15_r20/bionic/libc/kernel/uapi/scsi/fc/fc_gs.h (revision 8d67ca893c1523eb926b9080dbe4e2ffd2a27ba1)
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_GS_H_
8 #define _FC_GS_H_
9 #include <linux/types.h>
10 struct fc_ct_hdr {
11   __u8 ct_rev;
12   __u8 ct_in_id[3];
13   __u8 ct_fs_type;
14   __u8 ct_fs_subtype;
15   __u8 ct_options;
16   __u8 _ct_resvd1;
17   __be16 ct_cmd;
18   __be16 ct_mr_size;
19   __u8 _ct_resvd2;
20   __u8 ct_reason;
21   __u8 ct_explan;
22   __u8 ct_vendor;
23 };
24 #define FC_CT_HDR_LEN 16
25 enum fc_ct_rev {
26   FC_CT_REV = 1
27 };
28 enum fc_ct_fs_type {
29   FC_FST_ALIAS = 0xf8,
30   FC_FST_MGMT = 0xfa,
31   FC_FST_TIME = 0xfb,
32   FC_FST_DIR = 0xfc,
33 };
34 enum fc_ct_cmd {
35   FC_FS_RJT = 0x8001,
36   FC_FS_ACC = 0x8002,
37 };
38 enum fc_ct_reason {
39   FC_FS_RJT_CMD = 0x01,
40   FC_FS_RJT_VER = 0x02,
41   FC_FS_RJT_LOG = 0x03,
42   FC_FS_RJT_IUSIZ = 0x04,
43   FC_FS_RJT_BSY = 0x05,
44   FC_FS_RJT_PROTO = 0x07,
45   FC_FS_RJT_UNABL = 0x09,
46   FC_FS_RJT_UNSUP = 0x0b,
47 };
48 enum fc_ct_explan {
49   FC_FS_EXP_NONE = 0x00,
50   FC_FS_EXP_PID = 0x01,
51   FC_FS_EXP_PNAM = 0x02,
52   FC_FS_EXP_NNAM = 0x03,
53   FC_FS_EXP_COS = 0x04,
54   FC_FS_EXP_FTNR = 0x07,
55 };
56 #endif
57