1 /* SPDX-License-Identifier: GPL-2.0-only */
3 * Intel Smart Sound Technology
5 * Copyright (C) 2013, Intel Corporation. All rights reserved.
8 #ifndef __SOUND_SOC_SST_DSP_PRIV_H
9 #define __SOUND_SOC_SST_DSP_PRIV_H
11 #include <linux/kernel.h>
12 #include <linux/types.h>
13 #include <linux/interrupt.h>
14 #include <linux/firmware.h>
16 #include "../skylake/skl-sst-dsp.h"
19 * DSP Operations exported by platform Audio DSP driver.
23 void (*write)(void __iomem *addr, u32 offset, u32 value);
24 u32 (*read)(void __iomem *addr, u32 offset);
27 irqreturn_t (*irq_handler)(int irq, void *context);
29 /* SST init and free */
30 int (*init)(struct sst_dsp *sst);
31 void (*free)(struct sst_dsp *sst);
35 * Audio DSP memory offsets and addresses.
47 * Audio DSP Mailbox configuration.
50 void __iomem *in_base;
51 void __iomem *out_base;
57 * Generic SST Shim Interface.
61 /* Shared for all platforms */
64 struct sst_dsp_device *sst_dev;
65 spinlock_t spinlock; /* IPC locking */
66 struct mutex mutex; /* DSP FW lock */
76 struct dentry *debugfs_root;
82 struct sst_mailbox mailbox;
84 /* SST FW files loaded and their modules */
85 struct list_head module_list;
91 /* To allocate CL dma buffers */
92 struct skl_dsp_loader_ops dsp_ops;
93 struct skl_dsp_fw_ops fw_ops;
95 struct skl_cl_dev cl_dev;
97 const struct firmware *fw;
98 struct snd_dma_buffer dmab;