blob: 59f12851b068197433dd7415d4fa2878a7a6a335 [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_ERROR_H
20#define _UAPI_CAN_ERROR_H
Ben Cheng655a7c02013-10-16 16:09:24 -070021#define CAN_ERR_DLC 8
22#define CAN_ERR_TX_TIMEOUT 0x00000001U
23/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
24#define CAN_ERR_LOSTARB 0x00000002U
25#define CAN_ERR_CRTL 0x00000004U
26#define CAN_ERR_PROT 0x00000008U
27#define CAN_ERR_TRX 0x00000010U
28/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
29#define CAN_ERR_ACK 0x00000020U
30#define CAN_ERR_BUSOFF 0x00000040U
31#define CAN_ERR_BUSERROR 0x00000080U
32#define CAN_ERR_RESTARTED 0x00000100U
33/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
34#define CAN_ERR_LOSTARB_UNSPEC 0x00
35#define CAN_ERR_CRTL_UNSPEC 0x00
36#define CAN_ERR_CRTL_RX_OVERFLOW 0x01
37#define CAN_ERR_CRTL_TX_OVERFLOW 0x02
38/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
39#define CAN_ERR_CRTL_RX_WARNING 0x04
40#define CAN_ERR_CRTL_TX_WARNING 0x08
41#define CAN_ERR_CRTL_RX_PASSIVE 0x10
42#define CAN_ERR_CRTL_TX_PASSIVE 0x20
43/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris05d08e92016-02-04 13:16:38 -080044#define CAN_ERR_CRTL_ACTIVE 0x40
Ben Cheng655a7c02013-10-16 16:09:24 -070045#define CAN_ERR_PROT_UNSPEC 0x00
46#define CAN_ERR_PROT_BIT 0x01
47#define CAN_ERR_PROT_FORM 0x02
Ben Cheng655a7c02013-10-16 16:09:24 -070048/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris05d08e92016-02-04 13:16:38 -080049#define CAN_ERR_PROT_STUFF 0x04
Ben Cheng655a7c02013-10-16 16:09:24 -070050#define CAN_ERR_PROT_BIT0 0x08
51#define CAN_ERR_PROT_BIT1 0x10
52#define CAN_ERR_PROT_OVERLOAD 0x20
Ben Cheng655a7c02013-10-16 16:09:24 -070053/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris05d08e92016-02-04 13:16:38 -080054#define CAN_ERR_PROT_ACTIVE 0x40
Ben Cheng655a7c02013-10-16 16:09:24 -070055#define CAN_ERR_PROT_TX 0x80
56#define CAN_ERR_PROT_LOC_UNSPEC 0x00
57#define CAN_ERR_PROT_LOC_SOF 0x03
Ben Cheng655a7c02013-10-16 16:09:24 -070058/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris05d08e92016-02-04 13:16:38 -080059#define CAN_ERR_PROT_LOC_ID28_21 0x02
Ben Cheng655a7c02013-10-16 16:09:24 -070060#define CAN_ERR_PROT_LOC_ID20_18 0x06
61#define CAN_ERR_PROT_LOC_SRTR 0x04
62#define CAN_ERR_PROT_LOC_IDE 0x05
Ben Cheng655a7c02013-10-16 16:09:24 -070063/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris05d08e92016-02-04 13:16:38 -080064#define CAN_ERR_PROT_LOC_ID17_13 0x07
Ben Cheng655a7c02013-10-16 16:09:24 -070065#define CAN_ERR_PROT_LOC_ID12_05 0x0F
66#define CAN_ERR_PROT_LOC_ID04_00 0x0E
67#define CAN_ERR_PROT_LOC_RTR 0x0C
Ben Cheng655a7c02013-10-16 16:09:24 -070068/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris05d08e92016-02-04 13:16:38 -080069#define CAN_ERR_PROT_LOC_RES1 0x0D
Ben Cheng655a7c02013-10-16 16:09:24 -070070#define CAN_ERR_PROT_LOC_RES0 0x09
71#define CAN_ERR_PROT_LOC_DLC 0x0B
72#define CAN_ERR_PROT_LOC_DATA 0x0A
Ben Cheng655a7c02013-10-16 16:09:24 -070073/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris05d08e92016-02-04 13:16:38 -080074#define CAN_ERR_PROT_LOC_CRC_SEQ 0x08
Ben Cheng655a7c02013-10-16 16:09:24 -070075#define CAN_ERR_PROT_LOC_CRC_DEL 0x18
76#define CAN_ERR_PROT_LOC_ACK 0x19
77#define CAN_ERR_PROT_LOC_ACK_DEL 0x1B
Ben Cheng655a7c02013-10-16 16:09:24 -070078/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris05d08e92016-02-04 13:16:38 -080079#define CAN_ERR_PROT_LOC_EOF 0x1A
Ben Cheng655a7c02013-10-16 16:09:24 -070080#define CAN_ERR_PROT_LOC_INTERM 0x12
81#define CAN_ERR_TRX_UNSPEC 0x00
82#define CAN_ERR_TRX_CANH_NO_WIRE 0x04
Ben Cheng655a7c02013-10-16 16:09:24 -070083/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris05d08e92016-02-04 13:16:38 -080084#define CAN_ERR_TRX_CANH_SHORT_TO_BAT 0x05
Ben Cheng655a7c02013-10-16 16:09:24 -070085#define CAN_ERR_TRX_CANH_SHORT_TO_VCC 0x06
86#define CAN_ERR_TRX_CANH_SHORT_TO_GND 0x07
87#define CAN_ERR_TRX_CANL_NO_WIRE 0x40
Ben Cheng655a7c02013-10-16 16:09:24 -070088/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris05d08e92016-02-04 13:16:38 -080089#define CAN_ERR_TRX_CANL_SHORT_TO_BAT 0x50
Ben Cheng655a7c02013-10-16 16:09:24 -070090#define CAN_ERR_TRX_CANL_SHORT_TO_VCC 0x60
91#define CAN_ERR_TRX_CANL_SHORT_TO_GND 0x70
92#define CAN_ERR_TRX_CANL_SHORT_TO_CANH 0x80
Ben Cheng655a7c02013-10-16 16:09:24 -070093/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris05d08e92016-02-04 13:16:38 -080094#endif