| .. | .. |
|---|
| 1 | 1 | /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ |
|---|
| 2 | 2 | /* |
|---|
| 3 | 3 | * |
|---|
| 4 | | - * (C) COPYRIGHT 2020-2021 ARM Limited. All rights reserved. |
|---|
| 4 | + * (C) COPYRIGHT 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 |
|---|
| .. | .. |
|---|
| 28 | 28 | |
|---|
| 29 | 29 | #include <linux/types.h> |
|---|
| 30 | 30 | |
|---|
| 31 | | -typedef enum mali_kbase_cap { |
|---|
| 31 | +/** |
|---|
| 32 | + * enum mali_kbase_cap - Enumeration for kbase capability |
|---|
| 33 | + * |
|---|
| 34 | + * @MALI_KBASE_CAP_SYSTEM_MONITOR: System Monitor |
|---|
| 35 | + * @MALI_KBASE_CAP_JIT_PRESSURE_LIMIT: JIT Pressure limit |
|---|
| 36 | + * @MALI_KBASE_CAP_MEM_GROW_ON_GPF: Memory grow on page fault |
|---|
| 37 | + * @MALI_KBASE_CAP_MEM_PROTECTED: Protected memory |
|---|
| 38 | + * @MALI_KBASE_NUM_CAPS: Delimiter |
|---|
| 39 | + */ |
|---|
| 40 | +enum mali_kbase_cap { |
|---|
| 32 | 41 | MALI_KBASE_CAP_SYSTEM_MONITOR = 0, |
|---|
| 33 | 42 | MALI_KBASE_CAP_JIT_PRESSURE_LIMIT, |
|---|
| 34 | 43 | MALI_KBASE_CAP_MEM_GROW_ON_GPF, |
|---|
| 35 | 44 | MALI_KBASE_CAP_MEM_PROTECTED, |
|---|
| 36 | 45 | MALI_KBASE_NUM_CAPS |
|---|
| 37 | | -} mali_kbase_cap; |
|---|
| 46 | +}; |
|---|
| 38 | 47 | |
|---|
| 39 | | -extern bool mali_kbase_supports_cap(unsigned long api_version, mali_kbase_cap cap); |
|---|
| 48 | +extern bool mali_kbase_supports_cap(unsigned long api_version, enum mali_kbase_cap cap); |
|---|
| 40 | 49 | |
|---|
| 41 | 50 | static inline bool mali_kbase_supports_system_monitor(unsigned long api_version) |
|---|
| 42 | 51 | { |
|---|