122851890Sopenharmony_ci/**************************************************************************** 222851890Sopenharmony_ci **************************************************************************** 322851890Sopenharmony_ci *** 422851890Sopenharmony_ci *** This header was automatically generated from a Linux kernel header 522851890Sopenharmony_ci *** of the same name, to make information necessary for userspace to 622851890Sopenharmony_ci *** call into the kernel available to libc. It contains only constants, 722851890Sopenharmony_ci *** structures, and macros generated from the original header, and thus, 822851890Sopenharmony_ci *** contains no copyrightable information. 922851890Sopenharmony_ci *** 1022851890Sopenharmony_ci *** To edit the content of this header, modify the corresponding 1122851890Sopenharmony_ci *** source file (e.g. under external/kernel-headers/original/) then 1222851890Sopenharmony_ci *** run bionic/libc/kernel/tools/update_all.py 1322851890Sopenharmony_ci *** 1422851890Sopenharmony_ci *** Any manual change here will be lost the next time this script will 1522851890Sopenharmony_ci *** be run. You've been warned! 1622851890Sopenharmony_ci *** 1722851890Sopenharmony_ci **************************************************************************** 1822851890Sopenharmony_ci ****************************************************************************/ 1922851890Sopenharmony_ci#ifndef __INCLUDE_UAPI_SOUND_SOF_ABI_H__ 2022851890Sopenharmony_ci#define __INCLUDE_UAPI_SOUND_SOF_ABI_H__ 2122851890Sopenharmony_ci#define SOF_ABI_MAJOR 3 2222851890Sopenharmony_ci#define SOF_ABI_MINOR 17 2322851890Sopenharmony_ci#define SOF_ABI_PATCH 0 2422851890Sopenharmony_ci#define SOF_ABI_MAJOR_SHIFT 24 2522851890Sopenharmony_ci#define SOF_ABI_MAJOR_MASK 0xff 2622851890Sopenharmony_ci#define SOF_ABI_MINOR_SHIFT 12 2722851890Sopenharmony_ci#define SOF_ABI_MINOR_MASK 0xfff 2822851890Sopenharmony_ci#define SOF_ABI_PATCH_SHIFT 0 2922851890Sopenharmony_ci#define SOF_ABI_PATCH_MASK 0xfff 3022851890Sopenharmony_ci#define SOF_ABI_VER(major,minor,patch) (((major) << SOF_ABI_MAJOR_SHIFT) | ((minor) << SOF_ABI_MINOR_SHIFT) | ((patch) << SOF_ABI_PATCH_SHIFT)) 3122851890Sopenharmony_ci#define SOF_ABI_VERSION_MAJOR(version) (((version) >> SOF_ABI_MAJOR_SHIFT) & SOF_ABI_MAJOR_MASK) 3222851890Sopenharmony_ci#define SOF_ABI_VERSION_MINOR(version) (((version) >> SOF_ABI_MINOR_SHIFT) & SOF_ABI_MINOR_MASK) 3322851890Sopenharmony_ci#define SOF_ABI_VERSION_PATCH(version) (((version) >> SOF_ABI_PATCH_SHIFT) & SOF_ABI_PATCH_MASK) 3422851890Sopenharmony_ci#define SOF_ABI_VERSION_INCOMPATIBLE(sof_ver,client_ver) (SOF_ABI_VERSION_MAJOR((sof_ver)) != SOF_ABI_VERSION_MAJOR((client_ver))) 3522851890Sopenharmony_ci#define SOF_ABI_VERSION SOF_ABI_VER(SOF_ABI_MAJOR, SOF_ABI_MINOR, SOF_ABI_PATCH) 3622851890Sopenharmony_ci#define SOF_ABI_MAGIC 0x00464F53 3722851890Sopenharmony_ci#endif 38