| .. | .. |
|---|
| 1 | +/* SPDX-License-Identifier: GPL-2.0-only */ |
|---|
| 1 | 2 | /* |
|---|
| 2 | 3 | * Cannonlake SST DSP Support |
|---|
| 3 | 4 | * |
|---|
| 4 | 5 | * 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. |
|---|
| 14 | 6 | */ |
|---|
| 15 | 7 | |
|---|
| 16 | 8 | #ifndef __CNL_SST_DSP_H__ |
|---|
| 17 | 9 | #define __CNL_SST_DSP_H__ |
|---|
| 18 | 10 | |
|---|
| 19 | 11 | struct sst_dsp; |
|---|
| 20 | | -struct skl_sst; |
|---|
| 21 | 12 | struct sst_dsp_device; |
|---|
| 22 | 13 | struct sst_generic_ipc; |
|---|
| 23 | 14 | |
|---|
| .. | .. |
|---|
| 91 | 82 | #define CNL_ADSPCS_CPA_SHIFT 24 |
|---|
| 92 | 83 | #define CNL_ADSPCS_CPA(x) (x << CNL_ADSPCS_CPA_SHIFT) |
|---|
| 93 | 84 | |
|---|
| 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); |
|---|
| 96 | 87 | irqreturn_t cnl_dsp_sst_interrupt(int irq, void *dev_id); |
|---|
| 97 | 88 | void cnl_dsp_free(struct sst_dsp *dsp); |
|---|
| 98 | 89 | |
|---|
| .. | .. |
|---|
| 105 | 96 | |
|---|
| 106 | 97 | int cnl_sst_dsp_init(struct device *dev, void __iomem *mmio_base, int irq, |
|---|
| 107 | 98 | 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); |
|---|
| 111 | 102 | |
|---|
| 112 | 103 | #endif /*__CNL_SST_DSP_H__*/ |
|---|