summaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/qualcomm/rmnet/rmnet_private.h
blob: 7967198fdd90feed02f51e3e244964131e3e0bd5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
/* Copyright (c) 2013-2014, 2016-2017 The Linux Foundation. All rights reserved.
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License version 2 and
 * only version 2 as published by the Free Software Foundation.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 */

#ifndef _RMNET_PRIVATE_H_
#define _RMNET_PRIVATE_H_

#define RMNET_MAX_PACKET_SIZE      16384
#define RMNET_DFLT_PACKET_SIZE     1500
#define RMNET_NEEDED_HEADROOM      16
#define RMNET_TX_QUEUE_LEN         1000

/* Constants */
#define RMNET_EGRESS_FORMAT__RESERVED__         BIT(0)
#define RMNET_EGRESS_FORMAT_MAP                 BIT(1)
#define RMNET_EGRESS_FORMAT_AGGREGATION         BIT(2)
#define RMNET_EGRESS_FORMAT_MUXING              BIT(3)
#define RMNET_EGRESS_FORMAT_MAP_CKSUMV3         BIT(4)
#define RMNET_EGRESS_FORMAT_MAP_CKSUMV4         BIT(5)

#define RMNET_INGRESS_FIX_ETHERNET              BIT(0)
#define RMNET_INGRESS_FORMAT_MAP                BIT(1)
#define RMNET_INGRESS_FORMAT_DEAGGREGATION      BIT(2)
#define RMNET_INGRESS_FORMAT_DEMUXING           BIT(3)
#define RMNET_INGRESS_FORMAT_MAP_COMMANDS       BIT(4)
#define RMNET_INGRESS_FORMAT_MAP_CKSUMV3        BIT(5)
#define RMNET_INGRESS_FORMAT_MAP_CKSUMV4        BIT(6)

/* Pass the frame up the stack with no modifications to skb->dev */
#define RMNET_EPMODE_NONE (0)
/* Replace skb->dev to a virtual rmnet device and pass up the stack */
#define RMNET_EPMODE_VND (1)
/* Pass the frame directly to another device with dev_queue_xmit() */
#define RMNET_EPMODE_BRIDGE (2)

#endif /* _RMNET_PRIVATE_H_ */