diff options
author | Daniel Vetter <daniel.vetter@ffwll.ch> | 2016-07-27 13:56:08 +0200 |
---|---|---|
committer | Daniel Vetter <daniel.vetter@ffwll.ch> | 2016-07-27 15:43:25 +0200 |
commit | 1260564c191a2e2de44b3ffb66ff68e72cd031dd (patch) | |
tree | f40e79b66e6cc1f5c8ad53b30bedffb96545b468 /lib/igt_pm.h | |
parent | 45cbdbc178dc232534a9bd047864f95029f53d6e (diff) |
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 <david.weinehall@intel.com>
Cc: Paulo Zanoni <paulo.r.zanoni@intel.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Diffstat (limited to 'lib/igt_pm.h')
-rw-r--r-- | lib/igt_pm.h | 22 |
1 files changed, 22 insertions, 0 deletions
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 */ |