2021-01-25 12:08:18 -08:00
|
|
|
/* SPDX-License-Identifier: MIT */
|
|
|
|
/*
|
|
|
|
* Copyright © 2019 Intel Corporation
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef __INTEL_VRR_H__
|
|
|
|
#define __INTEL_VRR_H__
|
|
|
|
|
|
|
|
#include <linux/types.h>
|
|
|
|
|
2021-01-22 15:26:35 -08:00
|
|
|
struct drm_connector_state;
|
|
|
|
struct intel_atomic_state;
|
2022-05-10 13:42:28 +03:00
|
|
|
struct intel_connector;
|
2021-01-22 15:26:35 -08:00
|
|
|
struct intel_crtc_state;
|
2024-12-10 23:10:05 +02:00
|
|
|
struct intel_dsb;
|
2025-03-24 19:02:43 +05:30
|
|
|
struct intel_display;
|
2021-01-25 12:08:18 -08:00
|
|
|
|
2022-05-10 13:42:28 +03:00
|
|
|
bool intel_vrr_is_capable(struct intel_connector *connector);
|
2023-09-01 16:04:35 +03:00
|
|
|
bool intel_vrr_is_in_range(struct intel_connector *connector, int vrefresh);
|
2024-10-10 09:35:01 +05:30
|
|
|
bool intel_vrr_possible(const struct intel_crtc_state *crtc_state);
|
2021-01-22 15:26:35 -08:00
|
|
|
void intel_vrr_check_modeset(struct intel_atomic_state *state);
|
|
|
|
void intel_vrr_compute_config(struct intel_crtc_state *crtc_state,
|
|
|
|
struct drm_connector_state *conn_state);
|
2024-10-10 09:35:02 +05:30
|
|
|
void intel_vrr_compute_config_late(struct intel_crtc_state *crtc_state);
|
2023-03-21 15:56:15 +02:00
|
|
|
void intel_vrr_set_transcoder_timings(const struct intel_crtc_state *crtc_state);
|
2023-03-20 22:33:48 +02:00
|
|
|
void intel_vrr_enable(const struct intel_crtc_state *crtc_state);
|
2024-12-10 23:10:05 +02:00
|
|
|
void intel_vrr_send_push(struct intel_dsb *dsb,
|
|
|
|
const struct intel_crtc_state *crtc_state);
|
2025-02-10 18:07:11 +02:00
|
|
|
void intel_vrr_check_push_sent(struct intel_dsb *dsb,
|
|
|
|
const struct intel_crtc_state *crtc_state);
|
2021-11-17 20:31:02 +02:00
|
|
|
bool intel_vrr_is_push_sent(const struct intel_crtc_state *crtc_state);
|
2021-01-22 15:26:41 -08:00
|
|
|
void intel_vrr_disable(const struct intel_crtc_state *old_crtc_state);
|
2023-03-20 22:33:48 +02:00
|
|
|
void intel_vrr_get_config(struct intel_crtc_state *crtc_state);
|
2024-12-10 23:09:53 +02:00
|
|
|
int intel_vrr_vmax_vtotal(const struct intel_crtc_state *crtc_state);
|
|
|
|
int intel_vrr_vmin_vtotal(const struct intel_crtc_state *crtc_state);
|
2021-01-22 15:26:44 -08:00
|
|
|
int intel_vrr_vmax_vblank_start(const struct intel_crtc_state *crtc_state);
|
|
|
|
int intel_vrr_vmin_vblank_start(const struct intel_crtc_state *crtc_state);
|
2024-12-10 23:10:01 +02:00
|
|
|
int intel_vrr_vblank_delay(const struct intel_crtc_state *crtc_state);
|
2025-03-22 10:13:44 +05:30
|
|
|
bool intel_vrr_is_fixed_rr(const struct intel_crtc_state *crtc_state);
|
2025-03-24 19:02:40 +05:30
|
|
|
void intel_vrr_transcoder_enable(const struct intel_crtc_state *crtc_state);
|
|
|
|
void intel_vrr_transcoder_disable(const struct intel_crtc_state *crtc_state);
|
2025-03-24 19:02:42 +05:30
|
|
|
void intel_vrr_set_fixed_rr_timings(const struct intel_crtc_state *crtc_state);
|
2025-03-24 19:02:43 +05:30
|
|
|
bool intel_vrr_always_use_vrr_tg(struct intel_display *display);
|
2021-01-25 12:08:18 -08:00
|
|
|
|
|
|
|
#endif /* __INTEL_VRR_H__ */
|