From 1260564c191a2e2de44b3ffb66ff68e72cd031dd Mon Sep 17 00:00:00 2001 From: Daniel Vetter Date: Wed, 27 Jul 2016 13:56:08 +0200 Subject: lib: update docs for igt_pm - Move all the pm helpers into igt_pm.c. No idea why that wasn't done in the original commit that created igt_pm.c. - Add missing docs where needed. Cc: David Weinehall Cc: Paulo Zanoni Signed-off-by: Daniel Vetter --- lib/igt_pm.h | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) (limited to 'lib/igt_pm.h') diff --git a/lib/igt_pm.h b/lib/igt_pm.h index c14ff1f7..eced39f8 100644 --- a/lib/igt_pm.h +++ b/lib/igt_pm.h @@ -28,4 +28,26 @@ void igt_pm_enable_audio_runtime_pm(void); int8_t *igt_pm_enable_sata_link_power_management(void); void igt_pm_restore_sata_link_power_management(int8_t *pm_data); +/** + * igt_runtime_pm_status: + * @IGT_RUNTIME_PM_STATUS_ACTIVE: device is active + * @IGT_RUNTIME_PM_STATUS_SUSPENDED: device is suspended + * @IGT_RUNTIME_PM_STATUS_SUSPENDING: device is in the process of suspending + * @IGT_RUNTIME_PM_STATUS_RESUMING: device is in the process of resuming + * @IGT_RUNTIME_PM_STATUS_UNKNOWN: unknown runtime PM status + * + * Symbolic values for runtime PM device status. + */ +enum igt_runtime_pm_status { + IGT_RUNTIME_PM_STATUS_ACTIVE, + IGT_RUNTIME_PM_STATUS_SUSPENDED, + IGT_RUNTIME_PM_STATUS_SUSPENDING, + IGT_RUNTIME_PM_STATUS_RESUMING, + IGT_RUNTIME_PM_STATUS_UNKNOWN, +}; + +bool igt_setup_runtime_pm(void); +enum igt_runtime_pm_status igt_get_runtime_pm_status(void); +bool igt_wait_for_pm_status(enum igt_runtime_pm_status status); + #endif /* IGT_PM_H */ -- cgit v1.2.3