1 #ifndef __RPROC_QCOM_COMMON_H__
2 #define __RPROC_QCOM_COMMON_H__
4 #include <linux/remoteproc.h>
5 #include "remoteproc_internal.h"
7 struct qcom_rproc_glink
{
8 struct rproc_subdev subdev
;
11 struct device_node
*node
;
12 struct qcom_glink
*edge
;
15 struct qcom_rproc_subdev
{
16 struct rproc_subdev subdev
;
19 struct device_node
*node
;
20 struct qcom_smd_edge
*edge
;
23 struct qcom_rproc_ssr
{
24 struct rproc_subdev subdev
;
29 struct resource_table
*qcom_mdt_find_rsc_table(struct rproc
*rproc
,
30 const struct firmware
*fw
,
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
);
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
);
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
);