cachepc-linux

Fork of AMDESE/linux with modifications for CachePC side-channel attack
git clone https://git.sinitax.com/sinitax/cachepc-linux
Log | Files | Refs | README | LICENSE | sfeed.txt

intel_fbc.h (1564B)


      1/* SPDX-License-Identifier: MIT */
      2/*
      3 * Copyright © 2019 Intel Corporation
      4 */
      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_fbc;
     17struct intel_plane;
     18struct intel_plane_state;
     19
     20enum intel_fbc_id {
     21	INTEL_FBC_A,
     22
     23	I915_MAX_FBCS,
     24};
     25
     26int intel_fbc_atomic_check(struct intel_atomic_state *state);
     27bool intel_fbc_pre_update(struct intel_atomic_state *state,
     28			  struct intel_crtc *crtc);
     29void intel_fbc_post_update(struct intel_atomic_state *state,
     30			   struct intel_crtc *crtc);
     31void intel_fbc_init(struct drm_i915_private *dev_priv);
     32void intel_fbc_cleanup(struct drm_i915_private *dev_priv);
     33void intel_fbc_sanitize(struct drm_i915_private *dev_priv);
     34void intel_fbc_update(struct intel_atomic_state *state,
     35		      struct intel_crtc *crtc);
     36void intel_fbc_disable(struct intel_crtc *crtc);
     37void intel_fbc_invalidate(struct drm_i915_private *dev_priv,
     38			  unsigned int frontbuffer_bits,
     39			  enum fb_op_origin origin);
     40void intel_fbc_flush(struct drm_i915_private *dev_priv,
     41		     unsigned int frontbuffer_bits, enum fb_op_origin origin);
     42void intel_fbc_add_plane(struct intel_fbc *fbc, struct intel_plane *plane);
     43void intel_fbc_handle_fifo_underrun_irq(struct drm_i915_private *i915);
     44void intel_fbc_reset_underrun(struct drm_i915_private *i915);
     45void intel_fbc_crtc_debugfs_add(struct intel_crtc *crtc);
     46void intel_fbc_debugfs_register(struct drm_i915_private *i915);
     47
     48#endif /* __INTEL_FBC_H__ */