diff options
Diffstat (limited to 'drivers/gpu/nvgpu/include')
-rw-r--r-- | drivers/gpu/nvgpu/include/nvgpu/vm.h | 12 | ||||
-rw-r--r-- | drivers/gpu/nvgpu/include/nvgpu/vm_area.h | 6 |
2 files changed, 18 insertions, 0 deletions
diff --git a/drivers/gpu/nvgpu/include/nvgpu/vm.h b/drivers/gpu/nvgpu/include/nvgpu/vm.h index 7009ddf4..e091f181 100644 --- a/drivers/gpu/nvgpu/include/nvgpu/vm.h +++ b/drivers/gpu/nvgpu/include/nvgpu/vm.h | |||
@@ -199,6 +199,18 @@ struct vm_gk20a { | |||
199 | u64 syncpt_ro_map_gpu_va; | 199 | u64 syncpt_ro_map_gpu_va; |
200 | }; | 200 | }; |
201 | 201 | ||
202 | /* | ||
203 | * Mapping flags. | ||
204 | */ | ||
205 | #define NVGPU_VM_MAP_FIXED_OFFSET (1 << 0) | ||
206 | #define NVGPU_VM_MAP_CACHEABLE (1 << 1) | ||
207 | #define NVGPU_VM_MAP_IO_COHERENT (1 << 2) | ||
208 | #define NVGPU_VM_MAP_UNMAPPED_PTE (1 << 3) | ||
209 | #define NVGPU_VM_MAP_DIRECT_KIND_CTRL (1 << 4) | ||
210 | #define NVGPU_VM_MAP_L3_ALLOC (1 << 5) | ||
211 | |||
212 | #define NVGPU_KIND_INVALID -1 | ||
213 | |||
202 | void nvgpu_vm_get(struct vm_gk20a *vm); | 214 | void nvgpu_vm_get(struct vm_gk20a *vm); |
203 | void nvgpu_vm_put(struct vm_gk20a *vm); | 215 | void nvgpu_vm_put(struct vm_gk20a *vm); |
204 | 216 | ||
diff --git a/drivers/gpu/nvgpu/include/nvgpu/vm_area.h b/drivers/gpu/nvgpu/include/nvgpu/vm_area.h index 7fc77b29..92852633 100644 --- a/drivers/gpu/nvgpu/include/nvgpu/vm_area.h +++ b/drivers/gpu/nvgpu/include/nvgpu/vm_area.h | |||
@@ -57,6 +57,12 @@ nvgpu_vm_area_from_vm_area_list(struct nvgpu_list_node *node) | |||
57 | vm_area_list)); | 57 | vm_area_list)); |
58 | }; | 58 | }; |
59 | 59 | ||
60 | /* | ||
61 | * Alloc space flags. | ||
62 | */ | ||
63 | #define NVGPU_VM_AREA_ALLOC_FIXED_OFFSET (1 << 0) | ||
64 | #define NVGPU_VM_AREA_ALLOC_SPARSE (1 << 1) | ||
65 | |||
60 | int nvgpu_vm_area_alloc(struct vm_gk20a *vm, u32 pages, u32 page_size, | 66 | int nvgpu_vm_area_alloc(struct vm_gk20a *vm, u32 pages, u32 page_size, |
61 | u64 *addr, u32 flags); | 67 | u64 *addr, u32 flags); |
62 | int nvgpu_vm_area_free(struct vm_gk20a *vm, u64 addr); | 68 | int nvgpu_vm_area_free(struct vm_gk20a *vm, u64 addr); |