summaryrefslogtreecommitdiff
path: root/include/linux
diff options
context:
space:
mode:
authorOleksandr Shulzhenko <oleksandr.shulzhenko.viktorovych@intel.com>2022-01-27 13:24:40 +0300
committeroshulzhenko <96782923+oshulzhenko@users.noreply.github.com>2022-02-07 17:14:34 +0300
commit36e4e3fa141e0975347104573a024f1160377808 (patch)
tree0960f9a8f42218e67d2b154ef3a1da42c9d34c77 /include/linux
parentb7504577edef85b5a7b2120d7ce81c8a933163f3 (diff)
downloadlinux-36e4e3fa141e0975347104573a024f1160377808.tar.xz
i3c: master: Implement CCC GETSTATUS function
Get Device Status (GETSTATUS) is a Direct CCC that is sent by I3C controller to I3C Target device to read I3C Target status. Signed-off-by: Oleksandr Shulzhenko <oleksandr.shulzhenko.viktorovych@intel.com>
Diffstat (limited to 'include/linux')
-rw-r--r--include/linux/i3c/device.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/linux/i3c/device.h b/include/linux/i3c/device.h
index 8242e13e7b0b..c31624535fbf 100644
--- a/include/linux/i3c/device.h
+++ b/include/linux/i3c/device.h
@@ -128,6 +128,7 @@ struct i3c_device_info {
u32 max_read_turnaround;
u16 max_read_len;
u16 max_write_len;
+ __be16 status;
};
/*
@@ -332,4 +333,6 @@ void i3c_device_free_ibi(struct i3c_device *dev);
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);
+
#endif /* I3C_DEV_H */