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.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/drivers/gpu/nvgpu/gk20a/mm_gk20a.h b/drivers/gpu/nvgpu/gk20a/mm_gk20a.h
index b0f3536e..30f9e50b 100644
--- a/drivers/gpu/nvgpu/gk20a/mm_gk20a.h
+++ b/drivers/gpu/nvgpu/gk20a/mm_gk20a.h
@@ -198,6 +198,11 @@ enum gmmu_pgsz_gk20a {
198 gmmu_nr_page_sizes = 2 198 gmmu_nr_page_sizes = 2
199}; 199};
200 200
201struct gk20a_comptags {
202 u32 offset;
203 u32 lines;
204};
205
201 206
202struct page_directory_gk20a { 207struct page_directory_gk20a {
203 /* backing for */ 208 /* backing for */
@@ -473,6 +478,9 @@ int gk20a_vm_map_buffer(struct gk20a_as_share *as_share,
473 u64 buffer_offset, 478 u64 buffer_offset,
474 u64 mapping_size); 479 u64 mapping_size);
475int gk20a_vm_unmap_buffer(struct gk20a_as_share *, u64 offset); 480int gk20a_vm_unmap_buffer(struct gk20a_as_share *, u64 offset);
481void gk20a_get_comptags(struct device *dev, struct dma_buf *dmabuf,
482 struct gk20a_comptags *comptags);
483dma_addr_t gk20a_mm_gpuva_to_iova(struct vm_gk20a *vm, u64 gpu_vaddr);
476 484
477int gk20a_dmabuf_alloc_drvdata(struct dma_buf *dmabuf, struct device *dev); 485int gk20a_dmabuf_alloc_drvdata(struct dma_buf *dmabuf, struct device *dev);
478 486