summaryrefslogtreecommitdiff
path: root/mali_kbase/mali_kbase_pm.h
diff options
context:
space:
mode:
authorJörg Wagner <jorwag@google.com>2023-12-14 09:44:26 +0000
committerJörg Wagner <jorwag@google.com>2023-12-14 09:44:26 +0000
commit049a542207ed694271316782397b78b2e202086a (patch)
tree105e9378d4d5062dc72109fdd4a77c915bd9425d /mali_kbase/mali_kbase_pm.h
parente61eb93296e9f940b32d4ad4b0c3a5557cbeaf17 (diff)
downloadgpu-049a542207ed694271316782397b78b2e202086a.tar.gz
Update KMD to r47p0
Provenance: ipdelivery@ad01e50d640910a99224382bb227e6d4de627657 Change-Id: I19ac9bce34a5c5a319c1b4a388e8b037b3dfe6e7
Diffstat (limited to 'mali_kbase/mali_kbase_pm.h')
-rw-r--r--mali_kbase/mali_kbase_pm.h18
1 files changed, 10 insertions, 8 deletions
diff --git a/mali_kbase/mali_kbase_pm.h b/mali_kbase/mali_kbase_pm.h
index 4bb90a4..46db4db 100644
--- a/mali_kbase/mali_kbase_pm.h
+++ b/mali_kbase/mali_kbase_pm.h
@@ -1,7 +1,7 @@
/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
/*
*
- * (C) COPYRIGHT 2010-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,17 +26,19 @@
#ifndef _KBASE_PM_H_
#define _KBASE_PM_H_
-#include "mali_kbase_hwaccess_pm.h"
+#include <linux/types.h>
-#define PM_ENABLE_IRQS 0x01
-#define PM_HW_ISSUES_DETECT 0x02
+struct kbase_device;
+
+#define PM_ENABLE_IRQS 0x01
+#define PM_HW_ISSUES_DETECT 0x02
#ifdef CONFIG_MALI_ARBITER_SUPPORT
/* In the case that the GPU was granted by the Arbiter, it will have
* already been reset. The following flag ensures it is not reset
* twice.
*/
-#define PM_NO_RESET 0x04
+#define PM_NO_RESET 0x04
#endif
/**
@@ -104,7 +106,6 @@ void kbase_pm_term(struct kbase_device *kbdev);
*/
void kbase_pm_context_active(struct kbase_device *kbdev);
-
/** Handler codes for doing kbase_pm_context_active_handle_suspend() */
enum kbase_pm_suspend_handler {
/** A suspend is not expected/not possible - this is the same as
@@ -144,7 +145,8 @@ enum kbase_pm_suspend_handler {
*
* Return: 0 on success, non-zero othrewise.
*/
-int kbase_pm_context_active_handle_suspend(struct kbase_device *kbdev, enum kbase_pm_suspend_handler suspend_handler);
+int kbase_pm_context_active_handle_suspend(struct kbase_device *kbdev,
+ enum kbase_pm_suspend_handler suspend_handler);
/**
* kbase_pm_context_idle - Decrement the reference count of active contexts.
@@ -239,7 +241,7 @@ int kbase_pm_driver_suspend(struct kbase_device *kbdev);
* Despite kbase_pm_resume(), it will ignore to update Arbiter
* status if MALI_ARBITER_SUPPORT is enabled.
*/
-void kbase_pm_driver_resume(struct kbase_device *kbdev, bool arb_gpu_start);
+void kbase_pm_driver_resume(struct kbase_device *kbdev, bool arb_gpu_start);
#ifdef CONFIG_MALI_ARBITER_SUPPORT
/**