diff options
| author | Gaurav Sarode <gsarode@nvidia.com> | 2014-09-30 20:39:07 -0400 |
|---|---|---|
| committer | Krishna Reddy <vdumpa@nvidia.com> | 2015-06-23 02:05:40 -0400 |
| commit | 491d89a1ca63f6a6cdf5cf2dda7bba8539b8b81a (patch) | |
| tree | 3b75487c19698bfe57100588d78803f372059361 /include/linux/nvmap.h | |
| parent | 3678077819ace8e5bc903043f695e384fe963b80 (diff) | |
video: tegra: nvmap:Add ioctl for VPR allocation
This ioctl make sure that given memory is allocated before secure
playback starts.When size is passed as 0, memory is deallocated.
bug 1627029
Change-Id: I0bde6e7c601b3fe411d6195b777bf0e1c8186035
Signed-off-by: Gaurav Sarode <gsarode@nvidia.com>
Signed-off-by: Parag Mehendale <pmehendale@nvidia.com>
(cherry picked from commit fc5480fbcbbd78dda7bd44658f133287337826f3)
Reviewed-on: http://git-master/r/746592
Reviewed-on: http://git-master/r/758317
Reviewed-by: Krishna Reddy <vdumpa@nvidia.com>
Tested-by: Krishna Reddy <vdumpa@nvidia.com>
Diffstat (limited to 'include/linux/nvmap.h')
| -rw-r--r-- | include/linux/nvmap.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/include/linux/nvmap.h b/include/linux/nvmap.h index 06e39a49d..ef0f7fd7a 100644 --- a/include/linux/nvmap.h +++ b/include/linux/nvmap.h | |||
| @@ -347,6 +347,9 @@ struct nvmap_debugfs_handles_entry { | |||
| 347 | /* Actually allocates memory from IVM heaps */ | 347 | /* Actually allocates memory from IVM heaps */ |
| 348 | #define NVMAP_IOC_ALLOC_IVM _IOW(NVMAP_IOC_MAGIC, 101, struct nvmap_alloc_ivm_handle) | 348 | #define NVMAP_IOC_ALLOC_IVM _IOW(NVMAP_IOC_MAGIC, 101, struct nvmap_alloc_ivm_handle) |
| 349 | 349 | ||
| 350 | #define NVMAP_IOC_MAXNR (_IOC_NR(NVMAP_IOC_ALLOC_IVM)) | 350 | /* Allocate seperate memory for VPR */ |
| 351 | #define NVMAP_IOC_VPR_FLOOR_SIZE _IOW(NVMAP_IOC_MAGIC, 102, __u32) | ||
| 352 | |||
| 353 | #define NVMAP_IOC_MAXNR (_IOC_NR(NVMAP_IOC_VPR_FLOOR_SIZE)) | ||
| 351 | 354 | ||
| 352 | #endif /* _LINUX_NVMAP_H */ | 355 | #endif /* _LINUX_NVMAP_H */ |
