• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
2  * This header was generated from the Linux kernel headers by update_headers.py,
3  * to provide necessary information from kernel to userspace, such as constants,
4  * structures, and macros, and thus, contains no copyrightable information.
5  */
6 #ifndef _UAPI_LINUX_I2C_DEV_H
7 #define _UAPI_LINUX_I2C_DEV_H
8 #include <linux/types.h>
9 #include <linux/compiler.h>
10 #define I2C_RETRIES	0x0701
11 #define I2C_TIMEOUT	0x0702
12 #define I2C_SLAVE	0x0703
13 #define I2C_SLAVE_FORCE	0x0706
14 #define I2C_TENBIT	0x0704
15 #define I2C_FUNCS	0x0705
16 #define I2C_RDWR	0x0707
17 #define I2C_PEC		0x0708
18 #define I2C_SMBUS	0x0720
19 struct i2c_smbus_ioctl_data {
20 	__u8 read_write;
21 	__u8 command;
22 	__u32 size;
23 	union i2c_smbus_data __user *data;
24 };
25 struct i2c_rdwr_ioctl_data {
26 	struct i2c_msg __user *msgs;
27 	__u32 nmsgs;
28 };
29 #define  I2C_RDWR_IOCTL_MAX_MSGS	42
30 #define  I2C_RDRW_IOCTL_MAX_MSGS	I2C_RDWR_IOCTL_MAX_MSGS
31 #endif
32