diff options
author | Marc Kleine-Budde <mkl@pengutronix.de> | 2009-12-22 20:27:48 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2010-01-04 00:31:03 -0500 |
commit | c1c5523dd1517250cac8b15a4acbc237c24a67d4 (patch) | |
tree | ce2e7962c10df3b2a8bda93db3393d898b47c98c /include/linux/can | |
parent | 20dd3850bcf860561496827b711fa10fecf6e787 (diff) |
can/netlink: add CAN_CTRLMODE_ONE_SHOT
This patch adds the flag CAN_CTRLMODE_ONE_SHOT. It is used as mask
or flag in the "struct can_ctrlmode".
It allows userspace via netlink to set a CAN controller into the special
"one-shot" mode. In this mode, if supported by the CAN controller, it
tries only once to deliver a CAN frame and aborts it if an error
(e.g.: arbitration lost) happens.
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
Acked-by: Wolfgang Grandegger <wg@grandegger.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/linux/can')
-rw-r--r-- | include/linux/can/netlink.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/can/netlink.h b/include/linux/can/netlink.h index 9ecbb7871c0e..c818335fbb13 100644 --- a/include/linux/can/netlink.h +++ b/include/linux/can/netlink.h | |||
@@ -80,6 +80,7 @@ struct can_ctrlmode { | |||
80 | #define CAN_CTRLMODE_LOOPBACK 0x1 /* Loopback mode */ | 80 | #define CAN_CTRLMODE_LOOPBACK 0x1 /* Loopback mode */ |
81 | #define CAN_CTRLMODE_LISTENONLY 0x2 /* Listen-only mode */ | 81 | #define CAN_CTRLMODE_LISTENONLY 0x2 /* Listen-only mode */ |
82 | #define CAN_CTRLMODE_3_SAMPLES 0x4 /* Triple sampling mode */ | 82 | #define CAN_CTRLMODE_3_SAMPLES 0x4 /* Triple sampling mode */ |
83 | #define CAN_CTRLMODE_ONE_SHOT 0x8 /* One-Shot mode */ | ||
83 | 84 | ||
84 | /* | 85 | /* |
85 | * CAN device statistics | 86 | * CAN device statistics |