summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/rockchip/rockchip_drm_gem.h
diff options
context:
space:
mode:
authorHaixia Shi <hshi@chromium.org>2018-01-30 21:28:32 +0100
committerHeiko Stuebner <heiko@sntech.de>2018-02-18 11:16:40 +0100
commit6fd0bfe2f7ea1a5828c44b8d8811820bf7be13a9 (patch)
tree0d17ae539f8a935d07ac4224c3be947817d8e788 /drivers/gpu/drm/rockchip/rockchip_drm_gem.h
parentb4a92d0eef5ab1f81282c9ebca1822d99a35547a (diff)
downloadblackbird-op-linux-6fd0bfe2f7ea1a5828c44b8d8811820bf7be13a9.tar.gz
blackbird-op-linux-6fd0bfe2f7ea1a5828c44b8d8811820bf7be13a9.zip
drm/rockchip: support prime import sg table
The prime fd to handle ioctl was not used with rockchip before. Support was added in order to pass graphics_Gbm and to support potential uses within Chrome OS (e.g. zero-copy video decode, camera). Signed-off-by: Haixia Shi <hshi@chromium.org> Signed-off-by: Sean Paul <seanpaul@chromium.org> Signed-off-by: Thierry Escande <thierry.escande@collabora.com> Tested-by: Heiko Stuebner <heiko@sntech.de> Signed-off-by: Heiko Stuebner <heiko@sntech.de> Link: https://patchwork.freedesktop.org/patch/msgid/20180130202913.28724-3-thierry.escande@collabora.com
Diffstat (limited to 'drivers/gpu/drm/rockchip/rockchip_drm_gem.h')
-rw-r--r--drivers/gpu/drm/rockchip/rockchip_drm_gem.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/gpu/drm/rockchip/rockchip_drm_gem.h b/drivers/gpu/drm/rockchip/rockchip_drm_gem.h
index f237375582fb..d41fa65219d2 100644
--- a/drivers/gpu/drm/rockchip/rockchip_drm_gem.h
+++ b/drivers/gpu/drm/rockchip/rockchip_drm_gem.h
@@ -36,8 +36,9 @@ struct rockchip_gem_object {
struct sg_table *rockchip_gem_prime_get_sg_table(struct drm_gem_object *obj);
struct drm_gem_object *
-rockchip_gem_prime_import_sg_table(struct drm_device *dev, size_t size,
- struct sg_table *sgt);
+rockchip_gem_prime_import_sg_table(struct drm_device *dev,
+ struct dma_buf_attachment *attach,
+ struct sg_table *sg);
void *rockchip_gem_prime_vmap(struct drm_gem_object *obj);
void rockchip_gem_prime_vunmap(struct drm_gem_object *obj, void *vaddr);
OpenPOWER on IntegriCloud