--- zzzz-none-000/linux-5.4.213/drivers/remoteproc/qcom_q6v5.h 2022-09-15 10:04:56.000000000 +0000 +++ alder-5690pro-762/linux-5.4.213/drivers/remoteproc/qcom_q6v5.h 2024-08-14 09:02:08.000000000 +0000 @@ -5,6 +5,7 @@ #include #include +#include struct rproc; struct qcom_smem_state; @@ -15,18 +16,25 @@ struct qcom_smem_state *state; unsigned stop_bit; + struct qcom_smem_state *shutdown_state; + unsigned shutdown_bit; + struct qcom_smem_state *spawn_state; + unsigned spawn_bit; int wdog_irq; int fatal_irq; int ready_irq; int handover_irq; int stop_irq; + int spawn_irq; bool handover_issued; struct completion start_done; struct completion stop_done; + struct completion spawn_done; + int remote_id; int crash_reason; bool running; @@ -35,12 +43,19 @@ }; int qcom_q6v5_init(struct qcom_q6v5 *q6v5, struct platform_device *pdev, - struct rproc *rproc, int crash_reason, + struct rproc *rproc, int remote_id, int crash_reason, void (*handover)(struct qcom_q6v5 *q6v5)); int qcom_q6v5_prepare(struct qcom_q6v5 *q6v5); int qcom_q6v5_unprepare(struct qcom_q6v5 *q6v5); int qcom_q6v5_request_stop(struct qcom_q6v5 *q6v5); +int qcom_q6v5_request_spawn(struct qcom_q6v5 *q6v5); int qcom_q6v5_wait_for_start(struct qcom_q6v5 *q6v5, int timeout); +void qcom_q6v5_panic_handler(struct qcom_q6v5 *q6v5); + +irqreturn_t q6v5_fatal_interrupt(int irq, void *data); +irqreturn_t q6v5_ready_interrupt(int irq, void *data); +irqreturn_t q6v5_stop_interrupt(int irq, void *data); +irqreturn_t q6v5_spawn_interrupt(int irq, void *data); #endif