1 /****************************************************************************
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 _RMNET_DATA_H_
20 #define _RMNET_DATA_H_
21 #define RMNET_LOCAL_LOGICAL_ENDPOINT -1
22 #define RMNET_EGRESS_FORMAT__RESERVED__ (1<<0)
23 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
24 #define RMNET_EGRESS_FORMAT_MAP (1<<1)
25 #define RMNET_EGRESS_FORMAT_AGGREGATION (1<<2)
26 #define RMNET_EGRESS_FORMAT_MUXING (1<<3)
27 #define RMNET_INGRESS_FIX_ETHERNET (1<<0)
28 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
29 #define RMNET_INGRESS_FORMAT_MAP (1<<1)
30 #define RMNET_INGRESS_FORMAT_DEAGGREGATION (1<<2)
31 #define RMNET_INGRESS_FORMAT_DEMUXING (1<<3)
32 #define RMNET_INGRESS_FORMAT_MAP_COMMANDS (1<<4)
33 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
34 #define RMNET_NETLINK_PROTO 31
35 #define RMNET_MAX_STR_LEN 16
36 #define RMNET_NL_DATA_MAX_LEN 64
37 #define RMNET_NETLINK_MSG_COMMAND 0
38 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
39 #define RMNET_NETLINK_MSG_RETURNCODE 1
40 #define RMNET_NETLINK_MSG_RETURNDATA 2
41 struct rmnet_nl_msg_s {
42  uint16_t reserved;
43 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
44  uint16_t message_type;
45  uint16_t reserved2:14;
46  uint16_t crd:2;
47  union {
48 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
49  uint16_t arg_length;
50  uint16_t return_code;
51  };
52  union {
53 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
54  uint8_t data[RMNET_NL_DATA_MAX_LEN];
55  struct {
56  uint8_t dev[RMNET_MAX_STR_LEN];
57  uint32_t flags;
58 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
59  uint16_t agg_size;
60  uint16_t agg_count;
61  uint8_t tail_spacing;
62  } data_format;
63 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
64  struct {
65  uint8_t dev[RMNET_MAX_STR_LEN];
66  int32_t ep_id;
67  uint8_t operating_mode;
68 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
69  uint8_t next_dev[RMNET_MAX_STR_LEN];
70  } local_ep_config;
71  struct {
72  uint32_t id;
73 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
74  uint8_t vnd_name[RMNET_MAX_STR_LEN];
75  } vnd;
76  struct {
77  uint32_t id;
78 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
79  uint32_t map_flow_id;
80  uint32_t tc_flow_id;
81  } flow_control;
82  };
83 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
84 };
85 enum rmnet_netlink_message_types_e {
86  RMNET_NETLINK_ASSOCIATE_NETWORK_DEVICE,
87  RMNET_NETLINK_UNASSOCIATE_NETWORK_DEVICE,
88 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
89  RMNET_NETLINK_GET_NETWORK_DEVICE_ASSOCIATED,
90  RMNET_NETLINK_SET_LINK_EGRESS_DATA_FORMAT,
91  RMNET_NETLINK_GET_LINK_EGRESS_DATA_FORMAT,
92  RMNET_NETLINK_SET_LINK_INGRESS_DATA_FORMAT,
93 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
94  RMNET_NETLINK_GET_LINK_INGRESS_DATA_FORMAT,
95  RMNET_NETLINK_SET_LOGICAL_EP_CONFIG,
96  RMNET_NETLINK_UNSET_LOGICAL_EP_CONFIG,
97  RMNET_NETLINK_GET_LOGICAL_EP_CONFIG,
98 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
99  RMNET_NETLINK_NEW_VND,
100  RMNET_NETLINK_NEW_VND_WITH_PREFIX,
101  RMNET_NETLINK_GET_VND_NAME,
102  RMNET_NETLINK_FREE_VND,
103 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
104  RMNET_NETLINK_ADD_VND_TC_FLOW,
105  RMNET_NETLINK_DEL_VND_TC_FLOW
106 };
107 enum rmnet_config_endpoint_modes_e {
108 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
109  RMNET_EPMODE_NONE,
110  RMNET_EPMODE_VND,
111  RMNET_EPMODE_BRIDGE,
112  RMNET_EPMODE_LENGTH
113 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
114 };
115 enum rmnet_config_return_codes_e {
116  RMNET_CONFIG_OK,
117  RMNET_CONFIG_UNKNOWN_MESSAGE,
118 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
119  RMNET_CONFIG_UNKNOWN_ERROR,
120  RMNET_CONFIG_NOMEM,
121  RMNET_CONFIG_DEVICE_IN_USE,
122  RMNET_CONFIG_INVALID_REQUEST,
123 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
124  RMNET_CONFIG_NO_SUCH_DEVICE,
125  RMNET_CONFIG_BAD_ARGUMENTS,
126  RMNET_CONFIG_BAD_EGRESS_DEVICE,
127  RMNET_CONFIG_TC_HANDLE_FULL
128 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
129 };
130 #endif
131 
132