xref: /linux/drivers/remoteproc/qcom_common.h (revision e5c86679d5e864947a52fb31e45a425dea3e7fa9)
1 #ifndef __RPROC_QCOM_COMMON_H__
2 #define __RPROC_QCOM_COMMON_H__
3 
4 #include <linux/remoteproc.h>
5 #include "remoteproc_internal.h"
6 
7 struct qcom_rproc_subdev {
8 	struct rproc_subdev subdev;
9 
10 	struct device *dev;
11 	struct device_node *node;
12 	struct qcom_smd_edge *edge;
13 };
14 
15 struct resource_table *qcom_mdt_find_rsc_table(struct rproc *rproc,
16 					       const struct firmware *fw,
17 					       int *tablesz);
18 
19 void qcom_add_smd_subdev(struct rproc *rproc, struct qcom_rproc_subdev *smd);
20 void qcom_remove_smd_subdev(struct rproc *rproc, struct qcom_rproc_subdev *smd);
21 
22 #endif
23