Link: https://lore.kernel.org/r/20260217200002.683975158@linuxfoundation.org Tested-by: Florian Fainelli <florian.fainelli@broadcom.com> Tested-by: Takeshi Ogasawara <takeshi.ogasawara@futuring-girl.com> Tested-by: Peter Schneider <pschneider1968@googlemail.com> Tested-by: Jon Hunter <jonathanh@nvidia.com> Tested-by: Salvatore Bonaccorso <carnil@debian.org> Tested-by: Brett A C Sheffield <bacs@librecast.net> Tested-by: Mark Brown <broonie@kernel.org> Tested-by: Luna Jernberg <droidbittin@gmail.com> Tested-by: Ronald Warsow <rwarsow@gmx.de> Tested-by: Justin M. Forbes <jforbes@fedoraproject.org> Tested-by: Ron Economos <re@w6rz.net> Tested-by: Miguel Ojeda <ojeda@kernel.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
60 lines
1.9 KiB
C
60 lines
1.9 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 intel_atomic_state;
|
|
struct intel_crtc;
|
|
struct intel_crtc_state;
|
|
struct intel_display;
|
|
struct intel_dsb;
|
|
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);
|
|
int intel_fbc_min_cdclk(const struct intel_crtc_state *crtc_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 intel_display *display,
|
|
unsigned int frontbuffer_bits,
|
|
enum fb_op_origin origin);
|
|
void intel_fbc_flush(struct intel_display *display,
|
|
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);
|
|
void intel_fbc_prepare_dirty_rect(struct intel_atomic_state *state,
|
|
struct intel_crtc *crtc);
|
|
void intel_fbc_dirty_rect_update_noarm(struct intel_dsb *dsb,
|
|
struct intel_plane *plane);
|
|
bool
|
|
intel_fbc_is_enable_pixel_normalizer(const struct intel_plane_state *plane_state);
|
|
|
|
#endif /* __INTEL_FBC_H__ */
|