blob: 0a86166a97ec48ac8537ef6bec850a572d36a017 [file] [log] [blame]
Nick Kralevicha67e4de2013-01-14 11:28:26 -08001/****************************************************************************
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_BCM_H
20#define _UAPI_CAN_BCM_H
Ben Cheng655a7c02013-10-16 16:09:24 -070021#include <linux/types.h>
22#include <linux/can.h>
Nick Kralevicha67e4de2013-01-14 11:28:26 -080023/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris05d08e92016-02-04 13:16:38 -080024struct bcm_timeval {
25 long tv_sec;
26 long tv_usec;
27};
28/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -070029struct bcm_msg_head {
Tao Baod7db5942015-01-28 10:07:51 -080030 __u32 opcode;
31 __u32 flags;
32 __u32 count;
Nick Kralevicha67e4de2013-01-14 11:28:26 -080033/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris05d08e92016-02-04 13:16:38 -080034 struct bcm_timeval ival1, ival2;
Tao Baod7db5942015-01-28 10:07:51 -080035 canid_t can_id;
36 __u32 nframes;
37 struct can_frame frames[0];
Nick Kralevicha67e4de2013-01-14 11:28:26 -080038/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -070039};
40enum {
Tao Baod7db5942015-01-28 10:07:51 -080041 TX_SETUP = 1,
42 TX_DELETE,
Nick Kralevicha67e4de2013-01-14 11:28:26 -080043/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -080044 TX_READ,
45 TX_SEND,
46 RX_SETUP,
47 RX_DELETE,
Nick Kralevicha67e4de2013-01-14 11:28:26 -080048/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -080049 RX_READ,
50 TX_STATUS,
51 TX_EXPIRED,
52 RX_STATUS,
Nick Kralevicha67e4de2013-01-14 11:28:26 -080053/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -080054 RX_TIMEOUT,
55 RX_CHANGED
Ben Cheng655a7c02013-10-16 16:09:24 -070056};
57#define SETTIMER 0x0001
58/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
59#define STARTTIMER 0x0002
60#define TX_COUNTEVT 0x0004
61#define TX_ANNOUNCE 0x0008
62#define TX_CP_CAN_ID 0x0010
63/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
64#define RX_FILTER_ID 0x0020
65#define RX_CHECK_DLC 0x0040
66#define RX_NO_AUTOTIMER 0x0080
67#define RX_ANNOUNCE_RESUME 0x0100
68/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
69#define TX_RESET_MULTI_IDX 0x0200
70#define RX_RTR_FRAME 0x0400
Nick Kralevicha67e4de2013-01-14 11:28:26 -080071#endif