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.h17
1 files changed, 5 insertions, 12 deletions
diff --git a/drivers/gpu/nvgpu/gk20a/mm_gk20a.h b/drivers/gpu/nvgpu/gk20a/mm_gk20a.h
index b510b472..91659537 100644
--- a/drivers/gpu/nvgpu/gk20a/mm_gk20a.h
+++ b/drivers/gpu/nvgpu/gk20a/mm_gk20a.h
@@ -82,15 +82,10 @@ struct zcull_ctx_desc {
82 u32 ctx_sw_mode; 82 u32 ctx_sw_mode;
83}; 83};
84 84
85struct gr_ctx_buffer_desc; 85struct gk20a;
86struct platform_device;
87struct gr_ctx_buffer_desc { 86struct gr_ctx_buffer_desc {
88 void (*destroy)(struct platform_device *, struct gr_ctx_buffer_desc *); 87 void (*destroy)(struct gk20a *, struct gr_ctx_buffer_desc *);
89 struct sg_table *sgt; 88 struct mem_desc mem;
90 struct page **pages;
91 size_t size;
92 u64 iova;
93 struct dma_attrs attrs;
94 void *priv; 89 void *priv;
95}; 90};
96 91
@@ -99,10 +94,8 @@ struct gr_ctx_buffer_desc {
99#endif 94#endif
100 95
101struct gr_ctx_desc { 96struct gr_ctx_desc {
102 struct page **pages; 97 struct mem_desc mem;
103 u64 iova; 98
104 size_t size;
105 u64 gpu_va;
106 int preempt_mode; 99 int preempt_mode;
107#ifdef CONFIG_ARCH_TEGRA_18x_SOC 100#ifdef CONFIG_ARCH_TEGRA_18x_SOC
108 struct gr_ctx_desc_t18x t18x; 101 struct gr_ctx_desc_t18x t18x;