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>
10 struct qcom_smem_state
;
16 struct qcom_smem_state
*state
;
27 struct completion start_done
;
28 struct completion stop_done
;
34 void (*handover
)(struct qcom_q6v5
*q6v5
);
37 int qcom_q6v5_init(struct qcom_q6v5
*q6v5
, struct platform_device
*pdev
,
38 struct rproc
*rproc
, int crash_reason
,
39 void (*handover
)(struct qcom_q6v5
*q6v5
));
41 int qcom_q6v5_prepare(struct qcom_q6v5
*q6v5
);
42 int qcom_q6v5_unprepare(struct qcom_q6v5
*q6v5
);
43 int qcom_q6v5_request_stop(struct qcom_q6v5
*q6v5
);
44 int qcom_q6v5_wait_for_start(struct qcom_q6v5
*q6v5
, int timeout
);
45 unsigned long qcom_q6v5_panic(struct qcom_q6v5
*q6v5
);