diff options
author | Stephane Grosjean <s.grosjean@peak-system.com> | 2015-01-23 11:31:24 +0100 |
---|---|---|
committer | Marc Kleine-Budde <mkl@pengutronix.de> | 2015-01-28 14:47:06 +0100 |
commit | faa233d902bb97ac034fa2580e6e0934ccf98cf3 (patch) | |
tree | c8160f089c22b47337720c7eeb0b5c0bae15daba /drivers/net/can/usb/peak_usb/pcan_usb_core.h | |
parent | can: peak_usb: export pcan_usb_pro functions (diff) | |
download | linux-dev-faa233d902bb97ac034fa2580e6e0934ccf98cf3.tar.xz linux-dev-faa233d902bb97ac034fa2580e6e0934ccf98cf3.zip |
can: peak_usb: add peak_usb_netif_rx() new function
Add a common function that pushes the skb in the network queue with adding
timestamps information, converted from time values read from the
PEAK USB adapters.
Signed-off-by: Stephane Grosjean <s.grosjean@peak-system.com>
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
Diffstat (limited to 'drivers/net/can/usb/peak_usb/pcan_usb_core.h')
-rw-r--r-- | drivers/net/can/usb/peak_usb/pcan_usb_core.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/net/can/usb/peak_usb/pcan_usb_core.h b/drivers/net/can/usb/peak_usb/pcan_usb_core.h index e8038b30bab5..0e76b84fb786 100644 --- a/drivers/net/can/usb/peak_usb/pcan_usb_core.h +++ b/drivers/net/can/usb/peak_usb/pcan_usb_core.h @@ -145,7 +145,9 @@ void peak_usb_update_ts_now(struct peak_time_ref *time_ref, u32 ts_now); void peak_usb_set_ts_now(struct peak_time_ref *time_ref, u32 ts_now); void peak_usb_get_ts_tv(struct peak_time_ref *time_ref, u32 ts, struct timeval *tv); - +int peak_usb_netif_rx(struct sk_buff *skb, + struct peak_time_ref *time_ref, u32 ts_low, u32 ts_high); void peak_usb_async_complete(struct urb *urb); void peak_usb_restart_complete(struct peak_usb_device *dev); + #endif |