xref: /openbmc/linux/drivers/gpu/drm/i915/gt/intel_gt_pm.h (revision 9dfe3459)
1 /*
2  * SPDX-License-Identifier: MIT
3  *
4  * Copyright © 2019 Intel Corporation
5  */
6 
7 #ifndef INTEL_GT_PM_H
8 #define INTEL_GT_PM_H
9 
10 #include <linux/types.h>
11 
12 struct intel_gt;
13 
14 enum {
15 	INTEL_GT_UNPARK,
16 	INTEL_GT_PARK,
17 };
18 
19 void intel_gt_pm_get(struct intel_gt *gt);
20 void intel_gt_pm_put(struct intel_gt *gt);
21 
22 void intel_gt_pm_init_early(struct intel_gt *gt);
23 
24 void intel_gt_sanitize(struct intel_gt *gt, bool force);
25 int intel_gt_resume(struct intel_gt *gt);
26 void intel_gt_runtime_suspend(struct intel_gt *gt);
27 int intel_gt_runtime_resume(struct intel_gt *gt);
28 
29 #endif /* INTEL_GT_PM_H */
30