2021-08-28 01:42:52 +08:00
|
|
|
/* SPDX-License-Identifier: MIT */
|
|
|
|
/*
|
|
|
|
* Copyright © 2021 Intel Corporation
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef __INTEL_DRRS_H__
|
|
|
|
#define __INTEL_DRRS_H__
|
|
|
|
|
|
|
|
#include <linux/types.h>
|
|
|
|
|
2022-03-12 01:24:22 +08:00
|
|
|
enum drrs_type;
|
2021-08-28 01:42:52 +08:00
|
|
|
struct drm_i915_private;
|
2021-09-04 06:10:36 +08:00
|
|
|
struct intel_atomic_state;
|
|
|
|
struct intel_crtc;
|
2021-08-28 01:42:52 +08:00
|
|
|
struct intel_crtc_state;
|
|
|
|
struct intel_connector;
|
|
|
|
|
2022-03-12 01:24:22 +08:00
|
|
|
const char *intel_drrs_type_str(enum drrs_type drrs_type);
|
2022-03-12 01:24:23 +08:00
|
|
|
void intel_drrs_enable(const struct intel_crtc_state *crtc_state);
|
|
|
|
void intel_drrs_disable(const struct intel_crtc_state *crtc_state);
|
|
|
|
void intel_drrs_update(const struct intel_crtc_state *crtc_state);
|
2021-08-28 01:42:53 +08:00
|
|
|
void intel_drrs_invalidate(struct drm_i915_private *dev_priv,
|
|
|
|
unsigned int frontbuffer_bits);
|
|
|
|
void intel_drrs_flush(struct drm_i915_private *dev_priv,
|
|
|
|
unsigned int frontbuffer_bits);
|
2021-09-04 06:10:36 +08:00
|
|
|
void intel_drrs_page_flip(struct intel_atomic_state *state,
|
|
|
|
struct intel_crtc *crtc);
|
2022-03-12 01:24:23 +08:00
|
|
|
void intel_drrs_compute_config(struct intel_connector *connector,
|
2021-08-28 01:42:53 +08:00
|
|
|
struct intel_crtc_state *pipe_config,
|
|
|
|
int output_bpp, bool constant_n);
|
|
|
|
struct drm_display_mode *intel_drrs_init(struct intel_connector *connector,
|
2022-03-10 08:47:51 +08:00
|
|
|
const struct drm_display_mode *fixed_mode);
|
2021-08-28 01:42:52 +08:00
|
|
|
|
|
|
|
#endif /* __INTEL_DRRS_H__ */
|