summaryrefslogtreecommitdiffstats
path: root/include/linux/nvmap.h
diff options
context:
space:
mode:
authorKrishna Reddy <vdumpa@nvidia.com>2016-03-31 01:10:39 -0400
committerKrishna Reddy <vdumpa@nvidia.com>2016-03-31 14:25:24 -0400
commit36219a07f938c97fd8f4aec8386502efdca6a402 (patch)
tree71b570391fd40bbb43954966375f087e48016761 /include/linux/nvmap.h
parent3be0aeeda3bb7f84dbce676ad4ddbc6c69a66e7c (diff)
video: tegra: nvmap: support creating NvMap handle from VA
Support creation of NvMap handle from VA. Bug 1749713 Change-Id: I40d6aee04d343f2076f6231ba810cac77a7f9f46 Signed-off-by: Krishna Reddy <vdumpa@nvidia.com> Reviewed-on: http://git-master/r/1118110 Reviewed-by: Sri Krishna Chowdary <schowdary@nvidia.com>
Diffstat (limited to 'include/linux/nvmap.h')
-rw-r--r--include/linux/nvmap.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/include/linux/nvmap.h b/include/linux/nvmap.h
index 06c8c1709..90358a6ad 100644
--- a/include/linux/nvmap.h
+++ b/include/linux/nvmap.h
@@ -135,6 +135,13 @@ struct nvmap_create_handle {
135 __u32 handle; /* returns nvmap handle */ 135 __u32 handle; /* returns nvmap handle */
136}; 136};
137 137
138struct nvmap_create_handle_from_va {
139 __u64 va; /* FromVA*/
140 __u32 size; /* non-zero for partial memory VMA. zero for end of VMA */
141 __u32 flags; /* wb/wc/uc/iwb, tag etc. */
142 __u32 handle; /* returns nvmap handle */
143};
144
138struct nvmap_alloc_handle { 145struct nvmap_alloc_handle {
139 __u32 handle; /* nvmap handle */ 146 __u32 handle; /* nvmap handle */
140 __u32 heap_mask; /* heaps to allocate from */ 147 __u32 heap_mask; /* heaps to allocate from */
@@ -344,6 +351,9 @@ struct nvmap_debugfs_handles_entry {
344#define NVMAP_IOC_GET_IVC_ID _IOWR(NVMAP_IOC_MAGIC, 20, struct nvmap_create_handle) 351#define NVMAP_IOC_GET_IVC_ID _IOWR(NVMAP_IOC_MAGIC, 20, struct nvmap_create_handle)
345#define NVMAP_IOC_GET_IVM_HEAPS _IOR(NVMAP_IOC_MAGIC, 21, unsigned int) 352#define NVMAP_IOC_GET_IVM_HEAPS _IOR(NVMAP_IOC_MAGIC, 21, unsigned int)
346 353
354/* Create a new memory handle from VA passed */
355#define NVMAP_IOC_FROM_VA _IOWR(NVMAP_IOC_MAGIC, 22, struct nvmap_create_handle_from_va)
356
347/* START of T124 IOCTLS */ 357/* START of T124 IOCTLS */
348/* Actually allocates memory for the specified handle, with kind */ 358/* Actually allocates memory for the specified handle, with kind */
349#define NVMAP_IOC_ALLOC_KIND _IOW(NVMAP_IOC_MAGIC, 100, struct nvmap_alloc_kind_handle) 359#define NVMAP_IOC_ALLOC_KIND _IOW(NVMAP_IOC_MAGIC, 100, struct nvmap_alloc_kind_handle)