Linux kernel mirror (for testing)
git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel
os
linux
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#include <linux/types.h>
13
14/*
15 * Header for all non IPC ABI data.
16 *
17 * Identifies data type, size and ABI.
18 * Used by any bespoke component data structures or binary blobs.
19 */
20struct sof_abi_hdr {
21 __u32 magic; /**< 'S', 'O', 'F', '\0' */
22 __u32 type; /**< component specific type */
23 __u32 size; /**< size in bytes of data excl. this struct */
24 __u32 abi; /**< SOF ABI version */
25 __u32 reserved[4]; /**< reserved for future use */
26 __u32 data[]; /**< Component data - opaque to core */
27} __packed;
28
29#define SOF_MANIFEST_DATA_TYPE_NHLT 1
30
31/**
32 * struct sof_manifest_tlv - SOF manifest TLV data
33 * @type: type of data
34 * @size: data size (not including the size of this struct)
35 * @data: payload data
36 */
37struct sof_manifest_tlv {
38 __le32 type;
39 __le32 size;
40 __u8 data[];
41};
42
43/**
44 * struct sof_manifest - SOF topology manifest
45 * @abi_major: Major ABI version
46 * @abi_minor: Minor ABI version
47 * @abi_patch: ABI patch
48 * @count: count of tlv items
49 * @items: consecutive variable size tlv items
50 */
51struct sof_manifest {
52 __le16 abi_major;
53 __le16 abi_minor;
54 __le16 abi_patch;
55 __le16 count;
56 struct sof_manifest_tlv items[];
57};
58
59#endif