Go to the documentation of this file.
16 #include <linux/types.h>
17 #include <linux/socket.h>
22 #define CAN_EFF_FLAG 0x80000000U
23 #define CAN_RTR_FLAG 0x40000000U
24 #define CAN_ERR_FLAG 0x20000000U
27 #define CAN_SFF_MASK 0x000007FFU
28 #define CAN_EFF_MASK 0x1FFFFFFFU
29 #define CAN_ERR_MASK 0x1FFFFFFFU
41 #define CAN_SFF_ID_BITS 11
42 #define CAN_EFF_ID_BITS 29
54 #define CAN_MAX_DLEN 8
57 #define CANFD_MAX_DLC 15
58 #define CANFD_MAX_DLEN 64
90 #define CANFD_BRS 0x01
91 #define CANFD_ESI 0x02
111 #define CAN_MTU (sizeof(struct can_frame))
112 #define CANFD_MTU (sizeof(struct canfd_frame))
123 #define SOL_CAN_BASE 100
160 #define CAN_INV_FILTER 0x20000000U