History

can: netlink: add initial CAN XL support

CAN XL uses bittiming parameters different from Classical CAN and CAN FD. Thus, all the data bittiming parameters, including TDC, need to be duplicated for CAN XL. Add the CAN XL netlink interface for all the features which are common with CAN FD. Any new CAN XL specific features are added later on. The first time CAN XL is activated, the MTU is set by default to CANXL_MAX_MTU. The user may then configure a custom MTU within the CANXL_MIN_MTU to CANXL_MAX_MTU range, in which case, the custom MTU value will be kept as long as CAN XL remains active.

Vincent Mailhol committed 11 months ago

Commit e6328161 parent 60f511f5 files · +90 −20Browse files

Showing the changes to include/uapi (1 of 5 files). Show all

Unified · Split

include/uapi/linux/can/netlink.h+7−0
@@ -104,6 +104,9 @@ struct can_ctrlmode { · 103 unmodified lines
104104 #define CAN_CTRLMODE_TDC_AUTO 0x200 /* FD transceiver automatically calculates TDCV */
105105 #define CAN_CTRLMODE_TDC_MANUAL 0x400 /* FD TDCV is manually set up by user */
106106 #define CAN_CTRLMODE_RESTRICTED 0x800 /* Restricted operation mode */
107+#define CAN_CTRLMODE_XL 0x1000 /* CAN XL mode */
108+#define CAN_CTRLMODE_XL_TDC_AUTO 0x2000 /* XL transceiver automatically calculates TDCV */
109+#define CAN_CTRLMODE_XL_TDC_MANUAL 0x4000 /* XL TDCV is manually set up by user */
107110
108111 /*
109112 * CAN device statistics
@@ -139,6 +142,10 @@ enum { · 29 unmodified lines
139142 IFLA_CAN_BITRATE_MAX,
140143 IFLA_CAN_TDC, /* FD */
141144 IFLA_CAN_CTRLMODE_EXT,
145+ IFLA_CAN_XL_DATA_BITTIMING,
146+ IFLA_CAN_XL_DATA_BITTIMING_CONST,
147+ IFLA_CAN_XL_DATA_BITRATE_CONST,
148+ IFLA_CAN_XL_TDC,
142149
143150 /* add new constants above here */
144151 __IFLA_CAN_MAX,

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t