diff options
author | orivej <orivej@yandex-team.ru> | 2022-02-10 16:45:01 +0300 |
---|---|---|
committer | Daniil Cherednik <dcherednik@yandex-team.ru> | 2022-02-10 16:45:01 +0300 |
commit | 2d37894b1b037cf24231090eda8589bbb44fb6fc (patch) | |
tree | be835aa92c6248212e705f25388ebafcf84bc7a1 /contrib/libs/linux-headers/sound/sof/abi.h | |
parent | 718c552901d703c502ccbefdfc3c9028d608b947 (diff) | |
download | ydb-2d37894b1b037cf24231090eda8589bbb44fb6fc.tar.gz |
Restoring authorship annotation for <orivej@yandex-team.ru>. Commit 2 of 2.
Diffstat (limited to 'contrib/libs/linux-headers/sound/sof/abi.h')
-rw-r--r-- | contrib/libs/linux-headers/sound/sof/abi.h | 124 |
1 files changed, 62 insertions, 62 deletions
diff --git a/contrib/libs/linux-headers/sound/sof/abi.h b/contrib/libs/linux-headers/sound/sof/abi.h index b0ee41451a..5995b79d6d 100644 --- a/contrib/libs/linux-headers/sound/sof/abi.h +++ b/contrib/libs/linux-headers/sound/sof/abi.h @@ -1,62 +1,62 @@ -/* 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. - */ - -/** - * SOF ABI versioning is based on Semantic Versioning where we have a given - * MAJOR.MINOR.PATCH version number. See https://semver.org/ - * - * Rules for incrementing or changing version :- - * - * 1) Increment MAJOR version if you make incompatible API changes. MINOR and - * PATCH should be reset to 0. - * - * 2) Increment MINOR version if you add backwards compatible features or - * changes. PATCH should be reset to 0. - * - * 3) Increment PATCH version if you add backwards compatible bug fixes. - */ - -#ifndef __INCLUDE_UAPI_SOUND_SOF_ABI_H__ -#define __INCLUDE_UAPI_SOUND_SOF_ABI_H__ - -/* SOF ABI version major, minor and patch numbers */ -#define SOF_ABI_MAJOR 3 -#define SOF_ABI_MINOR 13 -#define SOF_ABI_PATCH 0 - -/* SOF ABI version number. Format within 32bit word is MMmmmppp */ -#define SOF_ABI_MAJOR_SHIFT 24 -#define SOF_ABI_MAJOR_MASK 0xff -#define SOF_ABI_MINOR_SHIFT 12 -#define SOF_ABI_MINOR_MASK 0xfff -#define SOF_ABI_PATCH_SHIFT 0 -#define SOF_ABI_PATCH_MASK 0xfff - -#define SOF_ABI_VER(major, minor, patch) \ - (((major) << SOF_ABI_MAJOR_SHIFT) | \ - ((minor) << SOF_ABI_MINOR_SHIFT) | \ - ((patch) << SOF_ABI_PATCH_SHIFT)) - -#define SOF_ABI_VERSION_MAJOR(version) \ - (((version) >> SOF_ABI_MAJOR_SHIFT) & SOF_ABI_MAJOR_MASK) -#define SOF_ABI_VERSION_MINOR(version) \ - (((version) >> SOF_ABI_MINOR_SHIFT) & SOF_ABI_MINOR_MASK) -#define SOF_ABI_VERSION_PATCH(version) \ - (((version) >> SOF_ABI_PATCH_SHIFT) & SOF_ABI_PATCH_MASK) - -#define SOF_ABI_VERSION_INCOMPATIBLE(sof_ver, client_ver) \ - (SOF_ABI_VERSION_MAJOR((sof_ver)) != \ - SOF_ABI_VERSION_MAJOR((client_ver)) \ - ) - -#define SOF_ABI_VERSION SOF_ABI_VER(SOF_ABI_MAJOR, SOF_ABI_MINOR, SOF_ABI_PATCH) - -/* SOF ABI magic number "SOF\0". */ -#define SOF_ABI_MAGIC 0x00464F53 - -#endif +/* 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. + */ + +/** + * SOF ABI versioning is based on Semantic Versioning where we have a given + * MAJOR.MINOR.PATCH version number. See https://semver.org/ + * + * Rules for incrementing or changing version :- + * + * 1) Increment MAJOR version if you make incompatible API changes. MINOR and + * PATCH should be reset to 0. + * + * 2) Increment MINOR version if you add backwards compatible features or + * changes. PATCH should be reset to 0. + * + * 3) Increment PATCH version if you add backwards compatible bug fixes. + */ + +#ifndef __INCLUDE_UAPI_SOUND_SOF_ABI_H__ +#define __INCLUDE_UAPI_SOUND_SOF_ABI_H__ + +/* SOF ABI version major, minor and patch numbers */ +#define SOF_ABI_MAJOR 3 +#define SOF_ABI_MINOR 13 +#define SOF_ABI_PATCH 0 + +/* SOF ABI version number. Format within 32bit word is MMmmmppp */ +#define SOF_ABI_MAJOR_SHIFT 24 +#define SOF_ABI_MAJOR_MASK 0xff +#define SOF_ABI_MINOR_SHIFT 12 +#define SOF_ABI_MINOR_MASK 0xfff +#define SOF_ABI_PATCH_SHIFT 0 +#define SOF_ABI_PATCH_MASK 0xfff + +#define SOF_ABI_VER(major, minor, patch) \ + (((major) << SOF_ABI_MAJOR_SHIFT) | \ + ((minor) << SOF_ABI_MINOR_SHIFT) | \ + ((patch) << SOF_ABI_PATCH_SHIFT)) + +#define SOF_ABI_VERSION_MAJOR(version) \ + (((version) >> SOF_ABI_MAJOR_SHIFT) & SOF_ABI_MAJOR_MASK) +#define SOF_ABI_VERSION_MINOR(version) \ + (((version) >> SOF_ABI_MINOR_SHIFT) & SOF_ABI_MINOR_MASK) +#define SOF_ABI_VERSION_PATCH(version) \ + (((version) >> SOF_ABI_PATCH_SHIFT) & SOF_ABI_PATCH_MASK) + +#define SOF_ABI_VERSION_INCOMPATIBLE(sof_ver, client_ver) \ + (SOF_ABI_VERSION_MAJOR((sof_ver)) != \ + SOF_ABI_VERSION_MAJOR((client_ver)) \ + ) + +#define SOF_ABI_VERSION SOF_ABI_VER(SOF_ABI_MAJOR, SOF_ABI_MINOR, SOF_ABI_PATCH) + +/* SOF ABI magic number "SOF\0". */ +#define SOF_ABI_MAGIC 0x00464F53 + +#endif |