linux_dsm_epyc7002/include/uapi/linux/can
Marc Kleine-Budde 431af77925 can: dev: add CAN interface API for fixed bitrates
Some CAN interfaces only support fixed fixed bitrates. This patch adds a
netlink interface to get the list of the CAN interface's fixed bitrates and
data bitrates.

Inside the driver arrays of supported data- bitrate values are defined.

const u32 drvname_bitrate[] = { 20000, 50000, 100000 };
const u32 drvname_data_bitrate[] = { 200000, 500000, 1000000 };

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

priv->bitrate_const = drvname_bitrate;
priv->bitrate_const_cnt = ARRAY_SIZE(drvname_bitrate);
priv->data_bitrate_const = drvname_data_bitrate;
priv->data_bitrate_const_cnt = ARRAY_SIZE(drvname_data_bitrate);

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 API for fixed bitrates 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