Merge branch 'akpm' (patches from Andrew)
[linux/fpc-iii.git] / drivers / gpu / drm / i915 / gt / intel_rps.h
blobdfa98194f3b25ed30f00a8e5b7fef59fd2d63efd
1 /*
2 * SPDX-License-Identifier: MIT
4 * Copyright © 2019 Intel Corporation
5 */
7 #ifndef INTEL_RPS_H
8 #define INTEL_RPS_H
10 #include "intel_rps_types.h"
12 struct i915_request;
14 void intel_rps_init_early(struct intel_rps *rps);
15 void intel_rps_init(struct intel_rps *rps);
17 void intel_rps_driver_register(struct intel_rps *rps);
18 void intel_rps_driver_unregister(struct intel_rps *rps);
20 void intel_rps_enable(struct intel_rps *rps);
21 void intel_rps_disable(struct intel_rps *rps);
23 void intel_rps_park(struct intel_rps *rps);
24 void intel_rps_unpark(struct intel_rps *rps);
25 void intel_rps_boost(struct i915_request *rq);
27 int intel_rps_set(struct intel_rps *rps, u8 val);
28 void intel_rps_mark_interactive(struct intel_rps *rps, bool interactive);
30 int intel_gpu_freq(struct intel_rps *rps, int val);
31 int intel_freq_opcode(struct intel_rps *rps, int val);
32 u32 intel_rps_get_cagf(struct intel_rps *rps, u32 rpstat1);
33 u32 intel_rps_read_actual_frequency(struct intel_rps *rps);
35 void gen5_rps_irq_handler(struct intel_rps *rps);
36 void gen6_rps_irq_handler(struct intel_rps *rps, u32 pm_iir);
37 void gen11_rps_irq_handler(struct intel_rps *rps, u32 pm_iir);
39 #endif /* INTEL_RPS_H */