xref: /OK3568_Linux_fs/kernel/include/uapi/sound/sof/header.h (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1*4882a593Smuzhiyun /* SPDX-License-Identifier: ((GPL-2.0 WITH Linux-syscall-note) OR BSD-3-Clause) */
2*4882a593Smuzhiyun /*
3*4882a593Smuzhiyun  * This file is provided under a dual BSD/GPLv2 license.  When using or
4*4882a593Smuzhiyun  * redistributing this file, you may do so under either license.
5*4882a593Smuzhiyun  *
6*4882a593Smuzhiyun  * Copyright(c) 2018 Intel Corporation. All rights reserved.
7*4882a593Smuzhiyun  */
8*4882a593Smuzhiyun 
9*4882a593Smuzhiyun #ifndef __INCLUDE_UAPI_SOUND_SOF_USER_HEADER_H__
10*4882a593Smuzhiyun #define __INCLUDE_UAPI_SOUND_SOF_USER_HEADER_H__
11*4882a593Smuzhiyun 
12*4882a593Smuzhiyun #include <linux/types.h>
13*4882a593Smuzhiyun 
14*4882a593Smuzhiyun /*
15*4882a593Smuzhiyun  * Header for all non IPC ABI data.
16*4882a593Smuzhiyun  *
17*4882a593Smuzhiyun  * Identifies data type, size and ABI.
18*4882a593Smuzhiyun  * Used by any bespoke component data structures or binary blobs.
19*4882a593Smuzhiyun  */
20*4882a593Smuzhiyun struct sof_abi_hdr {
21*4882a593Smuzhiyun 	__u32 magic;		/**< 'S', 'O', 'F', '\0' */
22*4882a593Smuzhiyun 	__u32 type;		/**< component specific type */
23*4882a593Smuzhiyun 	__u32 size;		/**< size in bytes of data excl. this struct */
24*4882a593Smuzhiyun 	__u32 abi;		/**< SOF ABI version */
25*4882a593Smuzhiyun 	__u32 reserved[4];	/**< reserved for future use */
26*4882a593Smuzhiyun 	__u32 data[0];		/**< Component data - opaque to core */
27*4882a593Smuzhiyun }  __packed;
28*4882a593Smuzhiyun 
29*4882a593Smuzhiyun #endif
30