| .. | .. |
|---|
| 1 | 1 | /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ |
|---|
| 2 | 2 | /* |
|---|
| 3 | 3 | * |
|---|
| 4 | | - * (C) COPYRIGHT 2019-2021 ARM Limited. All rights reserved. |
|---|
| 4 | + * (C) COPYRIGHT 2019-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 |
|---|
| .. | .. |
|---|
| 39 | 39 | int kbase_device_vinstr_init(struct kbase_device *kbdev); |
|---|
| 40 | 40 | void kbase_device_vinstr_term(struct kbase_device *kbdev); |
|---|
| 41 | 41 | |
|---|
| 42 | +int kbase_device_kinstr_prfcnt_init(struct kbase_device *kbdev); |
|---|
| 43 | +void kbase_device_kinstr_prfcnt_term(struct kbase_device *kbdev); |
|---|
| 44 | + |
|---|
| 42 | 45 | int kbase_device_timeline_init(struct kbase_device *kbdev); |
|---|
| 43 | 46 | void kbase_device_timeline_term(struct kbase_device *kbdev); |
|---|
| 44 | 47 | |
|---|
| .. | .. |
|---|
| 51 | 54 | int kbase_device_list_init(struct kbase_device *kbdev); |
|---|
| 52 | 55 | void kbase_device_list_term(struct kbase_device *kbdev); |
|---|
| 53 | 56 | |
|---|
| 54 | | -#if defined(CONFIG_DEBUG_FS) && !IS_ENABLED(CONFIG_MALI_BIFROST_NO_MALI) |
|---|
| 55 | 57 | int kbase_device_io_history_init(struct kbase_device *kbdev); |
|---|
| 56 | 58 | 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 |
|---|
| 66 | 59 | |
|---|
| 67 | 60 | int kbase_device_misc_register(struct kbase_device *kbdev); |
|---|
| 68 | 61 | void kbase_device_misc_deregister(struct kbase_device *kbdev); |
|---|
| .. | .. |
|---|
| 96 | 89 | * @kbdev: Device pointer |
|---|
| 97 | 90 | */ |
|---|
| 98 | 91 | 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) */ |
|---|