diff options
| author | 2017-01-11 17:05:35 +0100 | |
|---|---|---|
| committer | 2017-01-24 13:52:00 +0100 | |
| commit | 431af779256cd6cb8328ac23c5696bae63c33a51 (patch) | |
| tree | fdfd3634d376b4e010649e40bb6edf2f80d35948 /net/unix/af_unix.c | |
| parent | can: dev: can_changelink: allow to set bitrate on devices not providing {data_,}bittiming_const (diff) | |
| download | wireguard-linux-431af779256cd6cb8328ac23c5696bae63c33a51.tar.xz wireguard-linux-431af779256cd6cb8328ac23c5696bae63c33a51.zip | |
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>
Diffstat (limited to 'net/unix/af_unix.c')
0 files changed, 0 insertions, 0 deletions
