summaryrefslogtreecommitdiffstats
path: root/include/linux/nvmap.h
diff options
context:
space:
mode:
authorSri Krishna chowdary <schowdary@nvidia.com>2014-04-07 10:05:57 -0400
committerDan Willemsen <dwillemsen@nvidia.com>2015-03-18 15:09:13 -0400
commit984e9503036acbb98fccd39b0f4a2116d2458b03 (patch)
tree5423521cdadd25ed1d764529a49310a8d3002346 /include/linux/nvmap.h
parent930faae9a786a1f26eb64d9204544adb1e1797d0 (diff)
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 <schowdary@nvidia.com> Reviewed-on: http://git-master/r/376602 Reviewed-by: Automatic_Commit_Validation_User 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.h3
1 files changed, 3 insertions, 0 deletions
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 {
308/* Perform cache maintenance on a list of handles. */ 308/* Perform cache maintenance on a list of handles. */
309#define NVMAP_IOC_CACHE_LIST _IOW(NVMAP_IOC_MAGIC, 17, \ 309#define NVMAP_IOC_CACHE_LIST _IOW(NVMAP_IOC_MAGIC, 17, \
310 struct nvmap_cache_op_list) 310 struct nvmap_cache_op_list)
311/* Perform reserve operation on a list of handles. */
312#define NVMAP_IOC_RESERVE _IOW(NVMAP_IOC_MAGIC, 18, \
313 struct nvmap_cache_op_list)
311/* START of T124 IOCTLS */ 314/* START of T124 IOCTLS */
312/* Actually allocates memory for the specified handle, with kind */ 315/* Actually allocates memory for the specified handle, with kind */
313#define NVMAP_IOC_ALLOC_KIND _IOW(NVMAP_IOC_MAGIC, 100, struct nvmap_alloc_kind_handle) 316#define NVMAP_IOC_ALLOC_KIND _IOW(NVMAP_IOC_MAGIC, 100, struct nvmap_alloc_kind_handle)