linux/sound/soc/sof/amd/acp-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) 2021, 2023 Advanced Micro Devices, Inc.
//
// Authors: Ajit Kumar Pandey <[email protected]>

/*
 * Hardware interface for ACP DSP Firmware binaries loader
 */

#include <linux/firmware.h>
#include <linux/module.h>
#include <linux/pci.h>

#include "../ops.h"
#include "acp-dsp-offset.h"
#include "acp.h"

#define FW_BIN
#define FW_DATA_BIN
#define FW_SRAM_DATA_BIN

#define FW_BIN_PTE_OFFSET
#define FW_DATA_BIN_PTE_OFFSET

#define ACP_DSP_RUN

int acp_dsp_block_read(struct snd_sof_dev *sdev, enum snd_sof_fw_blk_type blk_type,
		       u32 offset, void *dest, size_t size)
{}
EXPORT_SYMBOL_NS();

int acp_dsp_block_write(struct snd_sof_dev *sdev, enum snd_sof_fw_blk_type blk_type,
			u32 offset, void *src, size_t size)
{}
EXPORT_SYMBOL_NS();

int acp_get_bar_index(struct snd_sof_dev *sdev, u32 type)
{}
EXPORT_SYMBOL_NS();

static void configure_pte_for_fw_loading(int type, int num_pages, struct acp_dev_data *adata)
{}

/* pre fw run operations */
int acp_dsp_pre_fw_run(struct snd_sof_dev *sdev)
{}
EXPORT_SYMBOL_NS();

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

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