History

can: bcm: add support for CAN FD frames

The programming API of the CAN_BCM depends on struct can_frame which is given as array directly behind the bcm_msg_head structure. To follow this schema for the CAN FD frames a new flag 'CAN_FD_FRAME' in the bcm_msg_head flags indicates that the concatenated CAN frame structures behind the bcm_msg_head are defined as struct canfd_frame. This patch adds the support to handle CAN and CAN FD frames on a per BCM-op base. Main changes: - generally use struct canfd_frames instead if struct can_frames - use canfd_frame.flags instead of can_frame.can_dlc for private BCM flags - make all CAN frame sizes depending on the new CAN_FD_FRAME flags - separate between CAN and CAN FD when sending/receiving frames Due to the dependence of the CAN_FD_FRAME flag the former binary interface for classic CAN frames remains stable.

Oliver Hartkopp committed 10 years ago

Commit 6f3b9111 parent 2b5f5f52 files · +136 −88Browse files

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

Unified · Split

include/uapi/linux/can/bcm.h+1−0
@@ -99,5 +99,6 @@ enum { · 98 unmodified lines
9999 #define RX_ANNOUNCE_RESUME 0x0100
100100 #define TX_RESET_MULTI_IDX 0x0200
101101 #define RX_RTR_FRAME 0x0400
102+#define CAN_FD_FRAME 0x0800
102103
103104 #endif /* !_UAPI_CAN_BCM_H */

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