diff options
author | Flynn xu <flynn.xu@nxp.com> | 2018-11-13 17:46:50 +0800 |
---|---|---|
committer | Jason Liu <jason.hui.liu@nxp.com> | 2019-02-12 10:35:13 +0800 |
commit | 5344f6c8efe9cabe72fbf6bd12fdb393a45a64c0 (patch) | |
tree | 1e58c852f99d80e9893423bb786a6e6b327eb7be /include/xen | |
parent | 4a5933513caa18f127ebcc9b0f9d72ebf59975b7 (diff) |
MLK-20342 i2c: xen-i2cback/front: Add i2c_smbus interface
Add smbus_xfer interface in xen-i2cback/front driver.
Reviewed-by: Peng Fan <peng.fan@nxp.com>
Signed-off-by: Flynn xu <flynn.xu@nxp.com>
Diffstat (limited to 'include/xen')
-rw-r--r-- | include/xen/interface/io/i2cif.h | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/include/xen/interface/io/i2cif.h b/include/xen/interface/io/i2cif.h index a965e8f830be..36e9024a1b04 100644 --- a/include/xen/interface/io/i2cif.h +++ b/include/xen/interface/io/i2cif.h @@ -32,7 +32,7 @@ #include <xen/interface/io/ring.h> #include <xen/interface/grant_table.h> -#define I2CIF_BUF_LEN 32 +#define I2CIF_BUF_LEN I2C_SMBUS_BLOCK_MAX + 2 #define I2CIF_MAX_MSG 2 #define I2CIF_M_RD 0x0001 /* read data, from slave to master */ @@ -76,6 +76,13 @@ struct i2cif_request { } msg[I2CIF_MAX_MSG]; int num_msg; __u8 write_buf[I2CIF_BUF_LEN]; + + bool is_smbus; + __u16 addr; + __u16 flags; + __u8 read_write; + __u8 command; + int protocol; }; struct i2cif_response { |