| /* SPDX-License-Identifier: GPL-2.0+ */ |
| * Header file for the DSP IPC implementation |
| #include <linux/device.h> |
| #include <linux/mailbox_client.h> |
| #define DSP_MU_CHAN_NUM 4 |
| void (*handle_reply)(struct imx_dsp_ipc *ipc); |
| void (*handle_request)(struct imx_dsp_ipc *ipc); |
| /* Host <-> DSP communication uses 2 txdb and 2 rxdb channels */ |
| struct imx_dsp_chan chans[DSP_MU_CHAN_NUM]; |
| static inline void imx_dsp_set_data(struct imx_dsp_ipc *ipc, void *data) |
| ipc->private_data = data; |
| static inline void *imx_dsp_get_data(struct imx_dsp_ipc *ipc) |
| return ipc->private_data; |
| #if IS_ENABLED(CONFIG_IMX_DSP) |
| int imx_dsp_ring_doorbell(struct imx_dsp_ipc *dsp, unsigned int chan_idx); |
| static inline int imx_dsp_ring_doorbell(struct imx_dsp_ipc *ipc, |
| #endif /* _IMX_DSP_IPC_H */ |