diff options
| author | Alex Waterman <alexw@nvidia.com> | 2013-09-03 16:49:55 -0400 |
|---|---|---|
| committer | Dan Willemsen <dwillemsen@nvidia.com> | 2015-03-18 15:06:06 -0400 |
| commit | 25ddf1aeddfeee86b13cbd6ba6d9d1781a0ec73d (patch) | |
| tree | d23d1413f6239ea16dad13f34e042f08b684baef /include/linux | |
| parent | 85d87dc0ec1e5ed5c1ff97266d589738f3d20597 (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.h | 3 |
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 | ||
| 55 | struct nvmap_handle; | 55 | struct nvmap_handle; |
| 56 | struct 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 | ||
| 96 | struct dma_buf *nvmap_dmabuf_export_from_ref(struct nvmap_handle_ref *ref); | 97 | struct dma_buf *nvmap_dmabuf_export_from_ref(struct nvmap_handle_ref *ref); |
| 97 | 98 | ||
| 99 | ulong nvmap_ref_to_id(struct nvmap_handle_ref *ref); | ||
| 100 | |||
| 98 | ulong nvmap_ref_to_user_id(struct nvmap_handle_ref *ref); | 101 | ulong nvmap_ref_to_user_id(struct nvmap_handle_ref *ref); |
| 99 | 102 | ||
| 100 | ulong nvmap_dmabuf_to_user_id(struct dma_buf *dmabuf); | 103 | ulong nvmap_dmabuf_to_user_id(struct dma_buf *dmabuf); |
