blob: 9aefbdf0a399efed77b697fa47140799416616db [file] [log] [blame]
Elliott Hughes180edef2023-11-02 00:08:05 +00001/*
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 */
Ben Cheng655a7c02013-10-16 16:09:24 -07007#ifndef _UAPI_LINUX_I2C_DEV_H
8#define _UAPI_LINUX_I2C_DEV_H
9#include <linux/types.h>
10#include <linux/compiler.h>
Ben Cheng655a7c02013-10-16 16:09:24 -070011#define I2C_RETRIES 0x0701
12#define I2C_TIMEOUT 0x0702
13#define I2C_SLAVE 0x0703
14#define I2C_SLAVE_FORCE 0x0706
Ben Cheng655a7c02013-10-16 16:09:24 -070015#define I2C_TENBIT 0x0704
16#define I2C_FUNCS 0x0705
17#define I2C_RDWR 0x0707
18#define I2C_PEC 0x0708
Ben Cheng655a7c02013-10-16 16:09:24 -070019#define I2C_SMBUS 0x0720
20struct i2c_smbus_ioctl_data {
Tao Baod7db5942015-01-28 10:07:51 -080021 __u8 read_write;
22 __u8 command;
Tao Baod7db5942015-01-28 10:07:51 -080023 __u32 size;
Elliott Hughes0f0c18f2023-03-29 15:53:31 -070024 union i2c_smbus_data * data;
Ben Cheng655a7c02013-10-16 16:09:24 -070025};
26struct i2c_rdwr_ioctl_data {
Elliott Hughes0f0c18f2023-03-29 15:53:31 -070027 struct i2c_msg * msgs;
Tao Baod7db5942015-01-28 10:07:51 -080028 __u32 nmsgs;
Ben Cheng655a7c02013-10-16 16:09:24 -070029};
Christopher Ferris05d08e92016-02-04 13:16:38 -080030#define I2C_RDWR_IOCTL_MAX_MSGS 42
Christopher Ferris05d08e92016-02-04 13:16:38 -080031#define I2C_RDRW_IOCTL_MAX_MSGS I2C_RDWR_IOCTL_MAX_MSGS
Nick Kralevicha67e4de2013-01-14 11:28:26 -080032#endif