Bjorn Andersson | bde440e | 2017-01-27 02:28:32 -0800 | [diff] [blame] | 1 | #ifndef __RPROC_QCOM_COMMON_H__ |
| 2 | #define __RPROC_QCOM_COMMON_H__ |
| 3 | |
Bjorn Andersson | b90fcfc | 2017-01-27 07:04:54 -0800 | [diff] [blame] | 4 | #include <linux/remoteproc.h> |
| 5 | #include "remoteproc_internal.h" |
| 6 | |
Bjorn Andersson | eea0702 | 2017-08-29 16:13:35 -0700 | [diff] [blame] | 7 | struct qcom_rproc_glink { |
| 8 | struct rproc_subdev subdev; |
| 9 | |
| 10 | struct device *dev; |
| 11 | struct device_node *node; |
| 12 | struct qcom_glink *edge; |
| 13 | }; |
| 14 | |
Bjorn Andersson | b90fcfc | 2017-01-27 07:04:54 -0800 | [diff] [blame] | 15 | struct qcom_rproc_subdev { |
| 16 | struct rproc_subdev subdev; |
| 17 | |
| 18 | struct device *dev; |
| 19 | struct device_node *node; |
| 20 | struct qcom_smd_edge *edge; |
| 21 | }; |
Bjorn Andersson | bde440e | 2017-01-27 02:28:32 -0800 | [diff] [blame] | 22 | |
Bjorn Andersson | 1e140df | 2017-07-24 22:56:43 -0700 | [diff] [blame] | 23 | struct qcom_rproc_ssr { |
| 24 | struct rproc_subdev subdev; |
| 25 | |
| 26 | const char *name; |
| 27 | }; |
| 28 | |
Bjorn Andersson | bde440e | 2017-01-27 02:28:32 -0800 | [diff] [blame] | 29 | struct resource_table *qcom_mdt_find_rsc_table(struct rproc *rproc, |
| 30 | const struct firmware *fw, |
| 31 | int *tablesz); |
| 32 | |
Bjorn Andersson | eea0702 | 2017-08-29 16:13:35 -0700 | [diff] [blame] | 33 | void qcom_add_glink_subdev(struct rproc *rproc, struct qcom_rproc_glink *glink); |
| 34 | void qcom_remove_glink_subdev(struct rproc *rproc, struct qcom_rproc_glink *glink); |
| 35 | |
Bjorn Andersson | b90fcfc | 2017-01-27 07:04:54 -0800 | [diff] [blame] | 36 | void qcom_add_smd_subdev(struct rproc *rproc, struct qcom_rproc_subdev *smd); |
| 37 | void qcom_remove_smd_subdev(struct rproc *rproc, struct qcom_rproc_subdev *smd); |
| 38 | |
Bjorn Andersson | 1e140df | 2017-07-24 22:56:43 -0700 | [diff] [blame] | 39 | void qcom_add_ssr_subdev(struct rproc *rproc, struct qcom_rproc_ssr *ssr, |
| 40 | const char *ssr_name); |
| 41 | void qcom_remove_ssr_subdev(struct rproc *rproc, struct qcom_rproc_ssr *ssr); |
| 42 | |
Bjorn Andersson | bde440e | 2017-01-27 02:28:32 -0800 | [diff] [blame] | 43 | #endif |