diff options
Diffstat (limited to 'drivers/gpu/nvgpu/gp10b/mm_gp10b.h')
-rw-r--r-- | drivers/gpu/nvgpu/gp10b/mm_gp10b.h | 19 |
1 files changed, 16 insertions, 3 deletions
diff --git a/drivers/gpu/nvgpu/gp10b/mm_gp10b.h b/drivers/gpu/nvgpu/gp10b/mm_gp10b.h index 4cc71ea6..a0b9acd6 100644 --- a/drivers/gpu/nvgpu/gp10b/mm_gp10b.h +++ b/drivers/gpu/nvgpu/gp10b/mm_gp10b.h | |||
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | * Copyright (c) 2014, NVIDIA CORPORATION. All rights reserved. | 2 | * Copyright (c) 2014-2017, NVIDIA CORPORATION. All rights reserved. |
3 | * | 3 | * |
4 | * This program is free software; you can redistribute it and/or modify it | 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, | 5 | * under the terms and conditions of the GNU General Public License, |
@@ -14,7 +14,20 @@ | |||
14 | #ifndef MM_GP10B_H | 14 | #ifndef MM_GP10B_H |
15 | #define MM_GP10B_H | 15 | #define MM_GP10B_H |
16 | 16 | ||
17 | struct gpu_ops; | 17 | struct gk20a; |
18 | struct gk20a_mmu_level; | ||
19 | struct nvgpu_mem; | ||
20 | struct vm_gk20a; | ||
21 | |||
22 | u32 gp10b_mm_get_default_big_page_size(void); | ||
23 | u32 gp10b_mm_get_physical_addr_bits(struct gk20a *g); | ||
24 | int gp10b_init_mm_setup_hw(struct gk20a *g); | ||
25 | int gb10b_init_bar2_vm(struct gk20a *g); | ||
26 | int gb10b_init_bar2_mm_hw_setup(struct gk20a *g); | ||
27 | const struct gk20a_mmu_level *gp10b_mm_get_mmu_levels(struct gk20a *g, | ||
28 | u32 big_page_size); | ||
29 | void gp10b_mm_init_pdb(struct gk20a *g, struct nvgpu_mem *inst_block, | ||
30 | struct vm_gk20a *vm); | ||
31 | void gp10b_remove_bar2_vm(struct gk20a *g); | ||
18 | 32 | ||
19 | void gp10b_init_mm(struct gpu_ops *gops); | ||
20 | #endif | 33 | #endif |