linux/sound/soc/sof/intel/hda-loader.c

// SPDX-License-Identifier: (GPL-2.0-only OR BSD-3-Clause)
//
// This file is provided under a dual BSD/GPLv2 license.  When using or
// redistributing this file, you may do so under either license.
//
// Copyright(c) 2018 Intel Corporation
//
// Authors: Liam Girdwood <[email protected]>
//	    Ranjani Sridharan <[email protected]>
//	    Rander Wang <[email protected]>
//          Keyon Jie <[email protected]>
//

/*
 * Hardware interface for HDA DSP code loader
 */

#include <linux/firmware.h>
#include <sound/hdaudio_ext.h>
#include <sound/hda_register.h>
#include <sound/sof.h>
#include <sound/sof/ipc4/header.h>
#include "ext_manifest.h"
#include "../ipc4-priv.h"
#include "../ops.h"
#include "../sof-priv.h"
#include "hda.h"

static void hda_ssp_set_cbp_cfp(struct snd_sof_dev *sdev)
{}

struct hdac_ext_stream *hda_cl_prepare(struct device *dev, unsigned int format,
				       unsigned int size, struct snd_dma_buffer *dmab,
				       int direction, bool is_iccmax)
{}
EXPORT_SYMBOL_NS();

/*
 * first boot sequence has some extra steps.
 * power on all host managed cores and only unstall/run the boot core to boot the
 * DSP then turn off all non boot cores (if any) is powered on.
 */
int cl_dsp_init(struct snd_sof_dev *sdev, int stream_tag, bool imr_boot)
{}
EXPORT_SYMBOL_NS();

int hda_cl_trigger(struct device *dev, struct hdac_ext_stream *hext_stream, int cmd)
{}
EXPORT_SYMBOL_NS();

int hda_cl_cleanup(struct device *dev, struct snd_dma_buffer *dmab,
		   struct hdac_ext_stream *hext_stream)
{}
EXPORT_SYMBOL_NS();

#define HDA_CL_DMA_IOC_TIMEOUT_MS

int hda_cl_copy_fw(struct snd_sof_dev *sdev, struct hdac_ext_stream *hext_stream)
{}

int hda_dsp_cl_boot_firmware_iccmax(struct snd_sof_dev *sdev)
{}
EXPORT_SYMBOL_NS();

static int hda_dsp_boot_imr(struct snd_sof_dev *sdev)
{}

int hda_dsp_cl_boot_firmware(struct snd_sof_dev *sdev)
{}
EXPORT_SYMBOL_NS();

int hda_dsp_ipc4_load_library(struct snd_sof_dev *sdev,
			      struct sof_ipc4_fw_library *fw_lib, bool reload)
{}
EXPORT_SYMBOL_NS();

int hda_dsp_ext_man_get_cavs_config_data(struct snd_sof_dev *sdev,
					 const struct sof_ext_man_elem_header *hdr)
{}
EXPORT_SYMBOL_NS();