diff options
Diffstat (limited to 'dvalin/kernel/drivers/gpu/arm/midgard/mali_malisw.h')
-rw-r--r-- | dvalin/kernel/drivers/gpu/arm/midgard/mali_malisw.h | 60 |
1 files changed, 25 insertions, 35 deletions
diff --git a/dvalin/kernel/drivers/gpu/arm/midgard/mali_malisw.h b/dvalin/kernel/drivers/gpu/arm/midgard/mali_malisw.h index 3a4db10..c0649f2 100644 --- a/dvalin/kernel/drivers/gpu/arm/midgard/mali_malisw.h +++ b/dvalin/kernel/drivers/gpu/arm/midgard/mali_malisw.h @@ -1,11 +1,12 @@ +/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ /* * - * (C) COPYRIGHT 2014-2015, 2018 ARM Limited. All rights reserved. + * (C) COPYRIGHT 2014-2015, 2018, 2020-2021 ARM Limited. All rights reserved. * * This program is free software and is provided to you under the terms of the * GNU General Public License version 2 as published by the Free Software * Foundation, and any use by you of this program is subject to the terms - * of such GNU licence. + * of such GNU license. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of @@ -16,8 +17,6 @@ * along with this program; if not, you can access it online at * http://www.gnu.org/licenses/gpl-2.0.html. * - * SPDX-License-Identifier: GPL-2.0 - * */ /** @@ -28,26 +27,11 @@ #define _MALISW_H_ #include <linux/version.h> -#if LINUX_VERSION_CODE < KERNEL_VERSION(3, 14, 0) -#define U8_MAX ((u8)~0U) -#define S8_MAX ((s8)(U8_MAX>>1)) -#define S8_MIN ((s8)(-S8_MAX - 1)) -#define U16_MAX ((u16)~0U) -#define S16_MAX ((s16)(U16_MAX>>1)) -#define S16_MIN ((s16)(-S16_MAX - 1)) -#define U32_MAX ((u32)~0U) -#define S32_MAX ((s32)(U32_MAX>>1)) -#define S32_MIN ((s32)(-S32_MAX - 1)) -#define U64_MAX ((u64)~0ULL) -#define S64_MAX ((s64)(U64_MAX>>1)) -#define S64_MIN ((s64)(-S64_MAX - 1)) -#endif /* LINUX_VERSION_CODE */ -#if LINUX_VERSION_CODE < KERNEL_VERSION(3, 5, 0) -#define SIZE_MAX (~(size_t)0) -#endif /* LINUX_VERSION_CODE */ /** * MIN - Return the lesser of two values. + * @x: value1 + * @y: value2 * * As a macro it may evaluate its arguments more than once. * Refer to MAX macro for more details @@ -55,7 +39,9 @@ #define MIN(x, y) ((x) < (y) ? (x) : (y)) /** - * MAX - Return the greater of two values. + * MAX - Return the greater of two values. + * @x: value1 + * @y: value2 * * As a macro it may evaluate its arguments more than once. * If called on the same two arguments as MIN it is guaranteed to return @@ -67,24 +53,27 @@ #define MAX(x, y) ((x) < (y) ? (y) : (x)) /** - * @hideinitializer - * Function-like macro for suppressing unused variable warnings. Where possible - * such variables should be removed; this macro is present for cases where we - * much support API backwards compatibility. + * Function-like macro for suppressing unused variable warnings. + * @x: unused variable + * + * Where possible such variables should be removed; this macro is present for + * cases where we much support API backwards compatibility. */ #define CSTD_UNUSED(x) ((void)(x)) /** - * @hideinitializer - * Function-like macro for use where "no behavior" is desired. This is useful - * when compile time macros turn a function-like macro in to a no-op, but - * where having no statement is otherwise invalid. + * Function-like macro for use where "no behavior" is desired. + * @...: no-op + * + * This is useful when compile time macros turn a function-like macro in to a + * no-op, but where having no statement is otherwise invalid. */ #define CSTD_NOP(...) ((void)#__VA_ARGS__) /** - * @hideinitializer * Function-like macro for stringizing a single level macro. + * @x: macro's value + * * @code * #define MY_MACRO 32 * CSTD_STR1( MY_MACRO ) @@ -94,10 +83,11 @@ #define CSTD_STR1(x) #x /** - * @hideinitializer - * Function-like macro for stringizing a macro's value. This should not be used - * if the macro is defined in a way which may have no value; use the - * alternative @c CSTD_STR2N macro should be used instead. + * Function-like macro for stringizing a macro's value. + * @x: macro's value + * + * This should not be used if the macro is defined in a way which may have no + * value; use the alternative @c CSTD_STR2N macro should be used instead. * @code * #define MY_MACRO 32 * CSTD_STR2( MY_MACRO ) |