From 984e9503036acbb98fccd39b0f4a2116d2458b03 Mon Sep 17 00:00:00 2001 From: Sri Krishna chowdary Date: Mon, 7 Apr 2014 19:35:57 +0530 Subject: video: tegra: nvmap: implement reserve pages ioctl On reserve request: - mark the pages within specified range as reserved for device On release request: - reset the reserved bits for reserved pages within range specified in each handle bug 1444151 Change-Id: Ia565bdb86db9f345004a12861138a26a9b6fc243 Signed-off-by: Sri Krishna chowdary Reviewed-on: http://git-master/r/376602 Reviewed-by: Automatic_Commit_Validation_User Reviewed-by: Krishna Reddy Tested-by: Krishna Reddy --- include/linux/nvmap.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'include/linux/nvmap.h') diff --git a/include/linux/nvmap.h b/include/linux/nvmap.h index 5a3550a49..5df5867a8 100644 --- a/include/linux/nvmap.h +++ b/include/linux/nvmap.h @@ -308,6 +308,9 @@ struct nvmap_cache_op_list { /* Perform cache maintenance on a list of handles. */ #define NVMAP_IOC_CACHE_LIST _IOW(NVMAP_IOC_MAGIC, 17, \ struct nvmap_cache_op_list) +/* Perform reserve operation on a list of handles. */ +#define NVMAP_IOC_RESERVE _IOW(NVMAP_IOC_MAGIC, 18, \ + struct nvmap_cache_op_list) /* START of T124 IOCTLS */ /* Actually allocates memory for the specified handle, with kind */ #define NVMAP_IOC_ALLOC_KIND _IOW(NVMAP_IOC_MAGIC, 100, struct nvmap_alloc_kind_handle) -- cgit v1.2.2