Linux 4.16.11
[linux/fpc-iii.git] / drivers / remoteproc / qcom_common.h
blob728be9834d8b2196eac80865f261acd40ffc1b87
1 /* SPDX-License-Identifier: GPL-2.0 */
2 #ifndef __RPROC_QCOM_COMMON_H__
3 #define __RPROC_QCOM_COMMON_H__
5 #include <linux/remoteproc.h>
6 #include "remoteproc_internal.h"
8 struct qcom_rproc_glink {
9 struct rproc_subdev subdev;
11 struct device *dev;
12 struct device_node *node;
13 struct qcom_glink *edge;
16 struct qcom_rproc_subdev {
17 struct rproc_subdev subdev;
19 struct device *dev;
20 struct device_node *node;
21 struct qcom_smd_edge *edge;
24 struct qcom_rproc_ssr {
25 struct rproc_subdev subdev;
27 const char *name;
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);
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);
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);
40 #endif