Siddartha Mohanadoss | 603f765 | 2017-01-26 15:59:41 -0800 | [diff] [blame] | 1 | #ifndef _UAPI_MHI_H |
| 2 | #define _UAPI_MHI_H |
| 3 | |
| 4 | #include <linux/types.h> |
| 5 | #include <linux/ioctl.h> |
| 6 | |
| 7 | enum 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 | |
| 16 | struct peripheral_ep_info { |
| 17 | enum peripheral_ep_type ep_type; |
| 18 | __u32 peripheral_iface_id; |
| 19 | }; |
| 20 | |
| 21 | struct ipa_ep_pair { |
| 22 | __u32 cons_pipe_num; |
| 23 | __u32 prod_pipe_num; |
| 24 | }; |
| 25 | |
| 26 | struct 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 Akkireddi | 859701c | 2018-10-03 17:35:30 +0530 | [diff] [blame] | 35 | #define MHI_UCI_DPL_EP_LOOKUP _IOR(MHI_UCI_IOCTL_MAGIC, 3, struct ep_info) |
Rama Krishna Phani A | 1b235ff | 2019-06-25 15:13:48 +0530 | [diff] [blame^] | 36 | #define MHI_UCI_CV2X_EP_LOOKUP _IOR(MHI_UCI_IOCTL_MAGIC, 4, struct ep_info) |
Siddartha Mohanadoss | 603f765 | 2017-01-26 15:59:41 -0800 | [diff] [blame] | 37 | |
| 38 | #endif /* _UAPI_MHI_H */ |
| 39 | |