2023-03-02 18:49:36 +02:00
|
|
|
/* SPDX-License-Identifier: MIT */
|
|
|
|
/*
|
|
|
|
* Copyright © 2023 Intel Corporation
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef __INTEL_DISPLAY_RPS_H__
|
|
|
|
#define __INTEL_DISPLAY_RPS_H__
|
|
|
|
|
|
|
|
#include <linux/types.h>
|
|
|
|
|
|
|
|
struct dma_fence;
|
|
|
|
struct drm_crtc;
|
|
|
|
struct intel_atomic_state;
|
2025-02-25 18:49:11 +02:00
|
|
|
struct intel_display;
|
2023-03-02 18:49:36 +02:00
|
|
|
|
2025-05-06 16:06:49 +03:00
|
|
|
#ifdef I915
|
2023-03-02 18:49:36 +02:00
|
|
|
void intel_display_rps_boost_after_vblank(struct drm_crtc *crtc,
|
|
|
|
struct dma_fence *fence);
|
2025-02-25 18:49:11 +02:00
|
|
|
void intel_display_rps_mark_interactive(struct intel_display *display,
|
2023-03-02 18:49:36 +02:00
|
|
|
struct intel_atomic_state *state,
|
|
|
|
bool interactive);
|
2025-05-06 16:06:49 +03:00
|
|
|
void ilk_display_rps_enable(struct intel_display *display);
|
|
|
|
void ilk_display_rps_disable(struct intel_display *display);
|
|
|
|
void ilk_display_rps_irq_handler(struct intel_display *display);
|
|
|
|
#else
|
|
|
|
static inline void intel_display_rps_boost_after_vblank(struct drm_crtc *crtc,
|
|
|
|
struct dma_fence *fence)
|
|
|
|
{
|
|
|
|
}
|
|
|
|
static inline void intel_display_rps_mark_interactive(struct intel_display *display,
|
|
|
|
struct intel_atomic_state *state,
|
|
|
|
bool interactive)
|
|
|
|
{
|
|
|
|
}
|
|
|
|
static inline void ilk_display_rps_enable(struct intel_display *display)
|
|
|
|
{
|
|
|
|
}
|
|
|
|
static inline void ilk_display_rps_disable(struct intel_display *display)
|
|
|
|
{
|
|
|
|
}
|
|
|
|
static inline void ilk_display_rps_irq_handler(struct intel_display *display)
|
|
|
|
{
|
|
|
|
}
|
|
|
|
#endif
|
2023-03-02 18:49:36 +02:00
|
|
|
|
|
|
|
#endif /* __INTEL_DISPLAY_RPS_H__ */
|