]> asedeno.scripts.mit.edu Git - linux.git/blobdiff - include/drm/drm_gem_vram_helper.h
drm/vram-helpers: Add helpers for prepare_fb() and cleanup_fb()
[linux.git] / include / drm / drm_gem_vram_helper.h
index b8ad4531ebb41f3176cfad3d8e1ec371570caa1a..e040541a105f7c702dbcbfe9b0da078524fb9ad4 100644 (file)
@@ -13,6 +13,9 @@
 #include <linux/kernel.h> /* for container_of() */
 
 struct drm_mode_create_dumb;
+struct drm_plane;
+struct drm_plane_state;
+struct drm_simple_display_pipe;
 struct drm_vram_mm_funcs;
 struct filp;
 struct vm_area_struct;
@@ -124,6 +127,28 @@ int drm_gem_vram_driver_dumb_mmap_offset(struct drm_file *file,
                                         struct drm_device *dev,
                                         uint32_t handle, uint64_t *offset);
 
+/*
+ * Helpers for struct drm_plane_helper_funcs
+ */
+int
+drm_gem_vram_plane_helper_prepare_fb(struct drm_plane *plane,
+                                    struct drm_plane_state *new_state);
+void
+drm_gem_vram_plane_helper_cleanup_fb(struct drm_plane *plane,
+                                    struct drm_plane_state *old_state);
+
+/*
+ * Helpers for struct drm_simple_display_pipe_funcs
+ */
+
+int drm_gem_vram_simple_display_pipe_prepare_fb(
+       struct drm_simple_display_pipe *pipe,
+       struct drm_plane_state *new_state);
+
+void drm_gem_vram_simple_display_pipe_cleanup_fb(
+       struct drm_simple_display_pipe *pipe,
+       struct drm_plane_state *old_state);
+
 /**
  * define DRM_GEM_VRAM_DRIVER - default callback functions for \
        &struct drm_driver