blob: e6b4b7b3abf54122d6fa7197ce7a7c95430dde54 [file] [log] [blame]
Siddartha Mohanadoss603f7652017-01-26 15:59:41 -08001#ifndef _UAPI_MHI_H
2#define _UAPI_MHI_H
3
4#include <linux/types.h>
5#include <linux/ioctl.h>
6
7enum peripheral_ep_type {
8 DATA_EP_TYPE_RESERVED,
9 DATA_EP_TYPE_HSIC,
10 DATA_EP_TYPE_HSUSB,
11 DATA_EP_TYPE_PCIE,
12 DATA_EP_TYPE_EMBEDDED,
13 DATA_EP_TYPE_BAM_DMUX,
14};
15
16struct peripheral_ep_info {
17 enum peripheral_ep_type ep_type;
18 __u32 peripheral_iface_id;
19};
20
21struct ipa_ep_pair {
22 __u32 cons_pipe_num;
23 __u32 prod_pipe_num;
24};
25
26struct ep_info {
27 struct peripheral_ep_info ph_ep_info;
28 struct ipa_ep_pair ipa_ep_pair;
29
30};
31
32#define MHI_UCI_IOCTL_MAGIC 'm'
33
34#define MHI_UCI_EP_LOOKUP _IOR(MHI_UCI_IOCTL_MAGIC, 2, struct ep_info)
Siva Kumar Akkireddi859701c2018-10-03 17:35:30 +053035#define MHI_UCI_DPL_EP_LOOKUP _IOR(MHI_UCI_IOCTL_MAGIC, 3, struct ep_info)
Rama Krishna Phani A1b235ff2019-06-25 15:13:48 +053036#define MHI_UCI_CV2X_EP_LOOKUP _IOR(MHI_UCI_IOCTL_MAGIC, 4, struct ep_info)
Siddartha Mohanadoss603f7652017-01-26 15:59:41 -080037
38#endif /* _UAPI_MHI_H */
39