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 _UAPI_CAN_NETLINK_H 20 #define _UAPI_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 #define CAN_CTRLMODE_FD 0x20 81 #define CAN_CTRLMODE_PRESUME_ACK 0x40 82 #define CAN_CTRLMODE_FD_NON_ISO 0x80 83 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 84 struct can_device_stats { 85 __u32 bus_error; 86 __u32 error_warning; 87 __u32 error_passive; 88 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 89 __u32 bus_off; 90 __u32 arbitration_lost; 91 __u32 restarts; 92 }; 93 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 94 enum { 95 IFLA_CAN_UNSPEC, 96 IFLA_CAN_BITTIMING, 97 IFLA_CAN_BITTIMING_CONST, 98 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 99 IFLA_CAN_CLOCK, 100 IFLA_CAN_STATE, 101 IFLA_CAN_CTRLMODE, 102 IFLA_CAN_RESTART_MS, 103 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 104 IFLA_CAN_RESTART, 105 IFLA_CAN_BERR_COUNTER, 106 IFLA_CAN_DATA_BITTIMING, 107 IFLA_CAN_DATA_BITTIMING_CONST, 108 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 109 __IFLA_CAN_MAX 110 }; 111 #define IFLA_CAN_MAX (__IFLA_CAN_MAX - 1) 112 #endif 113 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 114