summaryrefslogtreecommitdiffstats
path: root/include/linux
diff options
context:
space:
mode:
Diffstat (limited to 'include/linux')
-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)