diff options
author | Daniel Vetter <daniel.vetter@ffwll.ch> | 2014-05-14 16:10:50 +0200 |
---|---|---|
committer | Daniel Vetter <daniel.vetter@ffwll.ch> | 2014-05-15 14:25:47 +0200 |
commit | bd521b493e73d987669afbce8da6418e1aed7db6 (patch) | |
tree | 1987b8e5e4068aa2aa59da3ff4312eea6dee2efa /lib/igt_aux.h | |
parent | 1bee7e8b82e4a264d20df1f5825b8424c9241e39 (diff) |
lib/igt_aux: Extract runtime pm helpers from pm_pc8
I want to use them elsewhere ...
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Diffstat (limited to 'lib/igt_aux.h')
-rw-r--r-- | lib/igt_aux.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/lib/igt_aux.h b/lib/igt_aux.h index aa8a3878..597580da 100644 --- a/lib/igt_aux.h +++ b/lib/igt_aux.h @@ -57,6 +57,17 @@ void igt_drop_root(void); void igt_wait_for_keypress(void); +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); + /* sysinfo cross-arch wrappers from intel_os.c */ /* These are separate to allow easier testing when porting, see the comment at |