forked from ~ljy/RK356X_SDK_RELEASE

hc
2023-12-11 6778948f9de86c3cfaf36725a7c87dcff9ba247f
kernel/drivers/gpu/arm/bifrost/csf/mali_kbase_csf_protected_memory.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
....@@ -46,6 +46,7 @@
4646 * @phys: Array of physical addresses to be filled in by the protected
4747 * memory allocator.
4848 * @num_pages: Number of pages requested to be allocated.
49
+ * @is_small_page: Flag used to select the order of protected memory page.
4950 *
5051 * Return: Pointer to an array of protected memory allocations on success,
5152 * or NULL on failure.
....@@ -54,7 +55,8 @@
5455 kbase_csf_protected_memory_alloc(
5556 struct kbase_device *const kbdev,
5657 struct tagged_addr *phys,
57
- size_t num_pages);
58
+ size_t num_pages,
59
+ bool is_small_page);
5860
5961 /**
6062 * kbase_csf_protected_memory_free - Free the allocated
....@@ -63,9 +65,11 @@
6365 * @kbdev: Device pointer.
6466 * @pma: Array of pointer to protected memory allocations.
6567 * @num_pages: Number of pages to be freed.
68
+ * @is_small_page: Flag used to select the order of protected memory page.
6669 */
6770 void kbase_csf_protected_memory_free(
6871 struct kbase_device *const kbdev,
6972 struct protected_memory_allocation **pma,
70
- size_t num_pages);
73
+ size_t num_pages,
74
+ bool is_small_page);
7175 #endif