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