blob: 96a90ffffcd6a4a68de5361bb1779c1f2b97e263 [file] [log] [blame]
Ben Cheng655a7c02013-10-16 16:09:24 -07001/****************************************************************************
2 ****************************************************************************
3 ***
4 *** This header was automatically generated from a Linux kernel header
5 *** of the same name, to make information necessary for userspace to
6 *** call into the kernel available to libc. It contains only constants,
7 *** structures, and macros generated from the original header, and thus,
8 *** contains no copyrightable information.
9 ***
10 *** To edit the content of this header, modify the corresponding
11 *** source file (e.g. under external/kernel-headers/original/) then
12 *** run bionic/libc/kernel/tools/update_all.py
13 ***
14 *** Any manual change here will be lost the next time this script will
15 *** be run. You've been warned!
16 ***
17 ****************************************************************************
18 ****************************************************************************/
Christopher Ferrisba8d4f42014-09-03 19:56:49 -070019#ifndef _UAPI_CAN_NETLINK_H
20#define _UAPI_CAN_NETLINK_H
Ben Cheng655a7c02013-10-16 16:09:24 -070021#include <linux/types.h>
22struct can_bittiming {
23/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -080024 __u32 bitrate;
25 __u32 sample_point;
26 __u32 tq;
27 __u32 prop_seg;
Ben Cheng655a7c02013-10-16 16:09:24 -070028/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -080029 __u32 phase_seg1;
30 __u32 phase_seg2;
31 __u32 sjw;
32 __u32 brp;
Ben Cheng655a7c02013-10-16 16:09:24 -070033/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
34};
35struct can_bittiming_const {
Tao Baod7db5942015-01-28 10:07:51 -080036 char name[16];
37 __u32 tseg1_min;
Ben Cheng655a7c02013-10-16 16:09:24 -070038/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -080039 __u32 tseg1_max;
40 __u32 tseg2_min;
41 __u32 tseg2_max;
42 __u32 sjw_max;
Ben Cheng655a7c02013-10-16 16:09:24 -070043/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -080044 __u32 brp_min;
45 __u32 brp_max;
46 __u32 brp_inc;
Ben Cheng655a7c02013-10-16 16:09:24 -070047};
48/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
49struct can_clock {
Tao Baod7db5942015-01-28 10:07:51 -080050 __u32 freq;
Ben Cheng655a7c02013-10-16 16:09:24 -070051};
52enum can_state {
53/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -080054 CAN_STATE_ERROR_ACTIVE = 0,
55 CAN_STATE_ERROR_WARNING,
56 CAN_STATE_ERROR_PASSIVE,
57 CAN_STATE_BUS_OFF,
Ben Cheng655a7c02013-10-16 16:09:24 -070058/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -080059 CAN_STATE_STOPPED,
60 CAN_STATE_SLEEPING,
61 CAN_STATE_MAX
Ben Cheng655a7c02013-10-16 16:09:24 -070062};
63/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
64struct can_berr_counter {
Tao Baod7db5942015-01-28 10:07:51 -080065 __u16 txerr;
66 __u16 rxerr;
Ben Cheng655a7c02013-10-16 16:09:24 -070067};
68/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
69struct can_ctrlmode {
Tao Baod7db5942015-01-28 10:07:51 -080070 __u32 mask;
71 __u32 flags;
Ben Cheng655a7c02013-10-16 16:09:24 -070072};
73/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
74#define CAN_CTRLMODE_LOOPBACK 0x01
75#define CAN_CTRLMODE_LISTENONLY 0x02
76#define CAN_CTRLMODE_3_SAMPLES 0x04
77#define CAN_CTRLMODE_ONE_SHOT 0x08
78/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
79#define CAN_CTRLMODE_BERR_REPORTING 0x10
Christopher Ferrisba8d4f42014-09-03 19:56:49 -070080#define CAN_CTRLMODE_FD 0x20
Christopher Ferris82d75042015-01-26 10:57:07 -080081#define CAN_CTRLMODE_PRESUME_ACK 0x40
Ben Cheng655a7c02013-10-16 16:09:24 -070082struct can_device_stats {
Ben Cheng655a7c02013-10-16 16:09:24 -070083/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -080084 __u32 bus_error;
85 __u32 error_warning;
86 __u32 error_passive;
87 __u32 bus_off;
Ben Cheng655a7c02013-10-16 16:09:24 -070088/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -080089 __u32 arbitration_lost;
90 __u32 restarts;
Ben Cheng655a7c02013-10-16 16:09:24 -070091};
92enum {
Ben Cheng655a7c02013-10-16 16:09:24 -070093/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -080094 IFLA_CAN_UNSPEC,
95 IFLA_CAN_BITTIMING,
96 IFLA_CAN_BITTIMING_CONST,
97 IFLA_CAN_CLOCK,
Ben Cheng655a7c02013-10-16 16:09:24 -070098/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -080099 IFLA_CAN_STATE,
100 IFLA_CAN_CTRLMODE,
101 IFLA_CAN_RESTART_MS,
102 IFLA_CAN_RESTART,
Ben Cheng655a7c02013-10-16 16:09:24 -0700103/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800104 IFLA_CAN_BERR_COUNTER,
105 IFLA_CAN_DATA_BITTIMING,
106 IFLA_CAN_DATA_BITTIMING_CONST,
107 __IFLA_CAN_MAX
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700108/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris82d75042015-01-26 10:57:07 -0800109};
Ben Cheng655a7c02013-10-16 16:09:24 -0700110#define IFLA_CAN_MAX (__IFLA_CAN_MAX - 1)
111#endif