blob: dc4e5250a678ac4bf9d88c4c4a85ce3fc1be5d8c [file] [log] [blame]
Christopher Ferrisaeddbcf2019-07-08 12:45:46 -07001/****************************************************************************
2 ****************************************************************************
3 ***
4 *** This header was automatically generated from a Linux kernel header
5 *** of the same name, to make information necessary for userspace to
6 *** call into the kernel available to libc. It contains only constants,
7 *** structures, and macros generated from the original header, and thus,
8 *** contains no copyrightable information.
9 ***
10 *** To edit the content of this header, modify the corresponding
11 *** source file (e.g. under external/kernel-headers/original/) then
12 *** run bionic/libc/kernel/tools/update_all.py
13 ***
14 *** Any manual change here will be lost the next time this script will
15 *** be run. You've been warned!
16 ***
17 ****************************************************************************
18 ****************************************************************************/
19#ifndef __INCLUDE_UAPI_SOUND_SOF_ABI_H__
20#define __INCLUDE_UAPI_SOUND_SOF_ABI_H__
Christopher Ferris7447a1c2022-10-04 18:24:44 -070021#include <linux/types.h>
Christopher Ferrisaeddbcf2019-07-08 12:45:46 -070022#define SOF_ABI_MAJOR 3
Christopher Ferris7447a1c2022-10-04 18:24:44 -070023#define SOF_ABI_MINOR 23
Christopher Ferris80ae69d2022-08-02 16:32:21 -070024#define SOF_ABI_PATCH 0
Christopher Ferrisaeddbcf2019-07-08 12:45:46 -070025#define SOF_ABI_MAJOR_SHIFT 24
26#define SOF_ABI_MAJOR_MASK 0xff
27#define SOF_ABI_MINOR_SHIFT 12
28#define SOF_ABI_MINOR_MASK 0xfff
29#define SOF_ABI_PATCH_SHIFT 0
30#define SOF_ABI_PATCH_MASK 0xfff
31#define SOF_ABI_VER(major,minor,patch) (((major) << SOF_ABI_MAJOR_SHIFT) | ((minor) << SOF_ABI_MINOR_SHIFT) | ((patch) << SOF_ABI_PATCH_SHIFT))
32#define SOF_ABI_VERSION_MAJOR(version) (((version) >> SOF_ABI_MAJOR_SHIFT) & SOF_ABI_MAJOR_MASK)
33#define SOF_ABI_VERSION_MINOR(version) (((version) >> SOF_ABI_MINOR_SHIFT) & SOF_ABI_MINOR_MASK)
34#define SOF_ABI_VERSION_PATCH(version) (((version) >> SOF_ABI_PATCH_SHIFT) & SOF_ABI_PATCH_MASK)
35#define SOF_ABI_VERSION_INCOMPATIBLE(sof_ver,client_ver) (SOF_ABI_VERSION_MAJOR((sof_ver)) != SOF_ABI_VERSION_MAJOR((client_ver)))
36#define SOF_ABI_VERSION SOF_ABI_VER(SOF_ABI_MAJOR, SOF_ABI_MINOR, SOF_ABI_PATCH)
37#define SOF_ABI_MAGIC 0x00464F53
38#endif