summaryrefslogtreecommitdiffstats
path: root/include/linux
diff options
context:
space:
mode:
authorAlex Waterman <alexw@nvidia.com>2013-09-03 16:49:55 -0400
committerDan Willemsen <dwillemsen@nvidia.com>2015-03-18 15:06:06 -0400
commit25ddf1aeddfeee86b13cbd6ba6d9d1781a0ec73d (patch)
treed23d1413f6239ea16dad13f34e042f08b684baef /include/linux
parent85d87dc0ec1e5ed5c1ff97266d589738f3d20597 (diff)
video: tegra: nvmap: Export API for modules
Export nvmap_ref_to_id() so that external modules can use this API. This is needed for in kernel unit testing of nvmap. Change-Id: I342a2f8b8d31251ca853a3efd0647e897408e811 Signed-off-by: Alex Waterman <alexw@nvidia.com> Reviewed-on: http://git-master/r/269694 Reviewed-by: Krishna Reddy <vdumpa@nvidia.com> Tested-by: Krishna Reddy <vdumpa@nvidia.com>
Diffstat (limited to 'include/linux')
-rw-r--r--include/linux/nvmap.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/linux/nvmap.h b/include/linux/nvmap.h
index b5c69ab17..e6bf69ffc 100644
--- a/include/linux/nvmap.h
+++ b/include/linux/nvmap.h
@@ -53,6 +53,7 @@
53#define NVMAP_HANDLE_ZEROED_PAGES (0x1ul << 5) 53#define NVMAP_HANDLE_ZEROED_PAGES (0x1ul << 5)
54 54
55struct nvmap_handle; 55struct nvmap_handle;
56struct nvmap_handle_ref;
56 57
57#if defined(__KERNEL__) 58#if defined(__KERNEL__)
58 59
@@ -95,6 +96,8 @@ struct dma_buf *nvmap_dmabuf_export(struct nvmap_client *client, ulong user_id);
95 96
96struct dma_buf *nvmap_dmabuf_export_from_ref(struct nvmap_handle_ref *ref); 97struct dma_buf *nvmap_dmabuf_export_from_ref(struct nvmap_handle_ref *ref);
97 98
99ulong nvmap_ref_to_id(struct nvmap_handle_ref *ref);
100
98ulong nvmap_ref_to_user_id(struct nvmap_handle_ref *ref); 101ulong nvmap_ref_to_user_id(struct nvmap_handle_ref *ref);
99 102
100ulong nvmap_dmabuf_to_user_id(struct dma_buf *dmabuf); 103ulong nvmap_dmabuf_to_user_id(struct dma_buf *dmabuf);