1 /* Public domain. */ 2 3 #ifndef _DRM_WRITEBACK_H 4 #define _DRM_WRITEBACK_H 5 6 #include <drm/drm_connector.h> 7 8 struct drm_writeback_connector { 9 struct drm_connector base; 10 }; 11 12 struct drm_writeback_job { 13 struct dma_fence *out_fence; 14 struct drm_framebuffer *fb; 15 }; 16 17 static inline struct drm_writeback_connector * drm_connector_to_writeback(struct drm_connector * connector)18drm_connector_to_writeback(struct drm_connector *connector) 19 { 20 return container_of(connector, struct drm_writeback_connector, base); 21 } 22 23 static inline struct dma_fence * drm_writeback_get_out_fence(struct drm_writeback_connector * connector)24drm_writeback_get_out_fence(struct drm_writeback_connector *connector) 25 { 26 return NULL; 27 } 28 29 static inline void drm_writeback_cleanup_job(struct drm_writeback_job * j)30drm_writeback_cleanup_job(struct drm_writeback_job *j) 31 { 32 } 33 34 static inline int drm_writeback_prepare_job(struct drm_writeback_job * j)35drm_writeback_prepare_job(struct drm_writeback_job *j) 36 { 37 return 0; 38 } 39 40 static inline int drm_writeback_set_fb(struct drm_connector_state * cs,struct drm_framebuffer * fb)41drm_writeback_set_fb(struct drm_connector_state *cs, struct drm_framebuffer *fb) 42 { 43 return 0; 44 } 45 46 #endif 47