blob: db5c826d5cd428e911e27e13a62a127783c12849 [file] [log] [blame]
Bjorn Anderssonbde440e2017-01-27 02:28:32 -08001#ifndef __RPROC_QCOM_COMMON_H__
2#define __RPROC_QCOM_COMMON_H__
3
Bjorn Anderssonb90fcfc2017-01-27 07:04:54 -08004#include <linux/remoteproc.h>
5#include "remoteproc_internal.h"
6
7struct 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};
Bjorn Anderssonbde440e2017-01-27 02:28:32 -080014
15struct resource_table *qcom_mdt_find_rsc_table(struct rproc *rproc,
16 const struct firmware *fw,
17 int *tablesz);
18
Bjorn Anderssonb90fcfc2017-01-27 07:04:54 -080019void qcom_add_smd_subdev(struct rproc *rproc, struct qcom_rproc_subdev *smd);
20void qcom_remove_smd_subdev(struct rproc *rproc, struct qcom_rproc_subdev *smd);
21
Bjorn Anderssonbde440e2017-01-27 02:28:32 -080022#endif