/* i2c_mem.h * * author marco corvi * date june 2003 * * i2c memory adapter/algorithm and driver/client header * * credits: i2c_XXX in the kernel 2.4.X * http://secure/netroedge.com/~lm78/docs.html */ #ifndef I2C_MEM_H #define I2C_MEM_H #define I2C_MEM_VERSION 0x0001 /* see include/linux/i2c-id.h */ #define I2C_ALGO_MEM 0x200000 #define I2C_DRV_MEM 0xf000 /* test id */ #define I2C_HW_MEM 0x20 #define I2C_MEM_CDATA_SIZE 16 /* see include/linux/i2c.h */ #define I2C_FUNC_MEM_READ_BYTE 0x00000100 #define I2C_FUNC_MEM_WRITE_BYTE 0x00000200 #define I2C_FUNC_MEM ( I2C_FUNC_MEM_READ_BYTE | I2C_FUNC_MEM_WRITE_BYTE ) #endif /* I2C_MEM_H */