summaryrefslogtreecommitdiff
path: root/mali_kbase/mali_kbase_hwaccess_pm.h
diff options
context:
space:
mode:
authorSidath Senanayake <sidaths@google.com>2020-02-03 12:15:52 +0100
committerSidath Senanayake <sidaths@google.com>2020-02-03 12:15:52 +0100
commit7ed9a0b8efa3abac35833b55f8012a2a85cc67a1 (patch)
tree0c297b2906c620d9cab1dd5f06db6909941cd843 /mali_kbase/mali_kbase_hwaccess_pm.h
parent1f3b3ea0d31f66a6ec806e8f6ac5ebee44cb5923 (diff)
downloadgpu-7ed9a0b8efa3abac35833b55f8012a2a85cc67a1.tar.gz
Mali Valhall DDK r22p0 KMD
Provenance: 6425105ec (collaborate/EAC/v_r22p0) VX504X08X-BU-00000-r22p0-01rel0 - Android DDK VX504X08X-BU-60000-r22p0-01rel0 - Android Document Bundle Signed-off-by: Sidath Senanayake <sidaths@google.com> Change-Id: I257ad9ba30a61008e6425d63700356f16009ead7
Diffstat (limited to 'mali_kbase/mali_kbase_hwaccess_pm.h')
-rw-r--r--mali_kbase/mali_kbase_hwaccess_pm.h20
1 files changed, 19 insertions, 1 deletions
diff --git a/mali_kbase/mali_kbase_hwaccess_pm.h b/mali_kbase/mali_kbase_hwaccess_pm.h
index 96c473a..bbaf6ea 100644
--- a/mali_kbase/mali_kbase_hwaccess_pm.h
+++ b/mali_kbase/mali_kbase_hwaccess_pm.h
@@ -29,7 +29,7 @@
#ifndef _KBASE_HWACCESS_PM_H_
#define _KBASE_HWACCESS_PM_H_
-#include <mali_midg_regmap.h>
+#include <gpu/mali_kbase_gpu_regmap.h>
#include <linux/atomic.h>
#include <mali_kbase_pm_defs.h>
@@ -208,4 +208,22 @@ void kbase_pm_set_policy(struct kbase_device *kbdev,
int kbase_pm_list_policies(struct kbase_device *kbdev,
const struct kbase_pm_policy * const **list);
+/**
+ * kbase_protected_most_enable - Enable protected mode
+ *
+ * @kbdev: Address of the instance of a GPU platform device.
+ *
+ * Return: Zero on success or an error code
+ */
+int kbase_pm_protected_mode_enable(struct kbase_device *kbdev);
+
+/**
+ * kbase_protected_mode_disable - Disable protected mode
+ *
+ * @kbdev: Address of the instance of a GPU platform device.
+ *
+ * Return: Zero on success or an error code
+ */
+int kbase_pm_protected_mode_disable(struct kbase_device *kbdev);
+
#endif /* _KBASE_HWACCESS_PM_H_ */