Update CAN netlink header
Signed-off-by: Nikita Edward Baruzdin <nebaruzdin@gmail.com> Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>pull/106/head^2
parent
0c91940da1
commit
5938ac70cb
|
|
@ -5,19 +5,25 @@
|
||||||
*
|
*
|
||||||
* Copyright (c) 2009 Wolfgang Grandegger <wg@grandegger.com>
|
* Copyright (c) 2009 Wolfgang Grandegger <wg@grandegger.com>
|
||||||
*
|
*
|
||||||
* Send feedback to <socketcan-users@lists.berlios.de>
|
* This program is free software; you can redistribute it and/or modify
|
||||||
|
* it under the terms of the version 2 of the GNU General Public License
|
||||||
|
* as published by the Free Software Foundation
|
||||||
*
|
*
|
||||||
|
* This program is distributed in the hope that it will be useful,
|
||||||
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
* GNU General Public License for more details.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef CAN_NETLINK_H
|
#ifndef _UAPI_CAN_NETLINK_H
|
||||||
#define CAN_NETLINK_H
|
#define _UAPI_CAN_NETLINK_H
|
||||||
|
|
||||||
#include <linux/types.h>
|
#include <linux/types.h>
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* CAN bit-timing parameters
|
* CAN bit-timing parameters
|
||||||
*
|
*
|
||||||
* For futher information, please read chapter "8 BIT TIMING
|
* For further information, please read chapter "8 BIT TIMING
|
||||||
* REQUIREMENTS" of the "Bosch CAN Specification version 2.0"
|
* REQUIREMENTS" of the "Bosch CAN Specification version 2.0"
|
||||||
* at http://www.semiconductors.bosch.de/pdf/can2spec.pdf.
|
* at http://www.semiconductors.bosch.de/pdf/can2spec.pdf.
|
||||||
*/
|
*/
|
||||||
|
|
@ -90,6 +96,8 @@ struct can_ctrlmode {
|
||||||
#define CAN_CTRLMODE_3_SAMPLES 0x04 /* Triple sampling mode */
|
#define CAN_CTRLMODE_3_SAMPLES 0x04 /* Triple sampling mode */
|
||||||
#define CAN_CTRLMODE_ONE_SHOT 0x08 /* One-Shot mode */
|
#define CAN_CTRLMODE_ONE_SHOT 0x08 /* One-Shot mode */
|
||||||
#define CAN_CTRLMODE_BERR_REPORTING 0x10 /* Bus-error reporting */
|
#define CAN_CTRLMODE_BERR_REPORTING 0x10 /* Bus-error reporting */
|
||||||
|
#define CAN_CTRLMODE_FD 0x20 /* CAN FD mode */
|
||||||
|
#define CAN_CTRLMODE_PRESUME_ACK 0x40 /* Ignore missing CAN ACKs */
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* CAN device statistics
|
* CAN device statistics
|
||||||
|
|
@ -116,9 +124,11 @@ enum {
|
||||||
IFLA_CAN_RESTART_MS,
|
IFLA_CAN_RESTART_MS,
|
||||||
IFLA_CAN_RESTART,
|
IFLA_CAN_RESTART,
|
||||||
IFLA_CAN_BERR_COUNTER,
|
IFLA_CAN_BERR_COUNTER,
|
||||||
|
IFLA_CAN_DATA_BITTIMING,
|
||||||
|
IFLA_CAN_DATA_BITTIMING_CONST,
|
||||||
__IFLA_CAN_MAX
|
__IFLA_CAN_MAX
|
||||||
};
|
};
|
||||||
|
|
||||||
#define IFLA_CAN_MAX (__IFLA_CAN_MAX - 1)
|
#define IFLA_CAN_MAX (__IFLA_CAN_MAX - 1)
|
||||||
|
|
||||||
#endif /* CAN_NETLINK_H */
|
#endif /* !_UAPI_CAN_NETLINK_H */
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue