From 491d89a1ca63f6a6cdf5cf2dda7bba8539b8b81a Mon Sep 17 00:00:00 2001 From: Gaurav Sarode Date: Tue, 30 Sep 2014 17:39:07 -0700 Subject: 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 Signed-off-by: Parag Mehendale (cherry picked from commit fc5480fbcbbd78dda7bd44658f133287337826f3) Reviewed-on: http://git-master/r/746592 Reviewed-on: http://git-master/r/758317 Reviewed-by: Krishna Reddy Tested-by: Krishna Reddy --- include/linux/nvmap.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'include/linux') 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 { /* Actually allocates memory from IVM heaps */ #define NVMAP_IOC_ALLOC_IVM _IOW(NVMAP_IOC_MAGIC, 101, struct nvmap_alloc_ivm_handle) -#define NVMAP_IOC_MAXNR (_IOC_NR(NVMAP_IOC_ALLOC_IVM)) +/* Allocate seperate memory for VPR */ +#define NVMAP_IOC_VPR_FLOOR_SIZE _IOW(NVMAP_IOC_MAGIC, 102, __u32) + +#define NVMAP_IOC_MAXNR (_IOC_NR(NVMAP_IOC_VPR_FLOOR_SIZE)) #endif /* _LINUX_NVMAP_H */ -- cgit v1.2.2