summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/include
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/gpu/nvgpu/include')
-rw-r--r--drivers/gpu/nvgpu/include/nvgpu/vm.h7
1 files changed, 3 insertions, 4 deletions
diff --git a/drivers/gpu/nvgpu/include/nvgpu/vm.h b/drivers/gpu/nvgpu/include/nvgpu/vm.h
index f8868065..8c56461c 100644
--- a/drivers/gpu/nvgpu/include/nvgpu/vm.h
+++ b/drivers/gpu/nvgpu/include/nvgpu/vm.h
@@ -31,9 +31,10 @@
31#include <nvgpu/nvgpu_mem.h> 31#include <nvgpu/nvgpu_mem.h>
32#include <nvgpu/allocator.h> 32#include <nvgpu/allocator.h>
33 33
34struct dma_buf;
35
34struct vm_gk20a; 36struct vm_gk20a;
35struct nvgpu_vm_area; 37struct nvgpu_vm_area;
36struct buffer_attrs;
37struct gk20a_comptag_allocator; 38struct gk20a_comptag_allocator;
38 39
39/** 40/**
@@ -212,6 +213,7 @@ int nvgpu_vm_unmap_buffer(struct vm_gk20a *vm, u64 offset,
212 213
213void nvgpu_vm_unmap_locked(struct nvgpu_mapped_buf *mapped_buffer, 214void nvgpu_vm_unmap_locked(struct nvgpu_mapped_buf *mapped_buffer,
214 struct vm_gk20a_mapping_batch *batch); 215 struct vm_gk20a_mapping_batch *batch);
216void nvgpu_vm_unmap_locked_ref(struct nvgpu_ref *ref);
215 217
216/* 218/*
217 * These all require the VM update lock to be held. 219 * These all require the VM update lock to be held.
@@ -223,9 +225,6 @@ struct nvgpu_mapped_buf *__nvgpu_vm_find_mapped_buf_range(
223struct nvgpu_mapped_buf *__nvgpu_vm_find_mapped_buf_less_than( 225struct nvgpu_mapped_buf *__nvgpu_vm_find_mapped_buf_less_than(
224 struct vm_gk20a *vm, u64 addr); 226 struct vm_gk20a *vm, u64 addr);
225 227
226int nvgpu_vm_find_buf(struct vm_gk20a *vm, u64 gpu_va,
227 struct dma_buf **dmabuf,
228 u64 *offset);
229int nvgpu_insert_mapped_buf(struct vm_gk20a *vm, 228int nvgpu_insert_mapped_buf(struct vm_gk20a *vm,
230 struct nvgpu_mapped_buf *mapped_buffer); 229 struct nvgpu_mapped_buf *mapped_buffer);
231void nvgpu_remove_mapped_buf(struct vm_gk20a *vm, 230void nvgpu_remove_mapped_buf(struct vm_gk20a *vm,