qcom_common.h 1.01 KB
Newer Older
1
/* SPDX-License-Identifier: GPL-2.0 */
2
3
4
#ifndef __RPROC_QCOM_COMMON_H__
#define __RPROC_QCOM_COMMON_H__

5
6
7
#include <linux/remoteproc.h>
#include "remoteproc_internal.h"

8
9
10
11
12
13
14
15
struct qcom_rproc_glink {
	struct rproc_subdev subdev;

	struct device *dev;
	struct device_node *node;
	struct qcom_glink *edge;
};

16
17
18
19
20
21
22
struct qcom_rproc_subdev {
	struct rproc_subdev subdev;

	struct device *dev;
	struct device_node *node;
	struct qcom_smd_edge *edge;
};
23

24
25
26
27
28
29
struct qcom_rproc_ssr {
	struct rproc_subdev subdev;

	const char *name;
};

30
31
32
void qcom_add_glink_subdev(struct rproc *rproc, struct qcom_rproc_glink *glink);
void qcom_remove_glink_subdev(struct rproc *rproc, struct qcom_rproc_glink *glink);

33
34
35
void qcom_add_smd_subdev(struct rproc *rproc, struct qcom_rproc_subdev *smd);
void qcom_remove_smd_subdev(struct rproc *rproc, struct qcom_rproc_subdev *smd);

36
37
38
39
void qcom_add_ssr_subdev(struct rproc *rproc, struct qcom_rproc_ssr *ssr,
			 const char *ssr_name);
void qcom_remove_ssr_subdev(struct rproc *rproc, struct qcom_rproc_ssr *ssr);

40
#endif