Go to the documentation of this file.
3 #ifndef _LINUX_ETRAXI2C_H
4 #define _LINUX_ETRAXI2C_H
8 #define ETRAXI2C_IOCTYPE 44
16 #define I2C_WRITEARG(slave, reg, value) (((slave) << 16) | ((reg) << 8) | (value))
17 #define I2C_READARG(slave, reg) (((slave) << 16) | ((reg) << 8))
19 #define I2C_ARGSLAVE(arg) ((arg) >> 16)
20 #define I2C_ARGREG(arg) (((arg) >> 8) & 0xff)
21 #define I2C_ARGVALUE(arg) ((arg) & 0xff)
23 #define I2C_WRITEREG 0x1
24 #define I2C_READREG 0x2