summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/gk20a/mm_gk20a.h
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/gpu/nvgpu/gk20a/mm_gk20a.h')
-rw-r--r--drivers/gpu/nvgpu/gk20a/mm_gk20a.h15
1 files changed, 15 insertions, 0 deletions
diff --git a/drivers/gpu/nvgpu/gk20a/mm_gk20a.h b/drivers/gpu/nvgpu/gk20a/mm_gk20a.h
index 79bc50af..8470a7ac 100644
--- a/drivers/gpu/nvgpu/gk20a/mm_gk20a.h
+++ b/drivers/gpu/nvgpu/gk20a/mm_gk20a.h
@@ -347,6 +347,12 @@ struct mm_gk20a {
347 u32 aperture_size; 347 u32 aperture_size;
348 struct vm_gk20a vm; 348 struct vm_gk20a vm;
349 struct inst_desc inst_block; 349 struct inst_desc inst_block;
350 } bar2;
351
352 struct {
353 u32 aperture_size;
354 struct vm_gk20a vm;
355 struct inst_desc inst_block;
350 } pmu; 356 } pmu;
351 357
352 struct mutex l2_op_lock; 358 struct mutex l2_op_lock;
@@ -534,6 +540,15 @@ int gk20a_vm_map_buffer(struct gk20a_as_share *as_share,
534 int kind, 540 int kind,
535 u64 buffer_offset, 541 u64 buffer_offset,
536 u64 mapping_size); 542 u64 mapping_size);
543
544int gk20a_init_vm(struct mm_gk20a *mm,
545 struct vm_gk20a *vm,
546 u32 big_page_size,
547 u64 low_hole,
548 u64 aperture_size,
549 bool big_pages,
550 char *name);
551void gk20a_deinit_vm(struct vm_gk20a *vm);
537int gk20a_vm_unmap_buffer(struct gk20a_as_share *, u64 offset); 552int gk20a_vm_unmap_buffer(struct gk20a_as_share *, u64 offset);
538void gk20a_get_comptags(struct device *dev, struct dma_buf *dmabuf, 553void gk20a_get_comptags(struct device *dev, struct dma_buf *dmabuf,
539 struct gk20a_comptags *comptags); 554 struct gk20a_comptags *comptags);