blob: 58fee9aefef147be05283966bed8e5bdb7a49afb [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
Ben Cheng655a7c02013-10-16 16:09:24 -070023enum fc_ns_req {
Tao Baod7db5942015-01-28 10:07:51 -080024 FC_NS_GA_NXT = 0x0100,
25 FC_NS_GI_A = 0x0101,
26 FC_NS_GPN_ID = 0x0112,
Tao Baod7db5942015-01-28 10:07:51 -080027 FC_NS_GNN_ID = 0x0113,
28 FC_NS_GSPN_ID = 0x0118,
29 FC_NS_GID_PN = 0x0121,
30 FC_NS_GID_NN = 0x0131,
Tao Baod7db5942015-01-28 10:07:51 -080031 FC_NS_GID_FT = 0x0171,
32 FC_NS_GPN_FT = 0x0172,
33 FC_NS_GID_PT = 0x01a1,
34 FC_NS_RPN_ID = 0x0212,
Tao Baod7db5942015-01-28 10:07:51 -080035 FC_NS_RNN_ID = 0x0213,
36 FC_NS_RFT_ID = 0x0217,
37 FC_NS_RSPN_ID = 0x0218,
38 FC_NS_RFF_ID = 0x021f,
Tao Baod7db5942015-01-28 10:07:51 -080039 FC_NS_RSNN_NN = 0x0239,
Ben Cheng655a7c02013-10-16 16:09:24 -070040};
41enum fc_ns_pt {
Tao Baod7db5942015-01-28 10:07:51 -080042 FC_NS_UNID_PORT = 0x00,
Tao Baod7db5942015-01-28 10:07:51 -080043 FC_NS_N_PORT = 0x01,
44 FC_NS_NL_PORT = 0x02,
45 FC_NS_FNL_PORT = 0x03,
46 FC_NS_NX_PORT = 0x7f,
Tao Baod7db5942015-01-28 10:07:51 -080047 FC_NS_F_PORT = 0x81,
48 FC_NS_FL_PORT = 0x82,
49 FC_NS_E_PORT = 0x84,
50 FC_NS_B_PORT = 0x85,
Ben Cheng655a7c02013-10-16 16:09:24 -070051};
52struct fc_ns_pt_obj {
Tao Baod7db5942015-01-28 10:07:51 -080053 __u8 pt_type;
Ben Cheng655a7c02013-10-16 16:09:24 -070054};
Ben Cheng655a7c02013-10-16 16:09:24 -070055struct fc_ns_fid {
Tao Baod7db5942015-01-28 10:07:51 -080056 __u8 fp_flags;
57 __u8 fp_fid[3];
Ben Cheng655a7c02013-10-16 16:09:24 -070058};
Ben Cheng655a7c02013-10-16 16:09:24 -070059#define FC_NS_FID_LAST 0x80
60#define FC_NS_TYPES 256
61#define FC_NS_BPW 32
62struct fc_ns_fts {
Tao Baod7db5942015-01-28 10:07:51 -080063 __be32 ff_type_map[FC_NS_TYPES / FC_NS_BPW];
Ben Cheng655a7c02013-10-16 16:09:24 -070064};
65struct fc_ns_ff {
Tao Baod7db5942015-01-28 10:07:51 -080066 __be32 fd_feat[FC_NS_TYPES * 4 / FC_NS_BPW];
Ben Cheng655a7c02013-10-16 16:09:24 -070067};
68struct fc_ns_gid_pt {
Tao Baod7db5942015-01-28 10:07:51 -080069 __u8 fn_pt_type;
70 __u8 fn_domain_id_scope;
Tao Baod7db5942015-01-28 10:07:51 -080071 __u8 fn_area_id_scope;
72 __u8 fn_resvd;
Ben Cheng655a7c02013-10-16 16:09:24 -070073};
74struct fc_ns_gid_ft {
Tao Baod7db5942015-01-28 10:07:51 -080075 __u8 fn_resvd;
76 __u8 fn_domain_id_scope;
77 __u8 fn_area_id_scope;
78 __u8 fn_fc4_type;
Ben Cheng655a7c02013-10-16 16:09:24 -070079};
80struct fc_gpn_ft_resp {
Tao Baod7db5942015-01-28 10:07:51 -080081 __u8 fp_flags;
82 __u8 fp_fid[3];
Tao Baod7db5942015-01-28 10:07:51 -080083 __be32 fp_resvd;
84 __be64 fp_wwpn;
Ben Cheng655a7c02013-10-16 16:09:24 -070085};
86struct fc_ns_gid_pn {
Tao Baod7db5942015-01-28 10:07:51 -080087 __be64 fn_wwpn;
Ben Cheng655a7c02013-10-16 16:09:24 -070088};
89struct fc_gid_pn_resp {
Tao Baod7db5942015-01-28 10:07:51 -080090 __u8 fp_resvd;
Tao Baod7db5942015-01-28 10:07:51 -080091 __u8 fp_fid[3];
Ben Cheng655a7c02013-10-16 16:09:24 -070092};
93struct fc_gspn_resp {
Tao Baod7db5942015-01-28 10:07:51 -080094 __u8 fp_name_len;
Tao Baod7db5942015-01-28 10:07:51 -080095 char fp_name[];
Ben Cheng655a7c02013-10-16 16:09:24 -070096};
97struct fc_ns_rft_id {
Tao Baod7db5942015-01-28 10:07:51 -080098 struct fc_ns_fid fr_fid;
Tao Baod7db5942015-01-28 10:07:51 -080099 struct fc_ns_fts fr_fts;
Ben Cheng655a7c02013-10-16 16:09:24 -0700100};
101struct fc_ns_rn_id {
Tao Baod7db5942015-01-28 10:07:51 -0800102 struct fc_ns_fid fr_fid;
Tao Baod7db5942015-01-28 10:07:51 -0800103 __be64 fr_wwn;
Ben Cheng655a7c02013-10-16 16:09:24 -0700104} __attribute__((__packed__));
105struct fc_ns_rsnn {
Tao Baod7db5942015-01-28 10:07:51 -0800106 __be64 fr_wwn;
Tao Baod7db5942015-01-28 10:07:51 -0800107 __u8 fr_name_len;
108 char fr_name[];
Ben Cheng655a7c02013-10-16 16:09:24 -0700109} __attribute__((__packed__));
110struct fc_ns_rspn {
Tao Baod7db5942015-01-28 10:07:51 -0800111 struct fc_ns_fid fr_fid;
112 __u8 fr_name_len;
113 char fr_name[];
Ben Cheng655a7c02013-10-16 16:09:24 -0700114} __attribute__((__packed__));
Ben Cheng655a7c02013-10-16 16:09:24 -0700115struct fc_ns_rff_id {
Tao Baod7db5942015-01-28 10:07:51 -0800116 struct fc_ns_fid fr_fid;
117 __u8 fr_resvd[2];
118 __u8 fr_feat;
Tao Baod7db5942015-01-28 10:07:51 -0800119 __u8 fr_type;
Ben Cheng655a7c02013-10-16 16:09:24 -0700120} __attribute__((__packed__));
121#endif