mirror of
https://github.com/ziglang/zig.git
synced 2025-12-08 23:33:07 +00:00
* Add missing Linux headers. Closes #9837 * Update existing headers to latest Linux. * Consolidate headers that are the same for multiple Zig target CPU architectures. For example, Linux has only an x86 directory for both x86_64 and x86 CPU architectures. Now Zig only ships an x86 directory for Linux headers, and will emit the proper corresponding -isystem flags. * tools/update-linux-headers.zig is now available for upgrading to newer Linux headers, and the update process is now documented on the wiki.
29 lines
921 B
C
Vendored
29 lines
921 B
C
Vendored
/* 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 |