summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorAlex Waterman <alexw@nvidia.com>2013-11-13 11:56:38 -0800
committerGerrit Code Review <gerrit2@nvidia.com>2014-03-11 22:48:51 -0700
commitb36bd3ecf8ebb3c6a748f8cdc7fe5c80bfbcb616 (patch)
treecaed9427167a8ec3cbcf6dcd62cd7a37d103fe31 /include
parent999acb87fffe01365485333ac28b160a34502efb (diff)
video: tegra: nvmap: Add new cache maint op
Add a new IOCTL to nvmap that allows cache maintenance to be done on multiple handles with on ioctl call. Bug 1373180 Change-Id: I122221ae83a8fe9dc9382c48d9a145b32b34b9c6 Signed-off-by: Alex Waterman <alexw@nvidia.com> Signed-off-by: Sri Krishna chowdary <schowdary@nvidia.com>
Diffstat (limited to 'include')
-rw-r--r--include/linux/nvmap.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/include/linux/nvmap.h b/include/linux/nvmap.h
index d4ea27ef55f7..706d462dbb83 100644
--- a/include/linux/nvmap.h
+++ b/include/linux/nvmap.h
@@ -235,6 +235,15 @@ struct nvmap_cache_op_32 {
};
#endif
+struct nvmap_cache_op_list {
+#ifdef CONFIG_COMPAT
+ __u32 handles; /* Uspace ptr to list of handles */
+#else
+ struct nvmap_handle **handles;
+#endif
+ __u32 nr; /* Number of handles */
+};
+
#define NVMAP_IOC_MAGIC 'N'
/* Creates a new memory handle. On input, the argument is the size of the new
@@ -301,6 +310,9 @@ struct nvmap_cache_op_32 {
/* Create a new memory handle from file id passed */
#define NVMAP_IOC_FROM_FD _IOWR(NVMAP_IOC_MAGIC, 16, struct nvmap_create_handle)
+/* Perform cache maintenance on a list of handles. */
+#define NVMAP_IOC_CACHE_LIST _IOW(NVMAP_IOC_MAGIC, 17, \
+ 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)