aboutsummaryrefslogtreecommitdiff
path: root/linux-headers/include/sound/sof/header.h
diff options
context:
space:
mode:
Diffstat (limited to 'linux-headers/include/sound/sof/header.h')
-rw-r--r--linux-headers/include/sound/sof/header.h29
1 files changed, 29 insertions, 0 deletions
diff --git a/linux-headers/include/sound/sof/header.h b/linux-headers/include/sound/sof/header.h
new file mode 100644
index 0000000..d623ee2
--- /dev/null
+++ b/linux-headers/include/sound/sof/header.h
@@ -0,0 +1,29 @@
+/* SPDX-License-Identifier: ((GPL-2.0 WITH Linux-syscall-note) OR BSD-3-Clause) */
+/*
+ * This file is provided under a dual BSD/GPLv2 license. When using or
+ * redistributing this file, you may do so under either license.
+ *
+ * Copyright(c) 2018 Intel Corporation. All rights reserved.
+ */
+
+#ifndef __INCLUDE_UAPI_SOUND_SOF_USER_HEADER_H__
+#define __INCLUDE_UAPI_SOUND_SOF_USER_HEADER_H__
+
+#include <linux/types.h>
+
+/*
+ * Header for all non IPC ABI data.
+ *
+ * Identifies data type, size and ABI.
+ * Used by any bespoke component data structures or binary blobs.
+ */
+struct sof_abi_hdr {
+ __u32 magic; /**< 'S', 'O', 'F', '\0' */
+ __u32 type; /**< component specific type */
+ __u32 size; /**< size in bytes of data excl. this struct */
+ __u32 abi; /**< SOF ABI version */
+ __u32 reserved[4]; /**< reserved for future use */
+ __u32 data[0]; /**< Component data - opaque to core */
+} __attribute__((packed));
+
+#endif