/* SPDX-License-Identifier: ((GPL-2.0 WITH Linux-syscall-note) OR BSD-3-Clause) */1/*2* This file is provided under a dual BSD/GPLv2 license. When using or3* redistributing this file, you may do so under either license.4*5* Copyright(c) 2018 Intel Corporation6*/78#ifndef __INCLUDE_UAPI_SOUND_SOF_USER_HEADER_H__9#define __INCLUDE_UAPI_SOUND_SOF_USER_HEADER_H__1011#include <linux/types.h>1213/**14* struct sof_abi_hdr - Header for all non IPC ABI data.15* @magic: Magic number for validation16* for IPC3 data: 0x00464F53 ('S', 'O', 'F', '\0')17* for IPC4 data: 0x34464F53 ('S', 'O', 'F', '4')18* @type: module specific parameter19* for IPC3: Component specific type20* for IPC4: parameter ID (param_id) of the data21* @size: The size in bytes of the data, excluding this struct22* @abi: SOF ABI version. The version is valid in scope of the 'magic', IPC3 and23* IPC4 ABI version numbers have no relationship.24* @reserved: Reserved for future use25* @data: Component data - opaque to core26*27* Identifies data type, size and ABI.28* Used by any bespoke component data structures or binary blobs.29*/30struct sof_abi_hdr {31__u32 magic;32__u32 type;33__u32 size;34__u32 abi;35__u32 reserved[4];36__u32 data[];37} __packed;3839#define SOF_MANIFEST_DATA_TYPE_NHLT 14041/**42* struct sof_manifest_tlv - SOF manifest TLV data43* @type: type of data44* @size: data size (not including the size of this struct)45* @data: payload data46*/47struct sof_manifest_tlv {48__le32 type;49__le32 size;50__u8 data[];51};5253/**54* struct sof_manifest - SOF topology manifest55* @abi_major: Major ABI version56* @abi_minor: Minor ABI version57* @abi_patch: ABI patch58* @count: count of tlv items59* @items: consecutive variable size tlv items60*/61struct sof_manifest {62__le16 abi_major;63__le16 abi_minor;64__le16 abi_patch;65__le16 count;66struct sof_manifest_tlv items[];67};6869#endif707172