• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /****************************************************************************
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  ****************************************************************************/
19 #ifndef CAN_NETLINK_H
20 #define CAN_NETLINK_H
21 #include <linux/types.h>
22 struct 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 };
35 struct 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 */
49 struct can_clock {
50  __u32 freq;
51 };
52 enum 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 */
64 struct can_berr_counter {
65  __u16 txerr;
66  __u16 rxerr;
67 };
68 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
69 struct 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
80 struct can_device_stats {
81  __u32 bus_error;
82  __u32 error_warning;
83 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
84  __u32 error_passive;
85  __u32 bus_off;
86  __u32 arbitration_lost;
87  __u32 restarts;
88 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
89 };
90 enum {
91  IFLA_CAN_UNSPEC,
92  IFLA_CAN_BITTIMING,
93 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
94  IFLA_CAN_BITTIMING_CONST,
95  IFLA_CAN_CLOCK,
96  IFLA_CAN_STATE,
97  IFLA_CAN_CTRLMODE,
98 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
99  IFLA_CAN_RESTART_MS,
100  IFLA_CAN_RESTART,
101  IFLA_CAN_BERR_COUNTER,
102  __IFLA_CAN_MAX
103 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
104 };
105 #define IFLA_CAN_MAX (__IFLA_CAN_MAX - 1)
106 #endif
107