summaryrefslogtreecommitdiff
path: root/mali_kbase/mali_kbase_config.h
diff options
context:
space:
mode:
Diffstat (limited to 'mali_kbase/mali_kbase_config.h')
-rw-r--r--mali_kbase/mali_kbase_config.h31
1 files changed, 14 insertions, 17 deletions
diff --git a/mali_kbase/mali_kbase_config.h b/mali_kbase/mali_kbase_config.h
index ab65216..9326e3b 100644
--- a/mali_kbase/mali_kbase_config.h
+++ b/mali_kbase/mali_kbase_config.h
@@ -1,7 +1,7 @@
/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
/*
*
- * (C) COPYRIGHT 2010-2017, 2019-2022 ARM Limited. All rights reserved.
+ * (C) COPYRIGHT 2010-2023 ARM Limited. All rights reserved.
*
* This program is free software and is provided to you under the terms of the
* GNU General Public License version 2 as published by the Free Software
@@ -26,10 +26,9 @@
#ifndef _KBASE_CONFIG_H_
#define _KBASE_CONFIG_H_
-#include <linux/mm.h>
#include <mali_malisw.h>
-#include <backend/gpu/mali_kbase_backend_config.h>
-#include <linux/rbtree.h>
+
+#include <linux/mm.h>
/* Forward declaration of struct kbase_device */
struct kbase_device;
@@ -255,7 +254,7 @@ struct kbase_pm_callback_conf {
*
* @return 0 on success, else int error code.
*/
- int (*power_runtime_init_callback)(struct kbase_device *kbdev);
+ int (*power_runtime_init_callback)(struct kbase_device *kbdev);
/** Callback for handling runtime power management termination.
*
@@ -425,8 +424,7 @@ struct kbase_clk_rate_trace_op_conf {
* Kbase will use this function pointer to enumerate the existence of a
* GPU clock on the given index.
*/
- void *(*enumerate_gpu_clk)(struct kbase_device *kbdev,
- unsigned int index);
+ void *(*enumerate_gpu_clk)(struct kbase_device *kbdev, unsigned int index);
/**
* @get_gpu_clk_rate: Get the current rate for an enumerated clock.
@@ -435,8 +433,7 @@ struct kbase_clk_rate_trace_op_conf {
*
* Returns current rate of the GPU clock in unit of Hz.
*/
- unsigned long (*get_gpu_clk_rate)(struct kbase_device *kbdev,
- void *gpu_clk_handle);
+ unsigned long (*get_gpu_clk_rate)(struct kbase_device *kbdev, void *gpu_clk_handle);
/**
* @gpu_clk_notifier_register: Register a clock rate change notifier.
@@ -454,8 +451,8 @@ struct kbase_clk_rate_trace_op_conf {
* The callback function expects the pointer of type
* 'struct kbase_gpu_clk_notifier_data' as the third argument.
*/
- int (*gpu_clk_notifier_register)(struct kbase_device *kbdev,
- void *gpu_clk_handle, struct notifier_block *nb);
+ int (*gpu_clk_notifier_register)(struct kbase_device *kbdev, void *gpu_clk_handle,
+ struct notifier_block *nb);
/**
* @gpu_clk_notifier_unregister: Unregister clock rate change notifier
@@ -468,8 +465,8 @@ struct kbase_clk_rate_trace_op_conf {
* was previously registered to get notified of the change in rate
* of clock corresponding to @gpu_clk_handle.
*/
- void (*gpu_clk_notifier_unregister)(struct kbase_device *kbdev,
- void *gpu_clk_handle, struct notifier_block *nb);
+ void (*gpu_clk_notifier_unregister)(struct kbase_device *kbdev, void *gpu_clk_handle,
+ struct notifier_block *nb);
};
#if IS_ENABLED(CONFIG_OF)
@@ -489,9 +486,9 @@ struct kbase_io_memory_region {
* @brief Specifies I/O related resources like IRQs and memory region for I/O operations.
*/
struct kbase_io_resources {
- u32 job_irq_number;
- u32 mmu_irq_number;
- u32 gpu_irq_number;
+ u32 job_irq_number;
+ u32 mmu_irq_number;
+ u32 gpu_irq_number;
struct kbase_io_memory_region io_memory_region;
};
@@ -658,4 +655,4 @@ int kbase_platform_register(void);
void kbase_platform_unregister(void);
#endif
-#endif /* _KBASE_CONFIG_H_ */
+#endif /* _KBASE_CONFIG_H_ */