Only the main IPC ops struct should be visible outside of IPC3 code to make sure that the code is correctly abstracted. Instead of keeping the ipc3-ops.h with only the high level ops struct declaration, put the ipc3_ops to sof-priv.h and move all other ops struct declaration into ipc3-priv.h New IPC implementation should follow this route: the main IPC ops should be declared in sof-priv.h and no other IPC version related header be used for generic code. Signed-off-by: Peter Ujfalusi <peter.ujfalusi@linux.intel.com> Reviewed-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com> Reviewed-by: Ranjani Sridharan <ranjani.sridharan@linux.intel.com> Reviewed-by: Bard Liao <yung-chuan.liao@linux.intel.com> Link: https://lore.kernel.org/r/20220504102831.10071-1-peter.ujfalusi@linux.intel.com Signed-off-by: Mark Brown <broonie@kernel.org>
28 lines
949 B
C
28 lines
949 B
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 Intel Corporation. All rights reserved.
|
|
*/
|
|
|
|
#ifndef __SOUND_SOC_SOF_IPC3_PRIV_H
|
|
#define __SOUND_SOC_SOF_IPC3_PRIV_H
|
|
|
|
#include "sof-priv.h"
|
|
|
|
/* IPC3 specific ops */
|
|
extern const struct sof_ipc_pcm_ops ipc3_pcm_ops;
|
|
extern const struct sof_ipc_tplg_ops ipc3_tplg_ops;
|
|
extern const struct sof_ipc_tplg_control_ops tplg_ipc3_control_ops;
|
|
extern const struct sof_ipc_fw_loader_ops ipc3_loader_ops;
|
|
|
|
/* helpers for fw_ready and ext_manifest parsing */
|
|
int sof_ipc3_get_ext_windows(struct snd_sof_dev *sdev,
|
|
const struct sof_ipc_ext_data_hdr *ext_hdr);
|
|
int sof_ipc3_get_cc_info(struct snd_sof_dev *sdev,
|
|
const struct sof_ipc_ext_data_hdr *ext_hdr);
|
|
int sof_ipc3_validate_fw_version(struct snd_sof_dev *sdev);
|
|
|
|
#endif
|