From bd521b493e73d987669afbce8da6418e1aed7db6 Mon Sep 17 00:00:00 2001 From: Daniel Vetter Date: Wed, 14 May 2014 16:10:50 +0200 Subject: lib/igt_aux: Extract runtime pm helpers from pm_pc8 I want to use them elsewhere ... Signed-off-by: Daniel Vetter --- lib/igt_aux.h | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'lib/igt_aux.h') 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 -- cgit v1.2.3