xref: /linux/drivers/gpu/drm/i915/gt/intel_rc6.h (revision a1c3be890440a1769ed6f822376a3e3ab0d42994)
1 /*
2  * SPDX-License-Identifier: MIT
3  *
4  * Copyright © 2019 Intel Corporation
5  */
6 
7 #ifndef INTEL_RC6_H
8 #define INTEL_RC6_H
9 
10 #include "i915_reg.h"
11 
12 struct intel_engine_cs;
13 struct intel_rc6;
14 
15 void intel_rc6_init(struct intel_rc6 *rc6);
16 void intel_rc6_fini(struct intel_rc6 *rc6);
17 
18 void intel_rc6_unpark(struct intel_rc6 *rc6);
19 void intel_rc6_park(struct intel_rc6 *rc6);
20 
21 void intel_rc6_sanitize(struct intel_rc6 *rc6);
22 void intel_rc6_enable(struct intel_rc6 *rc6);
23 void intel_rc6_disable(struct intel_rc6 *rc6);
24 
25 u64 intel_rc6_residency_ns(struct intel_rc6 *rc6, i915_reg_t reg);
26 u64 intel_rc6_residency_us(struct intel_rc6 *rc6, i915_reg_t reg);
27 
28 #endif /* INTEL_RC6_H */
29