blob: a52f8e311938c22c05260536b0347154e0357d56 [file] [log] [blame]
Elliott Hughes180edef2023-11-02 00:08:05 +00001/*
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 */
Christopher Ferrisba8d4f42014-09-03 19:56:49 -07007#ifndef _UAPI_CAN_BCM_H
8#define _UAPI_CAN_BCM_H
Ben Cheng655a7c02013-10-16 16:09:24 -07009#include <linux/types.h>
10#include <linux/can.h>
Christopher Ferris05d08e92016-02-04 13:16:38 -080011struct bcm_timeval {
12 long tv_sec;
13 long tv_usec;
14};
Ben Cheng655a7c02013-10-16 16:09:24 -070015struct bcm_msg_head {
Tao Baod7db5942015-01-28 10:07:51 -080016 __u32 opcode;
17 __u32 flags;
18 __u32 count;
Christopher Ferris05d08e92016-02-04 13:16:38 -080019 struct bcm_timeval ival1, ival2;
Tao Baod7db5942015-01-28 10:07:51 -080020 canid_t can_id;
21 __u32 nframes;
Christopher Ferris7447a1c2022-10-04 18:24:44 -070022 struct can_frame frames[];
Ben Cheng655a7c02013-10-16 16:09:24 -070023};
24enum {
Tao Baod7db5942015-01-28 10:07:51 -080025 TX_SETUP = 1,
26 TX_DELETE,
Tao Baod7db5942015-01-28 10:07:51 -080027 TX_READ,
28 TX_SEND,
29 RX_SETUP,
30 RX_DELETE,
Tao Baod7db5942015-01-28 10:07:51 -080031 RX_READ,
32 TX_STATUS,
33 TX_EXPIRED,
34 RX_STATUS,
Tao Baod7db5942015-01-28 10:07:51 -080035 RX_TIMEOUT,
36 RX_CHANGED
Ben Cheng655a7c02013-10-16 16:09:24 -070037};
38#define SETTIMER 0x0001
Ben Cheng655a7c02013-10-16 16:09:24 -070039#define STARTTIMER 0x0002
40#define TX_COUNTEVT 0x0004
41#define TX_ANNOUNCE 0x0008
42#define TX_CP_CAN_ID 0x0010
Ben Cheng655a7c02013-10-16 16:09:24 -070043#define RX_FILTER_ID 0x0020
44#define RX_CHECK_DLC 0x0040
45#define RX_NO_AUTOTIMER 0x0080
46#define RX_ANNOUNCE_RESUME 0x0100
Ben Cheng655a7c02013-10-16 16:09:24 -070047#define TX_RESET_MULTI_IDX 0x0200
48#define RX_RTR_FRAME 0x0400
Christopher Ferris49f525c2016-12-12 14:55:36 -080049#define CAN_FD_FRAME 0x0800
Nick Kralevicha67e4de2013-01-14 11:28:26 -080050#endif