summaryrefslogtreecommitdiff
path: root/include/linux/can/dev.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/linux/can/dev.h')
-rw-r--r--include/linux/can/dev.h9
1 files changed, 8 insertions, 1 deletions
diff --git a/include/linux/can/dev.h b/include/linux/can/dev.h
index c05ff0f9f9a5..83f92af80b12 100644
--- a/include/linux/can/dev.h
+++ b/include/linux/can/dev.h
@@ -37,7 +37,11 @@ struct can_priv {
const struct can_bittiming_const *bittiming_const,
*data_bittiming_const;
struct can_clock clock;
-
+#ifdef CONFIG_CAN_HWFILTER
+ struct can_hwfilter filter;
+ int hwfilterbanks;
+ int rxmailboxes;
+#endif
enum can_state state;
u32 ctrlmode;
u32 ctrlmode_supported;
@@ -52,6 +56,9 @@ struct can_priv {
enum can_state *state);
int (*do_get_berr_counter)(const struct net_device *dev,
struct can_berr_counter *bec);
+#ifdef CONFIG_CAN_HWFILTER
+ int (*do_set_hwfilter)(struct net_device *dev);
+#endif
unsigned int echo_skb_max;
struct sk_buff **echo_skb;