summaryrefslogtreecommitdiff
path: root/mali_kbase/mali_kbase_smc.h
diff options
context:
space:
mode:
authorJörg Wagner <jorwag@google.com>2023-12-14 09:44:26 +0000
committerJörg Wagner <jorwag@google.com>2023-12-14 09:44:26 +0000
commit049a542207ed694271316782397b78b2e202086a (patch)
tree105e9378d4d5062dc72109fdd4a77c915bd9425d /mali_kbase/mali_kbase_smc.h
parente61eb93296e9f940b32d4ad4b0c3a5557cbeaf17 (diff)
downloadgpu-049a542207ed694271316782397b78b2e202086a.tar.gz
Update KMD to r47p0
Provenance: ipdelivery@ad01e50d640910a99224382bb227e6d4de627657 Change-Id: I19ac9bce34a5c5a319c1b4a388e8b037b3dfe6e7
Diffstat (limited to 'mali_kbase/mali_kbase_smc.h')
-rw-r--r--mali_kbase/mali_kbase_smc.h14
1 files changed, 6 insertions, 8 deletions
diff --git a/mali_kbase/mali_kbase_smc.h b/mali_kbase/mali_kbase_smc.h
index 40a3483..7f29879 100644
--- a/mali_kbase/mali_kbase_smc.h
+++ b/mali_kbase/mali_kbase_smc.h
@@ -1,7 +1,7 @@
/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
/*
*
- * (C) COPYRIGHT 2015, 2020-2022 ARM Limited. All rights reserved.
+ * (C) COPYRIGHT 2015-2023 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
@@ -24,17 +24,16 @@
#if IS_ENABLED(CONFIG_ARM64)
-#include <mali_kbase.h>
+#include <linux/types.h>
-#define SMC_FAST_CALL (1 << 31)
-#define SMC_64 (1 << 30)
+#define SMC_FAST_CALL (1U << 31)
+#define SMC_64 (1U << 30)
#define SMC_OEN_OFFSET 24
-#define SMC_OEN_MASK (0x3F << SMC_OEN_OFFSET) /* 6 bits */
+#define SMC_OEN_MASK (0x3FU << SMC_OEN_OFFSET) /* 6 bits */
#define SMC_OEN_SIP (2 << SMC_OEN_OFFSET)
#define SMC_OEN_STD (4 << SMC_OEN_OFFSET)
-
/**
* kbase_invoke_smc_fid - Perform a secure monitor call
* @fid: The SMC function to call, see SMC Calling convention.
@@ -61,8 +60,7 @@ u64 kbase_invoke_smc_fid(u32 fid, u64 arg0, u64 arg1, u64 arg2);
*
* Return: the return value from the SMC call.
*/
-u64 kbase_invoke_smc(u32 oen, u16 function_number, bool smc64,
- u64 arg0, u64 arg1, u64 arg2);
+u64 kbase_invoke_smc(u32 oen, u16 function_number, bool smc64, u64 arg0, u64 arg1, u64 arg2);
#endif /* CONFIG_ARM64 */