Lines Matching full:can
3 * linux/can/gw.h
5 * Definitions for CAN frame Gateway/Router/Bridge
49 #include <linux/can.h>
57 /* CAN gateway types */
60 CGW_TYPE_CAN_CAN, /* CAN->CAN routing */
66 /* CAN rtnetlink attribute definitions */
69 CGW_MOD_AND, /* CAN frame modification binary AND */
70 CGW_MOD_OR, /* CAN frame modification binary OR */
71 CGW_MOD_XOR, /* CAN frame modification binary XOR */
72 CGW_MOD_SET, /* CAN frame modification set alternate values */
75 CGW_HANDLED, /* number of handled CAN frames */
76 CGW_DROPPED, /* number of dropped CAN frames */
79 CGW_FILTER, /* specify struct can_filter on source CAN device */
80 CGW_DELETED, /* number of deleted CAN frames (see max_hops param) */
83 CGW_FDMOD_AND, /* CAN FD frame modification binary AND */
84 CGW_FDMOD_OR, /* CAN FD frame modification binary OR */
85 CGW_FDMOD_XOR, /* CAN FD frame modification binary XOR */
86 CGW_FDMOD_SET, /* CAN FD frame modification set alternate values */
99 /* CAN frame elements that are affected by curr. 3 CAN frame modifications */
101 #define CGW_MOD_DLC 0x02 /* Classical CAN data length code */
102 #define CGW_MOD_LEN CGW_MOD_DLC /* CAN FD (plain) data length */
104 #define CGW_MOD_FLAGS 0x08 /* CAN FD flags */
141 /* length of checksum operation parameters. idx = index in CAN frame data[] */
157 * CAN rtnetlink attribute contents in detail
161 * For the CAN->CAN gwtype the indices of _two_ CAN interfaces are mandatory.
164 * Sets a CAN receive filter for the gateway job specified by the
165 * struct can_filter described in include/linux/can.h
168 * Specifies a modification that's done to a received CAN frame before it is
172 * <u8> affected CAN frame elements
175 * Limit the number of hops of this specific rule. Usually the received CAN
176 * frame can be processed as much as 'max_hops' times (which is given at module
177 * load time of the can-gw module). This value is used to reduce the number of
211 * The calculated CRC may contain additional source data elements that can be
215 * that are used depending on counter values inside the CAN frame data[].