brintos

brintos / linux-shallow public Read only

0
0
Text · 1.6 KiB · ceae554 Raw
53 lines · c
1/* SPDX-License-Identifier: MIT */2/*3 * Copyright © 2019 Intel Corporation4 */5 6#ifndef __INTEL_FBC_H__7#define __INTEL_FBC_H__8 9#include <linux/types.h>10 11enum fb_op_origin;12struct drm_i915_private;13struct intel_atomic_state;14struct intel_crtc;15struct intel_crtc_state;16struct intel_display;17struct intel_fbc;18struct intel_plane;19struct intel_plane_state;20 21enum intel_fbc_id {22	INTEL_FBC_A,23	INTEL_FBC_B,24	INTEL_FBC_C,25	INTEL_FBC_D,26 27	I915_MAX_FBCS,28};29 30int intel_fbc_atomic_check(struct intel_atomic_state *state);31bool intel_fbc_pre_update(struct intel_atomic_state *state,32			  struct intel_crtc *crtc);33void intel_fbc_post_update(struct intel_atomic_state *state,34			   struct intel_crtc *crtc);35void intel_fbc_init(struct intel_display *display);36void intel_fbc_cleanup(struct intel_display *display);37void intel_fbc_sanitize(struct intel_display *display);38void intel_fbc_update(struct intel_atomic_state *state,39		      struct intel_crtc *crtc);40void intel_fbc_disable(struct intel_crtc *crtc);41void intel_fbc_invalidate(struct drm_i915_private *dev_priv,42			  unsigned int frontbuffer_bits,43			  enum fb_op_origin origin);44void intel_fbc_flush(struct drm_i915_private *dev_priv,45		     unsigned int frontbuffer_bits, enum fb_op_origin origin);46void intel_fbc_add_plane(struct intel_fbc *fbc, struct intel_plane *plane);47void intel_fbc_handle_fifo_underrun_irq(struct intel_display *display);48void intel_fbc_reset_underrun(struct intel_display *display);49void intel_fbc_crtc_debugfs_add(struct intel_crtc *crtc);50void intel_fbc_debugfs_register(struct intel_display *display);51 52#endif /* __INTEL_FBC_H__ */53