linux/sound/soc/intel/skylake/skl-sst-dsp.c

// SPDX-License-Identifier: GPL-2.0-only
/*
 * skl-sst-dsp.c - SKL SST library generic function
 *
 * Copyright (C) 2014-15, Intel Corporation.
 * Author:Rafal Redzimski <[email protected]>
 *	Jeeja KP <[email protected]>
 * ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
 */
#include <sound/pcm.h>

#include "../common/sst-dsp.h"
#include "../common/sst-ipc.h"
#include "../common/sst-dsp-priv.h"
#include "skl.h"

/* various timeout values */
#define SKL_DSP_PU_TO
#define SKL_DSP_PD_TO
#define SKL_DSP_RESET_TO

void skl_dsp_set_state_locked(struct sst_dsp *ctx, int state)
{}

/*
 * Initialize core power state and usage count. To be called after
 * successful first boot. Hence core 0 will be running and other cores
 * will be reset
 */
void skl_dsp_init_core_state(struct sst_dsp *ctx)
{}

/* Get the mask for all enabled cores */
unsigned int skl_dsp_get_enabled_cores(struct sst_dsp *ctx)
{}

static int
skl_dsp_core_set_reset_state(struct sst_dsp *ctx, unsigned int core_mask)
{}

int skl_dsp_core_unset_reset_state(
		struct sst_dsp *ctx, unsigned int core_mask)
{}

static bool
is_skl_dsp_core_enable(struct sst_dsp *ctx, unsigned int core_mask)
{}

static int skl_dsp_reset_core(struct sst_dsp *ctx, unsigned int core_mask)
{}

int skl_dsp_start_core(struct sst_dsp *ctx, unsigned int core_mask)
{}

int skl_dsp_core_power_up(struct sst_dsp *ctx, unsigned int core_mask)
{}

int skl_dsp_core_power_down(struct sst_dsp  *ctx, unsigned int core_mask)
{}

int skl_dsp_enable_core(struct sst_dsp  *ctx, unsigned int core_mask)
{}

int skl_dsp_disable_core(struct sst_dsp *ctx, unsigned int core_mask)
{}

int skl_dsp_boot(struct sst_dsp *ctx)
{}

irqreturn_t skl_dsp_sst_interrupt(int irq, void *dev_id)
{}
/*
 * skl_dsp_get_core/skl_dsp_put_core will be called inside DAPM context
 * within the dapm mutex. Hence no separate lock is used.
 */
int skl_dsp_get_core(struct sst_dsp *ctx, unsigned int core_id)
{}
EXPORT_SYMBOL_GPL();

int skl_dsp_put_core(struct sst_dsp *ctx, unsigned int core_id)
{}
EXPORT_SYMBOL_GPL();

int skl_dsp_wake(struct sst_dsp *ctx)
{}
EXPORT_SYMBOL_GPL();

int skl_dsp_sleep(struct sst_dsp *ctx)
{}
EXPORT_SYMBOL_GPL();

struct sst_dsp *skl_dsp_ctx_init(struct device *dev,
		struct sst_dsp_device *sst_dev, int irq)
{}

int skl_dsp_acquire_irq(struct sst_dsp *sst)
{}

void skl_dsp_free(struct sst_dsp *dsp)
{}
EXPORT_SYMBOL_GPL();

bool is_skl_dsp_running(struct sst_dsp *ctx)
{}
EXPORT_SYMBOL_GPL();