Switch the FBC code over to intel_display from i915, as much as possible. This is the future direction so that the display code can be shared between i915 and xe more cleanly. Some of the platform checks and the stolen mem facing stiff still need i915 around though. v2: Drop some redundant to_i915() casts Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com> Link: https://patchwork.freedesktop.org/patch/msgid/20240705145254.3355-3-ville.syrjala@linux.intel.com Reviewed-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
52 lines
1.6 KiB
C
52 lines
1.6 KiB
C
/* SPDX-License-Identifier: MIT */
|
|
/*
|
|
* Copyright © 2019 Intel Corporation
|
|
*/
|
|
|
|
#ifndef __INTEL_FBC_H__
|
|
#define __INTEL_FBC_H__
|
|
|
|
#include <linux/types.h>
|
|
|
|
enum fb_op_origin;
|
|
struct drm_i915_private;
|
|
struct intel_atomic_state;
|
|
struct intel_crtc;
|
|
struct intel_crtc_state;
|
|
struct intel_display;
|
|
struct intel_fbc;
|
|
struct intel_plane;
|
|
struct intel_plane_state;
|
|
|
|
enum intel_fbc_id {
|
|
INTEL_FBC_A,
|
|
INTEL_FBC_B,
|
|
INTEL_FBC_C,
|
|
INTEL_FBC_D,
|
|
|
|
I915_MAX_FBCS,
|
|
};
|
|
|
|
int intel_fbc_atomic_check(struct intel_atomic_state *state);
|
|
bool intel_fbc_pre_update(struct intel_atomic_state *state,
|
|
struct intel_crtc *crtc);
|
|
void intel_fbc_post_update(struct intel_atomic_state *state,
|
|
struct intel_crtc *crtc);
|
|
void intel_fbc_init(struct intel_display *display);
|
|
void intel_fbc_cleanup(struct intel_display *display);
|
|
void intel_fbc_sanitize(struct intel_display *display);
|
|
void intel_fbc_update(struct intel_atomic_state *state,
|
|
struct intel_crtc *crtc);
|
|
void intel_fbc_disable(struct intel_crtc *crtc);
|
|
void intel_fbc_invalidate(struct drm_i915_private *dev_priv,
|
|
unsigned int frontbuffer_bits,
|
|
enum fb_op_origin origin);
|
|
void intel_fbc_flush(struct drm_i915_private *dev_priv,
|
|
unsigned int frontbuffer_bits, enum fb_op_origin origin);
|
|
void intel_fbc_add_plane(struct intel_fbc *fbc, struct intel_plane *plane);
|
|
void intel_fbc_handle_fifo_underrun_irq(struct intel_display *display);
|
|
void intel_fbc_reset_underrun(struct intel_display *display);
|
|
void intel_fbc_crtc_debugfs_add(struct intel_crtc *crtc);
|
|
void intel_fbc_debugfs_register(struct intel_display *display);
|
|
|
|
#endif /* __INTEL_FBC_H__ */
|