.. | .. |
---|
1 | 1 | /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ |
---|
2 | 2 | /* |
---|
3 | 3 | * |
---|
4 | | - * (C) COPYRIGHT 2014-2016, 2020-2021 ARM Limited. All rights reserved. |
---|
| 4 | + * (C) COPYRIGHT 2014-2016, 2020-2022 ARM Limited. All rights reserved. |
---|
5 | 5 | * |
---|
6 | 6 | * This program is free software and is provided to you under the terms of the |
---|
7 | 7 | * GNU General Public License version 2 as published by the Free Software |
---|
.. | .. |
---|
26 | 26 | #include <uapi/gpu/arm/bifrost/mali_base_kernel.h> |
---|
27 | 27 | |
---|
28 | 28 | /** |
---|
29 | | - * kbase_cache_set_coherency_mode() - Sets the system coherency mode |
---|
30 | | - * in the GPU. |
---|
31 | | - * @kbdev: Device pointer |
---|
32 | | - * @mode: Coherency mode. COHERENCY_ACE/ACE_LITE |
---|
33 | | - */ |
---|
| 29 | + * kbase_cache_set_coherency_mode() - Sets the system coherency mode |
---|
| 30 | + * in the GPU. |
---|
| 31 | + * @kbdev: Device pointer |
---|
| 32 | + * @mode: Coherency mode. COHERENCY_ACE/ACE_LITE |
---|
| 33 | + */ |
---|
34 | 34 | void kbase_cache_set_coherency_mode(struct kbase_device *kbdev, |
---|
35 | 35 | u32 mode); |
---|
36 | 36 | |
---|
37 | | -#endif /* _KBASE_CACHE_POLICY_H_ */ |
---|
| 37 | +/** |
---|
| 38 | + * kbase_cache_get_coherency_features() - Get the coherency features |
---|
| 39 | + * in the GPU. |
---|
| 40 | + * @kbdev: Device pointer |
---|
| 41 | + * |
---|
| 42 | + * Return: Register value to be returned |
---|
| 43 | + */ |
---|
| 44 | +u32 kbase_cache_get_coherency_features(struct kbase_device *kbdev); |
---|
| 45 | + |
---|
| 46 | +/** |
---|
| 47 | + * kbase_amba_set_memory_cache_support() - Sets AMBA memory cache support |
---|
| 48 | + * in the GPU. |
---|
| 49 | + * @kbdev: Device pointer |
---|
| 50 | + * @enable: true for enable. |
---|
| 51 | + * |
---|
| 52 | + * Note: Only for arch version 12.x.1 onwards. |
---|
| 53 | + */ |
---|
| 54 | +void kbase_amba_set_memory_cache_support(struct kbase_device *kbdev, |
---|
| 55 | + bool enable); |
---|
| 56 | +/** |
---|
| 57 | + * kbase_amba_set_invalidate_hint() - Sets AMBA invalidate hint |
---|
| 58 | + * in the GPU. |
---|
| 59 | + * @kbdev: Device pointer |
---|
| 60 | + * @enable: true for enable. |
---|
| 61 | + * |
---|
| 62 | + * Note: Only for arch version 12.x.1 onwards. |
---|
| 63 | + */ |
---|
| 64 | +void kbase_amba_set_invalidate_hint(struct kbase_device *kbdev, bool enable); |
---|
| 65 | +#endif /* _KBASE_CACHE_POLICY_BACKEND_H_ */ |
---|