hc
2023-12-08 01573e231f18eb2d99162747186f59511f56b64d
kernel/sound/soc/intel/skylake/cnl-sst-dsp.h
....@@ -1,23 +1,14 @@
1
+/* SPDX-License-Identifier: GPL-2.0-only */
12 /*
23 * Cannonlake SST DSP Support
34 *
45 * Copyright (C) 2016-17, Intel Corporation.
5
- *
6
- * This program is free software; you can redistribute it and/or modify
7
- * it under the terms of the GNU General Public License as version 2, as
8
- * published by the Free Software Foundation.
9
- *
10
- * This program is distributed in the hope that it will be useful, but
11
- * WITHOUT ANY WARRANTY; without even the implied warranty of
12
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13
- * General Public License for more details.
146 */
157
168 #ifndef __CNL_SST_DSP_H__
179 #define __CNL_SST_DSP_H__
1810
1911 struct sst_dsp;
20
-struct skl_sst;
2112 struct sst_dsp_device;
2213 struct sst_generic_ipc;
2314
....@@ -91,8 +82,8 @@
9182 #define CNL_ADSPCS_CPA_SHIFT 24
9283 #define CNL_ADSPCS_CPA(x) (x << CNL_ADSPCS_CPA_SHIFT)
9384
94
-int cnl_dsp_enable_core(struct sst_dsp *ctx, unsigned int core);
95
-int cnl_dsp_disable_core(struct sst_dsp *ctx, unsigned int core);
85
+int cnl_dsp_enable_core(struct sst_dsp *ctx, unsigned int core_mask);
86
+int cnl_dsp_disable_core(struct sst_dsp *ctx, unsigned int core_mask);
9687 irqreturn_t cnl_dsp_sst_interrupt(int irq, void *dev_id);
9788 void cnl_dsp_free(struct sst_dsp *dsp);
9889
....@@ -105,8 +96,8 @@
10596
10697 int cnl_sst_dsp_init(struct device *dev, void __iomem *mmio_base, int irq,
10798 const char *fw_name, struct skl_dsp_loader_ops dsp_ops,
108
- struct skl_sst **dsp);
109
-int cnl_sst_init_fw(struct device *dev, struct skl_sst *ctx);
110
-void cnl_sst_dsp_cleanup(struct device *dev, struct skl_sst *ctx);
99
+ struct skl_dev **dsp);
100
+int cnl_sst_init_fw(struct device *dev, struct skl_dev *skl);
101
+void cnl_sst_dsp_cleanup(struct device *dev, struct skl_dev *skl);
111102
112103 #endif /*__CNL_SST_DSP_H__*/