1 /* 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 */ 7 #ifndef _UAPI_LINUX_I2C_DEV_H 8 #define _UAPI_LINUX_I2C_DEV_H 9 #include <linux/types.h> 10 #include <linux/compiler.h> 11 #define I2C_RETRIES 0x0701 12 #define I2C_TIMEOUT 0x0702 13 #define I2C_SLAVE 0x0703 14 #define I2C_SLAVE_FORCE 0x0706 15 #define I2C_TENBIT 0x0704 16 #define I2C_FUNCS 0x0705 17 #define I2C_RDWR 0x0707 18 #define I2C_PEC 0x0708 19 #define I2C_SMBUS 0x0720 20 struct i2c_smbus_ioctl_data { 21 __u8 read_write; 22 __u8 command; 23 __u32 size; 24 union i2c_smbus_data * data; 25 }; 26 struct i2c_rdwr_ioctl_data { 27 struct i2c_msg * msgs; 28 __u32 nmsgs; 29 }; 30 #define I2C_RDWR_IOCTL_MAX_MSGS 42 31 #define I2C_RDRW_IOCTL_MAX_MSGS I2C_RDWR_IOCTL_MAX_MSGS 32 #endif 33