Server IP : 128.199.20.84 / Your IP : 172.69.17.105 Web Server : Apache/2.4.41 (Ubuntu) System : Linux competent-maruti 5.4.0-128-generic #144-Ubuntu SMP Tue Sep 20 11:00:04 UTC 2022 x86_64 User : www-data ( 33) PHP Version : 8.0.20 Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,pcntl_unshare, MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF Directory (0755) : /usr/src/linux-headers-5.4.0-128/include/linux/firmware/imx/ |
[ Home ] | [ C0mmand ] | [ Upload File ] |
---|
/* SPDX-License-Identifier: GPL-2.0+ */ /* * Copyright 2019 NXP * * Header file for the DSP IPC implementation */ #ifndef _IMX_DSP_IPC_H #define _IMX_DSP_IPC_H #include <linux/device.h> #include <linux/types.h> #include <linux/mailbox_client.h> #define DSP_MU_CHAN_NUM 4 struct imx_dsp_chan { struct imx_dsp_ipc *ipc; struct mbox_client cl; struct mbox_chan *ch; char *name; int idx; }; struct imx_dsp_ops { void (*handle_reply)(struct imx_dsp_ipc *ipc); void (*handle_request)(struct imx_dsp_ipc *ipc); }; struct imx_dsp_ipc { /* Host <-> DSP communication uses 2 txdb and 2 rxdb channels */ struct imx_dsp_chan chans[DSP_MU_CHAN_NUM]; struct device *dev; struct imx_dsp_ops *ops; void *private_data; }; static inline void imx_dsp_set_data(struct imx_dsp_ipc *ipc, void *data) { if (!ipc) return; ipc->private_data = data; } static inline void *imx_dsp_get_data(struct imx_dsp_ipc *ipc) { if (!ipc) return NULL; return ipc->private_data; } #if IS_ENABLED(CONFIG_IMX_DSP) int imx_dsp_ring_doorbell(struct imx_dsp_ipc *dsp, unsigned int chan_idx); #else static inline int imx_dsp_ring_doorbell(struct imx_dsp_ipc *ipc, unsigned int chan_idx) { return -ENOTSUPP; } #endif #endif /* _IMX_DSP_IPC_H */