Bjorn Andersson | bde440e | 2017-01-27 02:28:32 -0800 | [diff] [blame] | 1 | #ifndef __RPROC_QCOM_COMMON_H__ |
| 2 | #define __RPROC_QCOM_COMMON_H__ |
| 3 | |
Bjorn Andersson | b90fcfc | 2017-01-27 07:04:54 -0800 | [diff] [blame] | 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 | }; |
Bjorn Andersson | bde440e | 2017-01-27 02:28:32 -0800 | [diff] [blame] | 14 | |
| 15 | struct resource_table *qcom_mdt_find_rsc_table(struct rproc *rproc, |
| 16 | const struct firmware *fw, |
| 17 | int *tablesz); |
| 18 | |
Bjorn Andersson | b90fcfc | 2017-01-27 07:04:54 -0800 | [diff] [blame] | 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 | |
Bjorn Andersson | bde440e | 2017-01-27 02:28:32 -0800 | [diff] [blame] | 22 | #endif |