diff options
Diffstat (limited to 'include/linux')
| -rw-r--r-- | include/linux/can.h | 8 | ||||
| -rw-r--r-- | include/linux/can/error.h | 4 |
2 files changed, 6 insertions, 6 deletions
diff --git a/include/linux/can.h b/include/linux/can.h index 9a19bcb3eeaf..17334c09bd93 100644 --- a/include/linux/can.h +++ b/include/linux/can.h | |||
| @@ -21,7 +21,7 @@ | |||
| 21 | /* special address description flags for the CAN_ID */ | 21 | /* special address description flags for the CAN_ID */ |
| 22 | #define CAN_EFF_FLAG 0x80000000U /* EFF/SFF is set in the MSB */ | 22 | #define CAN_EFF_FLAG 0x80000000U /* EFF/SFF is set in the MSB */ |
| 23 | #define CAN_RTR_FLAG 0x40000000U /* remote transmission request */ | 23 | #define CAN_RTR_FLAG 0x40000000U /* remote transmission request */ |
| 24 | #define CAN_ERR_FLAG 0x20000000U /* error frame */ | 24 | #define CAN_ERR_FLAG 0x20000000U /* error message frame */ |
| 25 | 25 | ||
| 26 | /* valid bits in CAN ID for frame formats */ | 26 | /* valid bits in CAN ID for frame formats */ |
| 27 | #define CAN_SFF_MASK 0x000007FFU /* standard frame format (SFF) */ | 27 | #define CAN_SFF_MASK 0x000007FFU /* standard frame format (SFF) */ |
| @@ -32,14 +32,14 @@ | |||
| 32 | * Controller Area Network Identifier structure | 32 | * Controller Area Network Identifier structure |
| 33 | * | 33 | * |
| 34 | * bit 0-28 : CAN identifier (11/29 bit) | 34 | * bit 0-28 : CAN identifier (11/29 bit) |
| 35 | * bit 29 : error frame flag (0 = data frame, 1 = error frame) | 35 | * bit 29 : error message frame flag (0 = data frame, 1 = error message) |
| 36 | * bit 30 : remote transmission request flag (1 = rtr frame) | 36 | * bit 30 : remote transmission request flag (1 = rtr frame) |
| 37 | * bit 31 : frame format flag (0 = standard 11 bit, 1 = extended 29 bit) | 37 | * bit 31 : frame format flag (0 = standard 11 bit, 1 = extended 29 bit) |
| 38 | */ | 38 | */ |
| 39 | typedef __u32 canid_t; | 39 | typedef __u32 canid_t; |
| 40 | 40 | ||
| 41 | /* | 41 | /* |
| 42 | * Controller Area Network Error Frame Mask structure | 42 | * Controller Area Network Error Message Frame Mask structure |
| 43 | * | 43 | * |
| 44 | * bit 0-28 : error class mask (see include/linux/can/error.h) | 44 | * bit 0-28 : error class mask (see include/linux/can/error.h) |
| 45 | * bit 29-31 : set to zero | 45 | * bit 29-31 : set to zero |
| @@ -97,7 +97,7 @@ struct sockaddr_can { | |||
| 97 | * <received_can_id> & mask == can_id & mask | 97 | * <received_can_id> & mask == can_id & mask |
| 98 | * | 98 | * |
| 99 | * The filter can be inverted (CAN_INV_FILTER bit set in can_id) or it can | 99 | * The filter can be inverted (CAN_INV_FILTER bit set in can_id) or it can |
| 100 | * filter for error frames (CAN_ERR_FLAG bit set in mask). | 100 | * filter for error message frames (CAN_ERR_FLAG bit set in mask). |
| 101 | */ | 101 | */ |
| 102 | struct can_filter { | 102 | struct can_filter { |
| 103 | canid_t can_id; | 103 | canid_t can_id; |
diff --git a/include/linux/can/error.h b/include/linux/can/error.h index 63e855ea6b84..7b7148bded71 100644 --- a/include/linux/can/error.h +++ b/include/linux/can/error.h | |||
| @@ -1,7 +1,7 @@ | |||
| 1 | /* | 1 | /* |
| 2 | * linux/can/error.h | 2 | * linux/can/error.h |
| 3 | * | 3 | * |
| 4 | * Definitions of the CAN error frame to be filtered and passed to the user. | 4 | * Definitions of the CAN error messages to be filtered and passed to the user. |
| 5 | * | 5 | * |
| 6 | * Author: Oliver Hartkopp <oliver.hartkopp@volkswagen.de> | 6 | * Author: Oliver Hartkopp <oliver.hartkopp@volkswagen.de> |
| 7 | * Copyright (c) 2002-2007 Volkswagen Group Electronic Research | 7 | * Copyright (c) 2002-2007 Volkswagen Group Electronic Research |
| @@ -12,7 +12,7 @@ | |||
| 12 | #ifndef CAN_ERROR_H | 12 | #ifndef CAN_ERROR_H |
| 13 | #define CAN_ERROR_H | 13 | #define CAN_ERROR_H |
| 14 | 14 | ||
| 15 | #define CAN_ERR_DLC 8 /* dlc for error frames */ | 15 | #define CAN_ERR_DLC 8 /* dlc for error message frames */ |
| 16 | 16 | ||
| 17 | /* error class (mask) in can_id */ | 17 | /* error class (mask) in can_id */ |
| 18 | #define CAN_ERR_TX_TIMEOUT 0x00000001U /* TX timeout (by netdevice driver) */ | 18 | #define CAN_ERR_TX_TIMEOUT 0x00000001U /* TX timeout (by netdevice driver) */ |
