diff options
Diffstat (limited to 'include/linux/can/dev.h')
-rw-r--r-- | include/linux/can/dev.h | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/include/linux/can/dev.h b/include/linux/can/dev.h index fb0ab651a041..3ce5e526525f 100644 --- a/include/linux/can/dev.h +++ b/include/linux/can/dev.h | |||
@@ -33,8 +33,9 @@ enum can_mode { | |||
33 | struct can_priv { | 33 | struct can_priv { |
34 | struct can_device_stats can_stats; | 34 | struct can_device_stats can_stats; |
35 | 35 | ||
36 | struct can_bittiming bittiming; | 36 | struct can_bittiming bittiming, data_bittiming; |
37 | const struct can_bittiming_const *bittiming_const; | 37 | const struct can_bittiming_const *bittiming_const, |
38 | *data_bittiming_const; | ||
38 | struct can_clock clock; | 39 | struct can_clock clock; |
39 | 40 | ||
40 | enum can_state state; | 41 | enum can_state state; |
@@ -45,6 +46,7 @@ struct can_priv { | |||
45 | struct timer_list restart_timer; | 46 | struct timer_list restart_timer; |
46 | 47 | ||
47 | int (*do_set_bittiming)(struct net_device *dev); | 48 | int (*do_set_bittiming)(struct net_device *dev); |
49 | int (*do_set_data_bittiming)(struct net_device *dev); | ||
48 | int (*do_set_mode)(struct net_device *dev, enum can_mode mode); | 50 | int (*do_set_mode)(struct net_device *dev, enum can_mode mode); |
49 | int (*do_get_state)(const struct net_device *dev, | 51 | int (*do_get_state)(const struct net_device *dev, |
50 | enum can_state *state); | 52 | enum can_state *state); |
@@ -111,6 +113,7 @@ struct can_priv *safe_candev_priv(struct net_device *dev); | |||
111 | 113 | ||
112 | int open_candev(struct net_device *dev); | 114 | int open_candev(struct net_device *dev); |
113 | void close_candev(struct net_device *dev); | 115 | void close_candev(struct net_device *dev); |
116 | int can_change_mtu(struct net_device *dev, int new_mtu); | ||
114 | 117 | ||
115 | int register_candev(struct net_device *dev); | 118 | int register_candev(struct net_device *dev); |
116 | void unregister_candev(struct net_device *dev); | 119 | void unregister_candev(struct net_device *dev); |
@@ -124,6 +127,8 @@ unsigned int can_get_echo_skb(struct net_device *dev, unsigned int idx); | |||
124 | void can_free_echo_skb(struct net_device *dev, unsigned int idx); | 127 | void can_free_echo_skb(struct net_device *dev, unsigned int idx); |
125 | 128 | ||
126 | struct sk_buff *alloc_can_skb(struct net_device *dev, struct can_frame **cf); | 129 | struct sk_buff *alloc_can_skb(struct net_device *dev, struct can_frame **cf); |
130 | struct sk_buff *alloc_canfd_skb(struct net_device *dev, | ||
131 | struct canfd_frame **cfd); | ||
127 | struct sk_buff *alloc_can_err_skb(struct net_device *dev, | 132 | struct sk_buff *alloc_can_err_skb(struct net_device *dev, |
128 | struct can_frame **cf); | 133 | struct can_frame **cf); |
129 | 134 | ||