From 7854127315d8194f8940992ef3501ac46f15fec1 Mon Sep 17 00:00:00 2001 From: Alex Waterman Date: Wed, 17 Jul 2013 17:27:16 -0700 Subject: video: tegra: nvmap: Export dmabuf for all handles Export a dma_buf object for all handles during allocation. Ref counting for the underlying dma_buf follows the creation of nvmap_handle_refs. Bug 1290869 Change-Id: I738e83ccd5063f6eb14b1baaa24868f6a19a572e Signed-off-by: Alex Waterman Signed-off-by: Krishna Reddy Reviewed-on: http://git-master/r/264089 Reviewed-by: Automatic_Commit_Validation_User Reviewed-by: Hiroshi Doyu GVS: Gerrit_Virtual_Submit --- include/linux/nvmap.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'include/linux') diff --git a/include/linux/nvmap.h b/include/linux/nvmap.h index 224c554fa..3590e9e21 100644 --- a/include/linux/nvmap.h +++ b/include/linux/nvmap.h @@ -87,6 +87,10 @@ struct nvmap_handle_ref *nvmap_alloc(struct nvmap_client *client, size_t size, size_t align, unsigned int flags, unsigned int heap_mask); +struct dma_buf *nvmap_get_dmabuf(struct nvmap_client *client, ulong user_id); + +struct dma_buf *nvmap_get_dmabuf_from_ref(struct nvmap_handle_ref *ref); + ulong nvmap_ref_to_user_id(struct nvmap_handle_ref *ref); phys_addr_t nvmap_get_addr_from_user_id(ulong user_id); -- cgit v1.2.2