1 /* 2 * SPDX-License-Identifier: MIT 3 * 4 * Copyright © 2019 Intel Corporation 5 */ 6 7 #ifndef INTEL_RPS_H 8 #define INTEL_RPS_H 9 10 #include "intel_rps_types.h" 11 12 struct i915_request; 13 14 void intel_rps_init_early(struct intel_rps *rps); 15 void intel_rps_init(struct intel_rps *rps); 16 17 void intel_rps_driver_register(struct intel_rps *rps); 18 void intel_rps_driver_unregister(struct intel_rps *rps); 19 20 void intel_rps_enable(struct intel_rps *rps); 21 void intel_rps_disable(struct intel_rps *rps); 22 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); 26 27 int intel_rps_set(struct intel_rps *rps, u8 val); 28 void intel_rps_mark_interactive(struct intel_rps *rps, bool interactive); 29 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); 34 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); 38 39 #endif /* INTEL_RPS_H */ 40