mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-12 05:48:40 +00:00
![Ranjani Sridharan](/assets/img/avatar_default.png)
Define and add the FW loader ops for IPC4. Also, introduce a new structure, struct sof_ipc4_private_data that will be used to define some IPC4-sepcific data. Co-developed-by: Rander Wang <rander.wang@intel.com> Signed-off-by: Rander Wang <rander.wang@intel.com> Co-developed-by: Bard Liao <yung-chuan.liao@linux.intel.com> Signed-off-by: Bard Liao <yung-chuan.liao@linux.intel.com> Co-developed-by: Peter Ujfalusi <peter.ujfalusi@linux.intel.com> Signed-off-by: Peter Ujfalusi <peter.ujfalusi@linux.intel.com> Reviewed-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com> Signed-off-by: Ranjani Sridharan <ranjani.sridharan@linux.intel.com> Link: https://lore.kernel.org/r/20220511171648.1622993-5-ranjani.sridharan@linux.intel.com Signed-off-by: Mark Brown <broonie@kernel.org>
44 lines
1.1 KiB
C
44 lines
1.1 KiB
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) 2022 Intel Corporation. All rights reserved.
|
|
*/
|
|
|
|
#ifndef __SOUND_SOC_SOF_IPC4_PRIV_H
|
|
#define __SOUND_SOC_SOF_IPC4_PRIV_H
|
|
|
|
#include <linux/idr.h>
|
|
#include <sound/sof/ext_manifest4.h>
|
|
#include "sof-priv.h"
|
|
|
|
/**
|
|
* struct sof_ipc4_fw_data - IPC4-specific data
|
|
* @manifest_fw_hdr_offset: FW header offset in the manifest
|
|
* @num_fw_modules : Number of modules in base FW
|
|
* @fw_modules: Array of base FW modules
|
|
*/
|
|
struct sof_ipc4_fw_data {
|
|
u32 manifest_fw_hdr_offset;
|
|
int num_fw_modules;
|
|
void *fw_modules;
|
|
};
|
|
|
|
/**
|
|
* struct sof_ipc4_fw_module - IPC4 module info
|
|
* @sof_man4_module : Module info
|
|
* @m_ida: Module instance identifier
|
|
* @bss_size: Module object size
|
|
* @private: Module private data
|
|
*/
|
|
struct sof_ipc4_fw_module {
|
|
struct sof_man4_module man4_module_entry;
|
|
struct ida m_ida;
|
|
u32 bss_size;
|
|
void *private;
|
|
};
|
|
|
|
extern const struct sof_ipc_fw_loader_ops ipc4_loader_ops;
|
|
|
|
#endif
|