summaryrefslogtreecommitdiffstats
path: root/include/linux/nvmap.h
diff options
context:
space:
mode:
authorSri Krishna chowdary <schowdary@nvidia.com>2017-03-15 06:41:45 -0400
committermobile promotions <svcmobile_promotions@nvidia.com>2017-07-07 10:39:41 -0400
commit8eb41a68955e4c40881e11afe0cdfd165b33473b (patch)
tree626742197c468d3526af03c934132f27c6703cd2 /include/linux/nvmap.h
parent6b0382cf04879cbd8685e5e4bf735e3b023e71f4 (diff)
video: tegra: nvmap: support cache op on handles >= 4GB size
Add a new field len_msb to nvmap_cache_op struct so as to not modify the struct's size and also support cache operations on handles larger than 4GB. This len_msb will store the most significant 32 bits of length. bug 1860962 Change-Id: I75360a8531975e79329daa655575ee58525841f6 Signed-off-by: Sri Krishna chowdary <schowdary@nvidia.com> Reviewed-on: https://git-master/r/1509944 GVS: Gerrit_Virtual_Submit Reviewed-by: Sachin Nikam <snikam@nvidia.com>
Diffstat (limited to 'include/linux/nvmap.h')
-rw-r--r--include/linux/nvmap.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/include/linux/nvmap.h b/include/linux/nvmap.h
index 5ac4cdd9f..7d142ab01 100644
--- a/include/linux/nvmap.h
+++ b/include/linux/nvmap.h
@@ -284,6 +284,13 @@ struct nvmap_cache_op {
284 __s32 op; /* wb/wb_inv/inv */ 284 __s32 op; /* wb/wb_inv/inv */
285}; 285};
286 286
287struct nvmap_cache_op_64 {
288 unsigned long addr; /* user pointer*/
289 __u32 handle; /* nvmap handle */
290 __u64 len; /* bytes to flush */
291 __s32 op; /* wb/wb_inv/inv */
292};
293
287#ifdef CONFIG_COMPAT 294#ifdef CONFIG_COMPAT
288struct nvmap_cache_op_32 { 295struct nvmap_cache_op_32 {
289 __u32 addr; /* user pointer*/ 296 __u32 addr; /* user pointer*/
@@ -379,6 +386,7 @@ struct nvmap_available_heaps {
379#endif 386#endif
380 387
381#define NVMAP_IOC_CACHE _IOW(NVMAP_IOC_MAGIC, 12, struct nvmap_cache_op) 388#define NVMAP_IOC_CACHE _IOW(NVMAP_IOC_MAGIC, 12, struct nvmap_cache_op)
389#define NVMAP_IOC_CACHE_64 _IOW(NVMAP_IOC_MAGIC, 12, struct nvmap_cache_op_64)
382#ifdef CONFIG_COMPAT 390#ifdef CONFIG_COMPAT
383#define NVMAP_IOC_CACHE_32 _IOW(NVMAP_IOC_MAGIC, 12, struct nvmap_cache_op_32) 391#define NVMAP_IOC_CACHE_32 _IOW(NVMAP_IOC_MAGIC, 12, struct nvmap_cache_op_32)
384#endif 392#endif