linux_dsm_epyc7002/include/uapi/linux/can
Oliver Hartkopp 12a6075cab can: dev: add CAN interface termination API
This patch adds a netlink interface to configure the CAN bus termination of
CAN interfaces.

Inside the driver an array of supported termination values is defined:

const u16 drvname_termination[] = { 60, 120, CAN_TERMINATION_DISABLED };

struct drvname_priv *priv;
priv = netdev_priv(dev);

priv->termination_const = drvname_termination;
priv->termination_const_cnt = ARRAY_SIZE(drvname_termination);
priv->termination = CAN_TERMINATION_DISABLED;

And the funtion to set the value has to be defined:

priv->do_set_termination = drvname_set_termination;

Signed-off-by: Oliver Hartkopp <socketcan@hartkopp.net>
Reviewed-by: Ramesh Shanmugasundaram <Ramesh.shanmugasundaram@bp.renesas.com>
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
2017-01-24 13:52:00 +01:00
..
bcm.h can: bcm: add support for CAN FD frames 2016-06-17 15:39:46 +02:00
error.h can: dev: Consolidate and unify state change handling 2014-12-07 21:22:09 +01:00
gw.h can: cangw: introduce optional uid to reference created routing jobs 2015-06-09 09:39:49 +02:00
Kbuild UAPI: (Scripted) Disintegrate include/linux/can 2012-10-10 22:24:21 +02:00
netlink.h can: dev: add CAN interface termination API 2017-01-24 13:52:00 +01:00
raw.h can: introduce new raw socket option to join the given CAN filters 2015-04-01 11:28:22 +02:00