1 /*
2  * This file is auto-generated. Modifications will be lost.
3  *
4  * See https://android.googlesource.com/platform/bionic/+/master/libc/kernel/
5  * for more information.
6  */
7 #ifndef _UAPI_CAN_BCM_H
8 #define _UAPI_CAN_BCM_H
9 #include <linux/types.h>
10 #include <linux/can.h>
11 struct bcm_timeval {
12   long tv_sec;
13   long tv_usec;
14 };
15 struct bcm_msg_head {
16   __u32 opcode;
17   __u32 flags;
18   __u32 count;
19   struct bcm_timeval ival1, ival2;
20   canid_t can_id;
21   __u32 nframes;
22   struct can_frame frames[];
23 };
24 enum {
25   TX_SETUP = 1,
26   TX_DELETE,
27   TX_READ,
28   TX_SEND,
29   RX_SETUP,
30   RX_DELETE,
31   RX_READ,
32   TX_STATUS,
33   TX_EXPIRED,
34   RX_STATUS,
35   RX_TIMEOUT,
36   RX_CHANGED
37 };
38 #define SETTIMER 0x0001
39 #define STARTTIMER 0x0002
40 #define TX_COUNTEVT 0x0004
41 #define TX_ANNOUNCE 0x0008
42 #define TX_CP_CAN_ID 0x0010
43 #define RX_FILTER_ID 0x0020
44 #define RX_CHECK_DLC 0x0040
45 #define RX_NO_AUTOTIMER 0x0080
46 #define RX_ANNOUNCE_RESUME 0x0100
47 #define TX_RESET_MULTI_IDX 0x0200
48 #define RX_RTR_FRAME 0x0400
49 #define CAN_FD_FRAME 0x0800
50 #endif
51