summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorOleksandr Shulzhenko <oleksandr.shulzhenko.viktorovych@intel.com>2022-04-28 11:09:07 +0300
committerOleksandr Shulzhenko <oleksandr.shulzhenko.viktorovych@intel.com>2022-06-10 10:22:16 +0300
commit2c31bcfb671c1fbb98874908b41f633b83bbab14 (patch)
tree4692ca98eb0a54e3b1077eed8f762b2918b70c83 /include
parent51062a295e5ab5e8cf485dc78301ef2bdff6f8a6 (diff)
downloadlinux-2c31bcfb671c1fbb98874908b41f633b83bbab14.tar.xz
i3c: device: Add SETMWL/GETMWL and SETMRL/GETMRL support
Add the GETMRL/SETMRL and GETMWL/SETMWL CCC commands functions. The functions are needed to configure maximum read/write length for the specific I3C device. Signed-off-by: Oleksandr Shulzhenko <oleksandr.shulzhenko.viktorovych@intel.com>
Diffstat (limited to 'include')
-rw-r--r--include/linux/i3c/device.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/linux/i3c/device.h b/include/linux/i3c/device.h
index 1bc9f65dbb6a..dad3829be66c 100644
--- a/include/linux/i3c/device.h
+++ b/include/linux/i3c/device.h
@@ -342,6 +342,11 @@ int i3c_device_enable_ibi(struct i3c_device *dev);
int i3c_device_disable_ibi(struct i3c_device *dev);
int i3c_device_getstatus_ccc(struct i3c_device *dev, struct i3c_device_info *info);
+int i3c_device_setmrl_ccc(struct i3c_device *dev, struct i3c_device_info *info, __be16 read_len,
+ u8 ibi_len);
+int i3c_device_setmwl_ccc(struct i3c_device *dev, struct i3c_device_info *info, __be16 write_len);
+int i3c_device_getmrl_ccc(struct i3c_device *dev, struct i3c_device_info *info);
+int i3c_device_getmwl_ccc(struct i3c_device *dev, struct i3c_device_info *info);
struct i3c_target_read_setup {
void (*handler)(struct i3c_device *dev, const u8 *data, size_t len);