android_kernel_msm-6.1_noth.../include/uapi/linux/can
Oliver Hartkopp 94c23097f9 can: gw: support modification of Classical CAN DLCs
Add support for data length code modifications for Classical CAN.

The netlink configuration interface always allowed to pass any value
that fits into a byte, therefore only the modification process had to be
extended to handle the raw DLC represenation of Classical CAN frames.

When a DLC value from 0 .. F is provided for Classical CAN frame
modifications the 'len' value is modified as-is with the exception that
potentially existing 9 .. F DLC values in the len8_dlc element are moved
to the 'len' element for the modification operation by mod_retrieve_ccdlc().

After the modification the Classical CAN frame DLC information is brought
back into the correct format by mod_store_ccdlc() which is filling 'len'
and 'len8_dlc' accordingly.

Signed-off-by: Oliver Hartkopp <socketcan@hartkopp.net>
Link: https://lore.kernel.org/r/20201119084921.2621-1-socketcan@hartkopp.net
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
2020-11-20 12:05:14 +01:00
..
bcm.h can: don't use deprecated license identifiers 2019-11-05 12:44:34 +01:00
error.h can: don't use deprecated license identifiers 2019-11-05 12:44:34 +01:00
gw.h can: gw: support modification of Classical CAN DLCs 2020-11-20 12:05:14 +01:00
isotp.h can: isotp: implement cleanups / improvements from review 2020-10-12 10:06:08 +02:00
j1939.h can: don't use deprecated license identifiers 2019-11-05 12:44:34 +01:00
netlink.h can: add optional DLC element to Classical CAN frame structure 2020-11-20 09:43:29 +01:00
raw.h can: raw: add missing error queue support 2020-10-06 22:44:27 +02:00
vxcan.h can: don't use deprecated license identifiers 2019-11-05 12:44:34 +01:00