blob: bcbf7a315144b2f30a0364eedc93d9549a3157ac [file] [log] [blame]
Ben Cheng655a7c02013-10-16 16:09:24 -07001/****************************************************************************
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_GS_H_
20#define _FC_GS_H_
21#include <linux/types.h>
22struct fc_ct_hdr {
Tao Baod7db5942015-01-28 10:07:51 -080023 __u8 ct_rev;
24 __u8 ct_in_id[3];
25 __u8 ct_fs_type;
26 __u8 ct_fs_subtype;
Tao Baod7db5942015-01-28 10:07:51 -080027 __u8 ct_options;
28 __u8 _ct_resvd1;
29 __be16 ct_cmd;
30 __be16 ct_mr_size;
Tao Baod7db5942015-01-28 10:07:51 -080031 __u8 _ct_resvd2;
32 __u8 ct_reason;
33 __u8 ct_explan;
34 __u8 ct_vendor;
Ben Cheng655a7c02013-10-16 16:09:24 -070035};
36#define FC_CT_HDR_LEN 16
37enum fc_ct_rev {
Tao Baod7db5942015-01-28 10:07:51 -080038 FC_CT_REV = 1
Ben Cheng655a7c02013-10-16 16:09:24 -070039};
40enum fc_ct_fs_type {
Tao Baod7db5942015-01-28 10:07:51 -080041 FC_FST_ALIAS = 0xf8,
42 FC_FST_MGMT = 0xfa,
Tao Baod7db5942015-01-28 10:07:51 -080043 FC_FST_TIME = 0xfb,
44 FC_FST_DIR = 0xfc,
Ben Cheng655a7c02013-10-16 16:09:24 -070045};
46enum fc_ct_cmd {
Tao Baod7db5942015-01-28 10:07:51 -080047 FC_FS_RJT = 0x8001,
48 FC_FS_ACC = 0x8002,
Ben Cheng655a7c02013-10-16 16:09:24 -070049};
50enum fc_ct_reason {
Tao Baod7db5942015-01-28 10:07:51 -080051 FC_FS_RJT_CMD = 0x01,
52 FC_FS_RJT_VER = 0x02,
53 FC_FS_RJT_LOG = 0x03,
54 FC_FS_RJT_IUSIZ = 0x04,
Tao Baod7db5942015-01-28 10:07:51 -080055 FC_FS_RJT_BSY = 0x05,
56 FC_FS_RJT_PROTO = 0x07,
57 FC_FS_RJT_UNABL = 0x09,
58 FC_FS_RJT_UNSUP = 0x0b,
Ben Cheng655a7c02013-10-16 16:09:24 -070059};
60enum fc_ct_explan {
Tao Baod7db5942015-01-28 10:07:51 -080061 FC_FS_EXP_NONE = 0x00,
62 FC_FS_EXP_PID = 0x01,
Tao Baod7db5942015-01-28 10:07:51 -080063 FC_FS_EXP_PNAM = 0x02,
64 FC_FS_EXP_NNAM = 0x03,
65 FC_FS_EXP_COS = 0x04,
66 FC_FS_EXP_FTNR = 0x07,
Ben Cheng655a7c02013-10-16 16:09:24 -070067};
68#endif