blob: cd028f3ba39e7f4f167f8430c633d7cafc02a254 [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_NS_H_
20#define _FC_NS_H_
21#include <linux/types.h>
22#define FC_NS_SUBTYPE 2
23/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
24enum fc_ns_req {
Tao Baod7db5942015-01-28 10:07:51 -080025 FC_NS_GA_NXT = 0x0100,
26 FC_NS_GI_A = 0x0101,
27 FC_NS_GPN_ID = 0x0112,
Ben Cheng655a7c02013-10-16 16:09:24 -070028/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -080029 FC_NS_GNN_ID = 0x0113,
30 FC_NS_GSPN_ID = 0x0118,
31 FC_NS_GID_PN = 0x0121,
32 FC_NS_GID_NN = 0x0131,
Ben Cheng655a7c02013-10-16 16:09:24 -070033/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -080034 FC_NS_GID_FT = 0x0171,
35 FC_NS_GPN_FT = 0x0172,
36 FC_NS_GID_PT = 0x01a1,
37 FC_NS_RPN_ID = 0x0212,
Ben Cheng655a7c02013-10-16 16:09:24 -070038/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -080039 FC_NS_RNN_ID = 0x0213,
40 FC_NS_RFT_ID = 0x0217,
41 FC_NS_RSPN_ID = 0x0218,
42 FC_NS_RFF_ID = 0x021f,
Ben Cheng655a7c02013-10-16 16:09:24 -070043/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -080044 FC_NS_RSNN_NN = 0x0239,
Ben Cheng655a7c02013-10-16 16:09:24 -070045};
46enum fc_ns_pt {
Tao Baod7db5942015-01-28 10:07:51 -080047 FC_NS_UNID_PORT = 0x00,
Ben Cheng655a7c02013-10-16 16:09:24 -070048/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -080049 FC_NS_N_PORT = 0x01,
50 FC_NS_NL_PORT = 0x02,
51 FC_NS_FNL_PORT = 0x03,
52 FC_NS_NX_PORT = 0x7f,
Ben Cheng655a7c02013-10-16 16:09:24 -070053/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -080054 FC_NS_F_PORT = 0x81,
55 FC_NS_FL_PORT = 0x82,
56 FC_NS_E_PORT = 0x84,
57 FC_NS_B_PORT = 0x85,
Ben Cheng655a7c02013-10-16 16:09:24 -070058/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
59};
60struct fc_ns_pt_obj {
Tao Baod7db5942015-01-28 10:07:51 -080061 __u8 pt_type;
Ben Cheng655a7c02013-10-16 16:09:24 -070062};
63/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
64struct fc_ns_fid {
Tao Baod7db5942015-01-28 10:07:51 -080065 __u8 fp_flags;
66 __u8 fp_fid[3];
Ben Cheng655a7c02013-10-16 16:09:24 -070067};
68/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
69#define FC_NS_FID_LAST 0x80
70#define FC_NS_TYPES 256
71#define FC_NS_BPW 32
72struct fc_ns_fts {
73/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -080074 __be32 ff_type_map[FC_NS_TYPES / FC_NS_BPW];
Ben Cheng655a7c02013-10-16 16:09:24 -070075};
76struct fc_ns_ff {
Tao Baod7db5942015-01-28 10:07:51 -080077 __be32 fd_feat[FC_NS_TYPES * 4 / FC_NS_BPW];
Ben Cheng655a7c02013-10-16 16:09:24 -070078/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
79};
80struct fc_ns_gid_pt {
Tao Baod7db5942015-01-28 10:07:51 -080081 __u8 fn_pt_type;
82 __u8 fn_domain_id_scope;
Ben Cheng655a7c02013-10-16 16:09:24 -070083/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -080084 __u8 fn_area_id_scope;
85 __u8 fn_resvd;
Ben Cheng655a7c02013-10-16 16:09:24 -070086};
87struct fc_ns_gid_ft {
88/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -080089 __u8 fn_resvd;
90 __u8 fn_domain_id_scope;
91 __u8 fn_area_id_scope;
92 __u8 fn_fc4_type;
Ben Cheng655a7c02013-10-16 16:09:24 -070093/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
94};
95struct fc_gpn_ft_resp {
Tao Baod7db5942015-01-28 10:07:51 -080096 __u8 fp_flags;
97 __u8 fp_fid[3];
Ben Cheng655a7c02013-10-16 16:09:24 -070098/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -080099 __be32 fp_resvd;
100 __be64 fp_wwpn;
Ben Cheng655a7c02013-10-16 16:09:24 -0700101};
102struct fc_ns_gid_pn {
103/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800104 __be64 fn_wwpn;
Ben Cheng655a7c02013-10-16 16:09:24 -0700105};
106struct fc_gid_pn_resp {
Tao Baod7db5942015-01-28 10:07:51 -0800107 __u8 fp_resvd;
Ben Cheng655a7c02013-10-16 16:09:24 -0700108/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800109 __u8 fp_fid[3];
Ben Cheng655a7c02013-10-16 16:09:24 -0700110};
111struct fc_gspn_resp {
Tao Baod7db5942015-01-28 10:07:51 -0800112 __u8 fp_name_len;
Ben Cheng655a7c02013-10-16 16:09:24 -0700113/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800114 char fp_name[];
Ben Cheng655a7c02013-10-16 16:09:24 -0700115};
116struct fc_ns_rft_id {
Tao Baod7db5942015-01-28 10:07:51 -0800117 struct fc_ns_fid fr_fid;
Ben Cheng655a7c02013-10-16 16:09:24 -0700118/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800119 struct fc_ns_fts fr_fts;
Ben Cheng655a7c02013-10-16 16:09:24 -0700120};
121struct fc_ns_rn_id {
Tao Baod7db5942015-01-28 10:07:51 -0800122 struct fc_ns_fid fr_fid;
Ben Cheng655a7c02013-10-16 16:09:24 -0700123/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800124 __be64 fr_wwn;
Ben Cheng655a7c02013-10-16 16:09:24 -0700125} __attribute__((__packed__));
126struct fc_ns_rsnn {
Tao Baod7db5942015-01-28 10:07:51 -0800127 __be64 fr_wwn;
Ben Cheng655a7c02013-10-16 16:09:24 -0700128/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800129 __u8 fr_name_len;
130 char fr_name[];
Ben Cheng655a7c02013-10-16 16:09:24 -0700131} __attribute__((__packed__));
132struct fc_ns_rspn {
133/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800134 struct fc_ns_fid fr_fid;
135 __u8 fr_name_len;
136 char fr_name[];
Ben Cheng655a7c02013-10-16 16:09:24 -0700137} __attribute__((__packed__));
138/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
139struct fc_ns_rff_id {
Tao Baod7db5942015-01-28 10:07:51 -0800140 struct fc_ns_fid fr_fid;
141 __u8 fr_resvd[2];
142 __u8 fr_feat;
Ben Cheng655a7c02013-10-16 16:09:24 -0700143/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800144 __u8 fr_type;
Ben Cheng655a7c02013-10-16 16:09:24 -0700145} __attribute__((__packed__));
146#endif