diff options
author | Sidath Senanayake <sidaths@google.com> | 2018-12-06 09:09:59 +0100 |
---|---|---|
committer | Sidath Senanayake <sidaths@google.com> | 2018-12-06 09:09:59 +0100 |
commit | a970431fa55f99aba31ea4263fdc8e70019a9ccd (patch) | |
tree | 91bb7f49a4869c0385338fe144f53ac8b98468ea /mali_kbase/mali_kbase_hwaccess_pm.h | |
parent | f10b3de5283d0c196459f18160161e48cfadae81 (diff) | |
download | gpu-a970431fa55f99aba31ea4263fdc8e70019a9ccd.tar.gz |
Mali Bifrost DDK r16p0 KMD
Provenance:
aa8b3ff0f (collaborate/EAC/b_r16p0)
BX304L01B-BU-00000-r16p0-01rel0
BX304L06A-BU-00000-r16p0-01rel0
BX304X07X-BU-00000-r16p0-01rel0
Signed-off-by: Sidath Senanayake <sidaths@google.com>
Change-Id: I96125862b7cf6596d1b7109853fb4ca39e851056
Diffstat (limited to 'mali_kbase/mali_kbase_hwaccess_pm.h')
-rw-r--r-- | mali_kbase/mali_kbase_hwaccess_pm.h | 37 |
1 files changed, 28 insertions, 9 deletions
diff --git a/mali_kbase/mali_kbase_hwaccess_pm.h b/mali_kbase/mali_kbase_hwaccess_pm.h index 4598d80..5bb3887 100644 --- a/mali_kbase/mali_kbase_hwaccess_pm.h +++ b/mali_kbase/mali_kbase_hwaccess_pm.h @@ -1,6 +1,6 @@ /* * - * (C) COPYRIGHT 2014-2015 ARM Limited. All rights reserved. + * (C) COPYRIGHT 2014-2015, 2018 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 @@ -44,13 +44,23 @@ struct kbase_device; * * Must be called before any other power management function * - * @param kbdev The kbase device structure for the device (must be a valid - * pointer) + * @kbdev: The kbase device structure for the device (must be a valid pointer) + * + * Return: 0 if the power management framework was successfully initialized. + */ +int kbase_hwaccess_pm_early_init(struct kbase_device *kbdev); + +/** + * Initialize the power management framework. + * + * Must be called before any other power management function (except + * @ref kbase_hwaccess_pm_early_init) + * + * @kbdev: The kbase device structure for the device (must be a valid pointer) * - * @return 0 if the power management framework was successfully - * initialized. + * Return: 0 if the power management framework was successfully initialized. */ -int kbase_hwaccess_pm_init(struct kbase_device *kbdev); +int kbase_hwaccess_pm_late_init(struct kbase_device *kbdev); /** * Terminate the power management framework. @@ -58,10 +68,19 @@ int kbase_hwaccess_pm_init(struct kbase_device *kbdev); * No power management functions may be called after this (except * @ref kbase_pm_init) * - * @param kbdev The kbase device structure for the device (must be a valid - * pointer) + * @kbdev: The kbase device structure for the device (must be a valid pointer) + */ +void kbase_hwaccess_pm_early_term(struct kbase_device *kbdev); + +/** + * Terminate the power management framework. + * + * No power management functions may be called after this (except + * @ref kbase_hwaccess_pm_early_term or @ref kbase_hwaccess_pm_late_init) + * + * @kbdev: The kbase device structure for the device (must be a valid pointer) */ -void kbase_hwaccess_pm_term(struct kbase_device *kbdev); +void kbase_hwaccess_pm_late_term(struct kbase_device *kbdev); /** * kbase_hwaccess_pm_powerup - Power up the GPU. |