Skip to content

Commit 79ce4e4

Browse files
committed
ASoC: SOF: Add IPC4 private header
Add a struct sof_ipc4_fw_data to hold the firmware module data and manifest FW header offset. The FW reports data about the modules supported by the base FW in its manifest and the FW header offset is platform dependent information. This structure will be allocated when the ops are initialized for each platform and populated when the FW is loaded. Signed-off-by: Ranjani Sridharan <ranjani.sridharan@linux.intel.com>
1 parent 78665b9 commit 79ce4e4

1 file changed

Lines changed: 27 additions & 0 deletions

File tree

sound/soc/sof/ipc4-priv.h

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
/* SPDX-License-Identifier: (GPL-2.0-only OR BSD-3-Clause) */
2+
/*
3+
* This file is provided under a dual BSD/GPLv2 license. When using or
4+
* redistributing this file, you may do so under either license.
5+
*
6+
* Copyright(c) 2022 Intel Corporation. All rights reserved.
7+
*/
8+
9+
#ifndef __SOUND_SOC_SOF_IPC4_PRIV_H
10+
#define __SOUND_SOC_SOF_IPC4_PRIV_H
11+
12+
#include <linux/idr.h>
13+
#include "sof-priv.h"
14+
15+
/**
16+
* struct sof_ipc4_fw_data - IPC4-specific data
17+
* @manifest_fw_hdr_offset: FW header offset in the manifest
18+
* @num_fw_modules : Number of modules in base FW
19+
* @fw_modules: Array of base FW modules
20+
*/
21+
struct sof_ipc4_fw_data {
22+
u32 manifest_fw_hdr_offset;
23+
int num_fw_modules;
24+
void *fw_modules;
25+
};
26+
27+
#endif

0 commit comments

Comments
 (0)