drm/nouveau: fix kernel-doc comments
[drm/drm-misc.git] / drivers / remoteproc / qcom_q6v5.h
blob5a859c41896e99d947e70e8d01c829d189cb0247
1 /* SPDX-License-Identifier: GPL-2.0 */
3 #ifndef __QCOM_Q6V5_H__
4 #define __QCOM_Q6V5_H__
6 #include <linux/kernel.h>
7 #include <linux/completion.h>
8 #include <linux/soc/qcom/qcom_aoss.h>
10 struct icc_path;
11 struct rproc;
12 struct qcom_smem_state;
13 struct qcom_sysmon;
15 struct qcom_q6v5 {
16 struct device *dev;
17 struct rproc *rproc;
19 struct qcom_smem_state *state;
20 struct qmp *qmp;
22 struct icc_path *path;
24 unsigned stop_bit;
26 int wdog_irq;
27 int fatal_irq;
28 int ready_irq;
29 int handover_irq;
30 int stop_irq;
32 bool handover_issued;
34 struct completion start_done;
35 struct completion stop_done;
37 int crash_reason;
39 bool running;
41 const char *load_state;
42 void (*handover)(struct qcom_q6v5 *q6v5);
45 int qcom_q6v5_init(struct qcom_q6v5 *q6v5, struct platform_device *pdev,
46 struct rproc *rproc, int crash_reason, const char *load_state,
47 void (*handover)(struct qcom_q6v5 *q6v5));
48 void qcom_q6v5_deinit(struct qcom_q6v5 *q6v5);
50 int qcom_q6v5_prepare(struct qcom_q6v5 *q6v5);
51 int qcom_q6v5_unprepare(struct qcom_q6v5 *q6v5);
52 int qcom_q6v5_request_stop(struct qcom_q6v5 *q6v5, struct qcom_sysmon *sysmon);
53 int qcom_q6v5_wait_for_start(struct qcom_q6v5 *q6v5, int timeout);
54 unsigned long qcom_q6v5_panic(struct qcom_q6v5 *q6v5);
56 #endif