18c2ecf20Sopenharmony_ci/* SPDX-License-Identifier: ((GPL-2.0 WITH Linux-syscall-note) OR BSD-3-Clause) */
28c2ecf20Sopenharmony_ci/*
38c2ecf20Sopenharmony_ci * This file is provided under a dual BSD/GPLv2 license.  When using or
48c2ecf20Sopenharmony_ci * redistributing this file, you may do so under either license.
58c2ecf20Sopenharmony_ci *
68c2ecf20Sopenharmony_ci * Copyright(c) 2018 Intel Corporation. All rights reserved.
78c2ecf20Sopenharmony_ci */
88c2ecf20Sopenharmony_ci
98c2ecf20Sopenharmony_ci#ifndef __INCLUDE_UAPI_SOUND_SOF_USER_HEADER_H__
108c2ecf20Sopenharmony_ci#define __INCLUDE_UAPI_SOUND_SOF_USER_HEADER_H__
118c2ecf20Sopenharmony_ci
128c2ecf20Sopenharmony_ci#include <linux/types.h>
138c2ecf20Sopenharmony_ci
148c2ecf20Sopenharmony_ci/*
158c2ecf20Sopenharmony_ci * Header for all non IPC ABI data.
168c2ecf20Sopenharmony_ci *
178c2ecf20Sopenharmony_ci * Identifies data type, size and ABI.
188c2ecf20Sopenharmony_ci * Used by any bespoke component data structures or binary blobs.
198c2ecf20Sopenharmony_ci */
208c2ecf20Sopenharmony_cistruct sof_abi_hdr {
218c2ecf20Sopenharmony_ci	__u32 magic;		/**< 'S', 'O', 'F', '\0' */
228c2ecf20Sopenharmony_ci	__u32 type;		/**< component specific type */
238c2ecf20Sopenharmony_ci	__u32 size;		/**< size in bytes of data excl. this struct */
248c2ecf20Sopenharmony_ci	__u32 abi;		/**< SOF ABI version */
258c2ecf20Sopenharmony_ci	__u32 reserved[4];	/**< reserved for future use */
268c2ecf20Sopenharmony_ci	__u32 data[0];		/**< Component data - opaque to core */
278c2ecf20Sopenharmony_ci}  __packed;
288c2ecf20Sopenharmony_ci
298c2ecf20Sopenharmony_ci#endif
30