Edit File by line
/home/barbar84/public_h.../wp-conte.../plugins/sujqvwi/ShExBy/shex_roo.../usr/include/sound/sof
File: header.h
/* SPDX-License-Identifier: ((GPL-2.0 WITH Linux-syscall-note) OR BSD-3-Clause) */
[0] Fix | Delete
/*
[1] Fix | Delete
* This file is provided under a dual BSD/GPLv2 license. When using or
[2] Fix | Delete
* redistributing this file, you may do so under either license.
[3] Fix | Delete
*
[4] Fix | Delete
* Copyright(c) 2018 Intel Corporation. All rights reserved.
[5] Fix | Delete
*/
[6] Fix | Delete
[7] Fix | Delete
#ifndef __INCLUDE_UAPI_SOUND_SOF_USER_HEADER_H__
[8] Fix | Delete
#define __INCLUDE_UAPI_SOUND_SOF_USER_HEADER_H__
[9] Fix | Delete
[10] Fix | Delete
#include <linux/types.h>
[11] Fix | Delete
[12] Fix | Delete
/**
[13] Fix | Delete
* struct sof_abi_hdr - Header for all non IPC ABI data.
[14] Fix | Delete
* @magic: Magic number for validation
[15] Fix | Delete
* for IPC3 data: 0x00464F53 ('S', 'O', 'F', '\0')
[16] Fix | Delete
* for IPC4 data: 0x34464F53 ('S', 'O', 'F', '4')
[17] Fix | Delete
* @type: module specific parameter
[18] Fix | Delete
* for IPC3: Component specific type
[19] Fix | Delete
* for IPC4: parameter ID (param_id) of the data
[20] Fix | Delete
* @size: The size in bytes of the data, excluding this struct
[21] Fix | Delete
* @abi: SOF ABI version. The version is valid in scope of the 'magic', IPC3 and
[22] Fix | Delete
* IPC4 ABI version numbers have no relationship.
[23] Fix | Delete
* @reserved: Reserved for future use
[24] Fix | Delete
* @data: Component data - opaque to core
[25] Fix | Delete
*
[26] Fix | Delete
* Identifies data type, size and ABI.
[27] Fix | Delete
* Used by any bespoke component data structures or binary blobs.
[28] Fix | Delete
*/
[29] Fix | Delete
struct sof_abi_hdr {
[30] Fix | Delete
__u32 magic;
[31] Fix | Delete
__u32 type;
[32] Fix | Delete
__u32 size;
[33] Fix | Delete
__u32 abi;
[34] Fix | Delete
__u32 reserved[4];
[35] Fix | Delete
__u32 data[0];
[36] Fix | Delete
} __attribute__((packed));
[37] Fix | Delete
[38] Fix | Delete
#define SOF_MANIFEST_DATA_TYPE_NHLT 1
[39] Fix | Delete
[40] Fix | Delete
/**
[41] Fix | Delete
* struct sof_manifest_tlv - SOF manifest TLV data
[42] Fix | Delete
* @type: type of data
[43] Fix | Delete
* @size: data size (not including the size of this struct)
[44] Fix | Delete
* @data: payload data
[45] Fix | Delete
*/
[46] Fix | Delete
struct sof_manifest_tlv {
[47] Fix | Delete
__le32 type;
[48] Fix | Delete
__le32 size;
[49] Fix | Delete
__u8 data[];
[50] Fix | Delete
};
[51] Fix | Delete
[52] Fix | Delete
/**
[53] Fix | Delete
* struct sof_manifest - SOF topology manifest
[54] Fix | Delete
* @abi_major: Major ABI version
[55] Fix | Delete
* @abi_minor: Minor ABI version
[56] Fix | Delete
* @abi_patch: ABI patch
[57] Fix | Delete
* @count: count of tlv items
[58] Fix | Delete
* @items: consecutive variable size tlv items
[59] Fix | Delete
*/
[60] Fix | Delete
struct sof_manifest {
[61] Fix | Delete
__le16 abi_major;
[62] Fix | Delete
__le16 abi_minor;
[63] Fix | Delete
__le16 abi_patch;
[64] Fix | Delete
__le16 count;
[65] Fix | Delete
struct sof_manifest_tlv items[];
[66] Fix | Delete
};
[67] Fix | Delete
[68] Fix | Delete
#endif
[69] Fix | Delete
[70] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function