xref: /linux/drivers/gpu/drm/xe/xe_pm.h (revision 08516de501fae647fb29bf3b62718de56cc24014)
1 /* SPDX-License-Identifier: MIT */
2 /*
3  * Copyright © 2022 Intel Corporation
4  */
5 
6 #ifndef _XE_PM_H_
7 #define _XE_PM_H_
8 
9 #include <linux/pm_runtime.h>
10 
11 struct xe_device;
12 
13 int xe_pm_suspend(struct xe_device *xe);
14 int xe_pm_resume(struct xe_device *xe);
15 
16 void xe_pm_runtime_init(struct xe_device *xe);
17 void xe_pm_runtime_fini(struct xe_device *xe);
18 int xe_pm_runtime_suspend(struct xe_device *xe);
19 int xe_pm_runtime_resume(struct xe_device *xe);
20 int xe_pm_runtime_get(struct xe_device *xe);
21 int xe_pm_runtime_put(struct xe_device *xe);
22 bool xe_pm_runtime_resume_if_suspended(struct xe_device *xe);
23 int xe_pm_runtime_get_if_active(struct xe_device *xe);
24 
25 #endif
26