netlink.h revision ba8d4f460b51161eb82cf1006cb34a3cc1389f47
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> 22struct 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}; 35struct 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 */ 49struct can_clock { 50 __u32 freq; 51}; 52enum 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 */ 64struct can_berr_counter { 65 __u16 txerr; 66 __u16 rxerr; 67}; 68/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 69struct 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 81struct can_device_stats { 82 __u32 bus_error; 83/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 84 __u32 error_warning; 85 __u32 error_passive; 86 __u32 bus_off; 87 __u32 arbitration_lost; 88/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 89 __u32 restarts; 90}; 91enum { 92 IFLA_CAN_UNSPEC, 93/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 94 IFLA_CAN_BITTIMING, 95 IFLA_CAN_BITTIMING_CONST, 96 IFLA_CAN_CLOCK, 97 IFLA_CAN_STATE, 98/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 99 IFLA_CAN_CTRLMODE, 100 IFLA_CAN_RESTART_MS, 101 IFLA_CAN_RESTART, 102 IFLA_CAN_BERR_COUNTER, 103/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 104 IFLA_CAN_DATA_BITTIMING, 105 IFLA_CAN_DATA_BITTIMING_CONST, 106 __IFLA_CAN_MAX 107}; 108/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 109#define IFLA_CAN_MAX (__IFLA_CAN_MAX - 1) 110#endif 111