Skip to content

Commit e8b7cab

Browse files
ktrzcinxbroonie
authored andcommitted
ASoC: SOF: define struct with compiler name and version
Add compiler information structure sof_ipc_cc_version. Add new enum value in sof_ipc_ext_data for new structure. This struct will be used to show more information about firmware in host system. It will be helpful during debugging. Signed-off-by: Karol Trzcinski <karolx.trzcinski@linux.intel.com> Signed-off-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com> Link: https://lore.kernel.org/r/20191218002616.7652-3-pierre-louis.bossart@linux.intel.com Signed-off-by: Mark Brown <broonie@kernel.org>
1 parent 6ca5cec commit e8b7cab

1 file changed

Lines changed: 15 additions & 0 deletions

File tree

‎include/sound/sof/info.h‎

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@
3030
enum sof_ipc_ext_data {
3131
SOF_IPC_EXT_DMA_BUFFER = 0,
3232
SOF_IPC_EXT_WINDOW,
33+
SOF_IPC_EXT_CC_INFO,
3334
};
3435

3536
/* FW version - SOF_IPC_GLB_VERSION */
@@ -115,4 +116,18 @@ struct sof_ipc_window {
115116
struct sof_ipc_window_elem window[];
116117
} __packed;
117118

119+
struct sof_ipc_cc_version {
120+
struct sof_ipc_ext_data_hdr ext_hdr;
121+
uint32_t major;
122+
uint32_t minor;
123+
uint32_t micro;
124+
125+
/* reserved for future use */
126+
uint32_t reserved[4];
127+
128+
char name[16]; /* null terminated compiler name */
129+
char optim[4]; /* null terminated compiler -O flag value */
130+
char desc[]; /* null terminated compiler description */
131+
} __packed;
132+
118133
#endif

0 commit comments

Comments
 (0)