summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/gk20a/gk20a.h
diff options
context:
space:
mode:
authorDeepak Nibade <dnibade@nvidia.com>2015-03-03 01:42:58 -0500
committerDan Willemsen <dwillemsen@nvidia.com>2015-04-04 22:02:17 -0400
commit38fc3a48a0c2fbdda4f2e69dc7c4c619a534e468 (patch)
tree580db3c38b292245184e0a8b119cdb0eeeb63369 /drivers/gpu/nvgpu/gk20a/gk20a.h
parent87ccc6a02f9133805c58ad7b1791baf4f33249f7 (diff)
gpu: nvgpu: add platform specific get_iova_addr()
Add platform specific API pointer (*get_iova_addr)() which can be used to get iova/physical address from given scatterlist and flags Use this API with g->ops.mm.get_iova_addr() instead of calling API gk20a_mm_iova_addr() which makes it platform specific Bug 1605653 Change-Id: I798763db1501bd0b16e84daab68f6093a83caac2 Signed-off-by: Deepak Nibade <dnibade@nvidia.com> Reviewed-on: http://git-master/r/713089 GVS: Gerrit_Virtual_Submit Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu/gk20a/gk20a.h')
-rw-r--r--drivers/gpu/nvgpu/gk20a/gk20a.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/gpu/nvgpu/gk20a/gk20a.h b/drivers/gpu/nvgpu/gk20a/gk20a.h
index 015c8274..19c9e786 100644
--- a/drivers/gpu/nvgpu/gk20a/gk20a.h
+++ b/drivers/gpu/nvgpu/gk20a/gk20a.h
@@ -349,6 +349,8 @@ struct gpu_ops {
349 const struct gk20a_mmu_level * 349 const struct gk20a_mmu_level *
350 (*get_mmu_levels)(struct gk20a *g, u32 big_page_size); 350 (*get_mmu_levels)(struct gk20a *g, u32 big_page_size);
351 void (*init_pdb)(struct gk20a *g, void *inst_ptr, u64 pdb_addr); 351 void (*init_pdb)(struct gk20a *g, void *inst_ptr, u64 pdb_addr);
352 u64 (*get_iova_addr)(struct gk20a *g, struct scatterlist *sgl,
353 u32 flags);
352 } mm; 354 } mm;
353 struct { 355 struct {
354 int (*prepare_ucode)(struct gk20a *g); 356 int (*prepare_ucode)(struct gk20a *g);