blob: 655aaa1969abea270b58fe90e533f33144b5e287 [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 */
24 __u32 bitrate;
25 __u32 sample_point;
26 __u32 tq;
27 __u32 prop_seg;
28/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
29 __u32 phase_seg1;
30 __u32 phase_seg2;
31 __u32 sjw;
32 __u32 brp;
33/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
34};
35struct can_bittiming_const {
36 char name[16];
37 __u32 tseg1_min;
38/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
39 __u32 tseg1_max;
40 __u32 tseg2_min;
41 __u32 tseg2_max;
42 __u32 sjw_max;
43/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
44 __u32 brp_min;
45 __u32 brp_max;
46 __u32 brp_inc;
47};
48/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
49struct can_clock {
50 __u32 freq;
51};
52enum can_state {
53/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
54 CAN_STATE_ERROR_ACTIVE = 0,
55 CAN_STATE_ERROR_WARNING,
56 CAN_STATE_ERROR_PASSIVE,
57 CAN_STATE_BUS_OFF,
58/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
59 CAN_STATE_STOPPED,
60 CAN_STATE_SLEEPING,
61 CAN_STATE_MAX
62};
63/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
64struct can_berr_counter {
65 __u16 txerr;
66 __u16 rxerr;
67};
68/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
69struct can_ctrlmode {
70 __u32 mask;
71 __u32 flags;
72};
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
Ben Cheng655a7c02013-10-16 16:09:24 -070081struct can_device_stats {
82 __u32 bus_error;
Ben Cheng655a7c02013-10-16 16:09:24 -070083/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferrisba8d4f42014-09-03 19:56:49 -070084 __u32 error_warning;
Ben Cheng655a7c02013-10-16 16:09:24 -070085 __u32 error_passive;
86 __u32 bus_off;
87 __u32 arbitration_lost;
Ben Cheng655a7c02013-10-16 16:09:24 -070088/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferrisba8d4f42014-09-03 19:56:49 -070089 __u32 restarts;
Ben Cheng655a7c02013-10-16 16:09:24 -070090};
91enum {
92 IFLA_CAN_UNSPEC,
Ben Cheng655a7c02013-10-16 16:09:24 -070093/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferrisba8d4f42014-09-03 19:56:49 -070094 IFLA_CAN_BITTIMING,
Ben Cheng655a7c02013-10-16 16:09:24 -070095 IFLA_CAN_BITTIMING_CONST,
96 IFLA_CAN_CLOCK,
97 IFLA_CAN_STATE,
Ben Cheng655a7c02013-10-16 16:09:24 -070098/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferrisba8d4f42014-09-03 19:56:49 -070099 IFLA_CAN_CTRLMODE,
Ben Cheng655a7c02013-10-16 16:09:24 -0700100 IFLA_CAN_RESTART_MS,
101 IFLA_CAN_RESTART,
102 IFLA_CAN_BERR_COUNTER,
Ben Cheng655a7c02013-10-16 16:09:24 -0700103/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700104 IFLA_CAN_DATA_BITTIMING,
105 IFLA_CAN_DATA_BITTIMING_CONST,
106 __IFLA_CAN_MAX
Ben Cheng655a7c02013-10-16 16:09:24 -0700107};
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700108/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700109#define IFLA_CAN_MAX (__IFLA_CAN_MAX - 1)
110#endif