sof/rimage/file_format.h

32 lines
748 B
C
Raw Normal View History

/* SPDX-License-Identifier: BSD-3-Clause
*
* Copyright(c) 2017 Intel Corporation. All rights reserved.
*
* Author: Liam Girdwood <liam.r.girdwood@linux.intel.com>
*/
/*
* Firmware file format .
*/
#ifndef __INCLUDE_FILE_FORMAT_H__
#define __INCLUDE_FILE_FORMAT_H__
#include <ipc/info.h>
#include <kernel/fw.h>
#define SND_SOF_LOGS_SIG_SIZE 4
#define SND_SOF_LOGS_SIG "Logs"
/*
* 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;
};
#endif