diff options
Diffstat (limited to 'include/linux/can')
| -rw-r--r-- | include/linux/can/rx-offload.h | 10 |
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 @@ | |||
| 23 | struct can_rx_offload { | 23 | struct 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 | ||
| 40 | int can_rx_offload_add_timestamp(struct net_device *dev, struct can_rx_offload *offload); | ||
| 34 | int can_rx_offload_add_fifo(struct net_device *dev, struct can_rx_offload *offload, unsigned int weight); | 41 | int can_rx_offload_add_fifo(struct net_device *dev, struct can_rx_offload *offload, unsigned int weight); |
| 42 | int can_rx_offload_irq_offload_timestamp(struct can_rx_offload *offload, u64 reg); | ||
| 35 | int can_rx_offload_irq_offload_fifo(struct can_rx_offload *offload); | 43 | int can_rx_offload_irq_offload_fifo(struct can_rx_offload *offload); |
| 36 | int can_rx_offload_irq_queue_err_skb(struct can_rx_offload *offload, struct sk_buff *skb); | 44 | int can_rx_offload_irq_queue_err_skb(struct can_rx_offload *offload, struct sk_buff *skb); |
| 37 | void can_rx_offload_reset(struct can_rx_offload *offload); | 45 | void can_rx_offload_reset(struct can_rx_offload *offload); |
