aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorJean Delvare <khali@linux-fr.org>2007-05-01 17:26:29 -0400
committerJean Delvare <khali@hyperion.delvare>2007-05-01 17:26:29 -0400
commit209d27c3b1676c0497108f0642c51a08b98a7856 (patch)
tree434c063c4bd163ff242ae8a18bf65701bb6d39e6 /include
parent1ecac07abaca1a4084d0259d4a15b55188852a2e (diff)
i2c: Emulate SMBus block read over I2C
Let the I2C bus drivers emulate the SMBus Block Read and Block Process Call transactions if they wish. This requires to define a new message flag, which i2c-core will use to let the underlying I2C bus driver know that the first received byte will specify the length of the read message. Signed-off-by: Jean Delvare <khali@linux-fr.org>
Diffstat (limited to 'include')
-rw-r--r--include/linux/i2c.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/i2c.h b/include/linux/i2c.h
index 568dd1007b53..563c9651dd37 100644
--- a/include/linux/i2c.h
+++ b/include/linux/i2c.h
@@ -366,6 +366,7 @@ struct i2c_msg {
366#define I2C_M_REV_DIR_ADDR 0x2000 366#define I2C_M_REV_DIR_ADDR 0x2000
367#define I2C_M_IGNORE_NAK 0x1000 367#define I2C_M_IGNORE_NAK 0x1000
368#define I2C_M_NO_RD_ACK 0x0800 368#define I2C_M_NO_RD_ACK 0x0800
369#define I2C_M_RECV_LEN 0x0400 /* length will be first received byte */
369 __u16 len; /* msg length */ 370 __u16 len; /* msg length */
370 __u8 *buf; /* pointer to msg data */ 371 __u8 *buf; /* pointer to msg data */
371}; 372};