aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux
diff options
context:
space:
mode:
Diffstat (limited to 'include/linux')
-rw-r--r--include/linux/can/rx-offload.h10
1 files changed, 9 insertions, 1 deletions
diff --git a/include/linux/can/rx-offload.h b/include/linux/can/rx-offload.h
index cadfe9869600..cb31683bbe15 100644
--- a/include/linux/can/rx-offload.h
+++ b/include/linux/can/rx-offload.h
@@ -23,15 +23,23 @@
23struct can_rx_offload { 23struct can_rx_offload {
24 struct net_device *dev; 24 struct net_device *dev;
25 25
26 unsigned int (*mailbox_read)(struct can_rx_offload *offload, struct can_frame *cf, unsigned int mb); 26 unsigned int (*mailbox_read)(struct can_rx_offload *offload, struct can_frame *cf,
27 u32 *timestamp, unsigned int mb);
27 28
28 struct sk_buff_head skb_queue; 29 struct sk_buff_head skb_queue;
29 u32 skb_queue_len_max; 30 u32 skb_queue_len_max;
30 31
32 unsigned int mb_first;
33 unsigned int mb_last;
34
31 struct napi_struct napi; 35 struct napi_struct napi;
36
37 bool inc;
32}; 38};
33 39
40int can_rx_offload_add_timestamp(struct net_device *dev, struct can_rx_offload *offload);
34int can_rx_offload_add_fifo(struct net_device *dev, struct can_rx_offload *offload, unsigned int weight); 41int can_rx_offload_add_fifo(struct net_device *dev, struct can_rx_offload *offload, unsigned int weight);
42int can_rx_offload_irq_offload_timestamp(struct can_rx_offload *offload, u64 reg);
35int can_rx_offload_irq_offload_fifo(struct can_rx_offload *offload); 43int can_rx_offload_irq_offload_fifo(struct can_rx_offload *offload);
36int can_rx_offload_irq_queue_err_skb(struct can_rx_offload *offload, struct sk_buff *skb); 44int can_rx_offload_irq_queue_err_skb(struct can_rx_offload *offload, struct sk_buff *skb);
37void can_rx_offload_reset(struct can_rx_offload *offload); 45void can_rx_offload_reset(struct can_rx_offload *offload);