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