/* SPDX-License-Identifier: BSD-3-Clause * * Copyright(c) 2017 Intel Corporation. All rights reserved. * * Author: Liam Girdwood */ /* * Firmware file format . */ #ifndef __INCLUDE_FILE_FORMAT_H__ #define __INCLUDE_FILE_FORMAT_H__ #include #include #define SND_SOF_LOGS_SIG_SIZE 4 #define SND_SOF_LOGS_SIG "Logs" #define SND_SOF_UIDS_SIG_SIZE 4 #define SND_SOF_UIDS_SIG "Uids" /* * Logs dictionary file header. */ struct snd_sof_logs_header { unsigned char sig[SND_SOF_LOGS_SIG_SIZE]; /* "Logs" */ uint32_t base_address; /* address of log entries section */ uint32_t data_length; /* amount of bytes following this header */ uint32_t data_offset; /* offset to first entry in this file */ struct sof_ipc_fw_version version; }; struct snd_sof_uids_header { unsigned char sig[SND_SOF_UIDS_SIG_SIZE]; /* "Uids" */ uint32_t base_address; uint32_t data_length; uint32_t data_offset; }; #endif