summaryrefslogtreecommitdiff
path: root/drivers/staging/omapdrm/omap_drv.h
diff options
context:
space:
mode:
authorRob Clark <rob@ti.com>2012-05-17 08:37:26 (GMT)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2012-05-17 15:54:09 (GMT)
commit3080b838158f1b17bd806c3fd7b9086ba3054a04 (patch)
treede5bc96bd1dd934e8d689197887350f092c0858f /drivers/staging/omapdrm/omap_drv.h
parent8b6b569eac2e74d0b2a1822790f725a9a6abc2be (diff)
downloadlinux-fsl-qoriq-3080b838158f1b17bd806c3fd7b9086ba3054a04.tar.xz
staging: drm/omap: initial dmabuf/prime import support
This adds support to re-import omapdrm's own buffers. Importing buffers allocated by other drivers can be added later, but for now is not needed (we don't yet have any other exportering drivers to test with). Signed-off-by: Rob Clark <rob@ti.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/omapdrm/omap_drv.h')
-rw-r--r--drivers/staging/omapdrm/omap_drv.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/staging/omapdrm/omap_drv.h b/drivers/staging/omapdrm/omap_drv.h
index 73a606e..f238d57 100644
--- a/drivers/staging/omapdrm/omap_drv.h
+++ b/drivers/staging/omapdrm/omap_drv.h
@@ -162,6 +162,8 @@ size_t omap_gem_mmap_size(struct drm_gem_object *obj);
struct dma_buf * omap_gem_prime_export(struct drm_device *dev,
struct drm_gem_object *obj, int flags);
+struct drm_gem_object * omap_gem_prime_import(struct drm_device *dev,
+ struct dma_buf *buffer);
static inline int align_pitch(int pitch, int width, int bpp)
{