root/drivers/gpu/drm/rcar-du/rcar_du_writeback.h

/* [<][>][^][v][top][bottom][index][help] */

INCLUDED FROM


DEFINITIONS

This source file includes following definitions.
  1. rcar_du_writeback_init
  2. rcar_du_writeback_setup
  3. rcar_du_writeback_complete

   1 /* SPDX-License-Identifier: GPL-2.0+ */
   2 /*
   3  * rcar_du_writeback.h  --  R-Car Display Unit Writeback Support
   4  *
   5  * Copyright (C) 2019 Laurent Pinchart <laurent.pinchart@ideasonboard.com>
   6  */
   7 
   8 #ifndef __RCAR_DU_WRITEBACK_H__
   9 #define __RCAR_DU_WRITEBACK_H__
  10 
  11 #include <drm/drm_plane.h>
  12 
  13 struct rcar_du_crtc;
  14 struct rcar_du_device;
  15 struct vsp1_du_atomic_pipe_config;
  16 
  17 #ifdef CONFIG_DRM_RCAR_WRITEBACK
  18 int rcar_du_writeback_init(struct rcar_du_device *rcdu,
  19                            struct rcar_du_crtc *rcrtc);
  20 void rcar_du_writeback_setup(struct rcar_du_crtc *rcrtc,
  21                              struct vsp1_du_writeback_config *cfg);
  22 void rcar_du_writeback_complete(struct rcar_du_crtc *rcrtc);
  23 #else
  24 static inline int rcar_du_writeback_init(struct rcar_du_device *rcdu,
  25                                          struct rcar_du_crtc *rcrtc)
  26 {
  27         return -ENXIO;
  28 }
  29 static inline void
  30 rcar_du_writeback_setup(struct rcar_du_crtc *rcrtc,
  31                         struct vsp1_du_writeback_config *cfg)
  32 {
  33 }
  34 static inline void rcar_du_writeback_complete(struct rcar_du_crtc *rcrtc)
  35 {
  36 }
  37 #endif
  38 
  39 #endif /* __RCAR_DU_WRITEBACK_H__ */

/* [<][>][^][v][top][bottom][index][help] */