1 /* Copyright (c) 2013-2014, 2016-2017 The Linux Foundation. All rights reserved.
3 * This program is free software; you can redistribute it and/or modify
4 * it under the terms of the GNU General Public License version 2 and
5 * only version 2 as published by the Free Software Foundation.
7 * This program is distributed in the hope that it will be useful,
8 * but WITHOUT ANY WARRANTY; without even the implied warranty of
9 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
10 * GNU General Public License for more details.
12 * RMNET Data configuration engine
16 #include <linux/skbuff.h>
18 #ifndef _RMNET_CONFIG_H_
19 #define _RMNET_CONFIG_H_
21 #define RMNET_MAX_LOGICAL_EP 255
23 /* Information about the next device to deliver the packet to.
24 * Exact usage of this parameter depends on the rmnet_mode.
26 struct rmnet_endpoint {
29 struct net_device *egress_dev;
32 /* One instance of this structure is instantiated for each real_dev associated
36 struct net_device *dev;
37 struct rmnet_endpoint local_ep;
38 struct rmnet_endpoint muxed_ep[RMNET_MAX_LOGICAL_EP];
39 u32 ingress_data_format;
40 u32 egress_data_format;
41 struct net_device *rmnet_devices[RMNET_MAX_LOGICAL_EP];
45 extern struct rtnl_link_ops rmnet_link_ops;
48 struct rmnet_endpoint local_ep;
50 struct net_device *real_dev;
53 struct rmnet_port *rmnet_get_port(struct net_device *real_dev);
55 #endif /* _RMNET_CONFIG_H_ */