hc
2024-05-16 8d2a02b24d66aa359e83eebc1ed3c0f85367a1cb
kernel/drivers/gpu/arm/bifrost/device/mali_kbase_device_internal.h
....@@ -1,7 +1,7 @@
11 /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
22 /*
33 *
4
- * (C) COPYRIGHT 2019-2021 ARM Limited. All rights reserved.
4
+ * (C) COPYRIGHT 2019-2022 ARM Limited. All rights reserved.
55 *
66 * This program is free software and is provided to you under the terms of the
77 * GNU General Public License version 2 as published by the Free Software
....@@ -39,6 +39,9 @@
3939 int kbase_device_vinstr_init(struct kbase_device *kbdev);
4040 void kbase_device_vinstr_term(struct kbase_device *kbdev);
4141
42
+int kbase_device_kinstr_prfcnt_init(struct kbase_device *kbdev);
43
+void kbase_device_kinstr_prfcnt_term(struct kbase_device *kbdev);
44
+
4245 int kbase_device_timeline_init(struct kbase_device *kbdev);
4346 void kbase_device_timeline_term(struct kbase_device *kbdev);
4447
....@@ -51,18 +54,8 @@
5154 int kbase_device_list_init(struct kbase_device *kbdev);
5255 void kbase_device_list_term(struct kbase_device *kbdev);
5356
54
-#if defined(CONFIG_DEBUG_FS) && !IS_ENABLED(CONFIG_MALI_BIFROST_NO_MALI)
5557 int kbase_device_io_history_init(struct kbase_device *kbdev);
5658 void kbase_device_io_history_term(struct kbase_device *kbdev);
57
-#else
58
-static inline int kbase_device_io_history_init(struct kbase_device *kbdev)
59
-{
60
- return 0;
61
-}
62
-static inline void kbase_device_io_history_term(struct kbase_device *kbdev)
63
-{
64
-}
65
-#endif
6659
6760 int kbase_device_misc_register(struct kbase_device *kbdev);
6861 void kbase_device_misc_deregister(struct kbase_device *kbdev);
....@@ -96,3 +89,13 @@
9689 * @kbdev: Device pointer
9790 */
9891 void kbase_device_late_term(struct kbase_device *kbdev);
92
+
93
+#if MALI_USE_CSF && !IS_ENABLED(CONFIG_MALI_BIFROST_NO_MALI)
94
+/**
95
+ * kbase_is_register_accessible - Checks if register is accessible
96
+ * @offset: Register offset
97
+ *
98
+ * Return: true if the register is accessible, false otherwise.
99
+ */
100
+bool kbase_is_register_accessible(u32 offset);
101
+#endif /* MALI_USE_CSF && !IS_ENABLED(CONFIG_MALI_BIFROST_NO_MALI) */