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