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/vgpu/vm.h25
-rw-r--r--drivers/gpu/nvgpu/include/nvgpu/vm.h5
2 files changed, 26 insertions, 4 deletions
diff --git a/drivers/gpu/nvgpu/include/nvgpu/vgpu/vm.h b/drivers/gpu/nvgpu/include/nvgpu/vgpu/vm.h
new file mode 100644
index 00000000..364baac6
--- /dev/null
+++ b/drivers/gpu/nvgpu/include/nvgpu/vgpu/vm.h
@@ -0,0 +1,25 @@
1/*
2 * Copyright (c) 2017, NVIDIA CORPORATION. All rights reserved.
3 *
4 * This program is free software; you can redistribute it and/or modify it
5 * under the terms and conditions of the GNU General Public License,
6 * version 2, as published by the Free Software Foundation.
7 *
8 * This program is distributed in the hope it will be useful, but WITHOUT
9 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
10 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
11 * more details.
12 *
13 * You should have received a copy of the GNU General Public License
14 * along with this program. If not, see <http://www.gnu.org/licenses/>.
15 */
16
17#ifndef __NVGPU_VM_VGPU_H__
18#define __NVGPU_VM_VGPU_H__
19
20#ifdef CONFIG_TEGRA_GR_VIRTUALIZATION
21int vgpu_vm_init(struct gk20a *g, struct vm_gk20a *vm);
22void vgpu_vm_remove(struct vm_gk20a *vm);
23#endif
24
25#endif
diff --git a/drivers/gpu/nvgpu/include/nvgpu/vm.h b/drivers/gpu/nvgpu/include/nvgpu/vm.h
index fed58f24..403f3b18 100644
--- a/drivers/gpu/nvgpu/include/nvgpu/vm.h
+++ b/drivers/gpu/nvgpu/include/nvgpu/vm.h
@@ -225,12 +225,10 @@ int nvgpu_insert_mapped_buf(struct vm_gk20a *vm,
225void nvgpu_remove_mapped_buf(struct vm_gk20a *vm, 225void nvgpu_remove_mapped_buf(struct vm_gk20a *vm,
226 struct nvgpu_mapped_buf *mapped_buffer); 226 struct nvgpu_mapped_buf *mapped_buffer);
227 227
228void nvgpu_deinit_vm(struct vm_gk20a *vm);
228void __nvgpu_vm_remove(struct vm_gk20a *vm); 229void __nvgpu_vm_remove(struct vm_gk20a *vm);
229void nvgpu_vm_remove(struct vm_gk20a *vm); 230void nvgpu_vm_remove(struct vm_gk20a *vm);
230void nvgpu_vm_remove_inst(struct vm_gk20a *vm, struct nvgpu_mem *inst_block); 231void nvgpu_vm_remove_inst(struct vm_gk20a *vm, struct nvgpu_mem *inst_block);
231#ifdef CONFIG_TEGRA_GR_VIRTUALIZATION
232void nvgpu_vm_remove_vgpu(struct vm_gk20a *vm);
233#endif
234 232
235int nvgpu_init_vm(struct mm_gk20a *mm, 233int nvgpu_init_vm(struct mm_gk20a *mm,
236 struct vm_gk20a *vm, 234 struct vm_gk20a *vm,
@@ -241,7 +239,6 @@ int nvgpu_init_vm(struct mm_gk20a *mm,
241 bool big_pages, 239 bool big_pages,
242 bool userspace_managed, 240 bool userspace_managed,
243 char *name); 241 char *name);
244void nvgpu_deinit_vm(struct vm_gk20a *vm);
245 242
246/* 243/*
247 * These are private to the VM code but are unfortunately used by the vgpu code. 244 * These are private to the VM code but are unfortunately used by the vgpu code.