diff options
Diffstat (limited to 'drivers/gpu/nvgpu/gp10b/gr_gp10b.h')
-rw-r--r-- | drivers/gpu/nvgpu/gp10b/gr_gp10b.h | 19 |
1 files changed, 18 insertions, 1 deletions
diff --git a/drivers/gpu/nvgpu/gp10b/gr_gp10b.h b/drivers/gpu/nvgpu/gp10b/gr_gp10b.h index 536a7d27..6bbda564 100644 --- a/drivers/gpu/nvgpu/gp10b/gr_gp10b.h +++ b/drivers/gpu/nvgpu/gp10b/gr_gp10b.h | |||
@@ -16,7 +16,7 @@ | |||
16 | #ifndef _NVGPU_GR_GP10B_H_ | 16 | #ifndef _NVGPU_GR_GP10B_H_ |
17 | #define _NVGPU_GR_GP10B_H_ | 17 | #define _NVGPU_GR_GP10B_H_ |
18 | 18 | ||
19 | struct gk20a; | 19 | struct gpu_ops; |
20 | 20 | ||
21 | enum { | 21 | enum { |
22 | PASCAL_CHANNEL_GPFIFO_A = 0xC06F, | 22 | PASCAL_CHANNEL_GPFIFO_A = 0xC06F, |
@@ -32,4 +32,21 @@ enum { | |||
32 | 32 | ||
33 | void gp10b_init_gr(struct gpu_ops *ops); | 33 | void gp10b_init_gr(struct gpu_ops *ops); |
34 | 34 | ||
35 | struct gr_t18x { | ||
36 | struct { | ||
37 | u32 preempt_image_size; | ||
38 | } ctx_vars; | ||
39 | }; | ||
40 | |||
41 | struct gr_ctx_desc_t18x { | ||
42 | int preempt_mode; | ||
43 | struct mem_desc preempt_ctxsw_buffer; | ||
44 | struct mem_desc spill_ctxsw_buffer; | ||
45 | struct mem_desc betacb_ctxsw_buffer; | ||
46 | struct mem_desc pagepool_ctxsw_buffer; | ||
47 | }; | ||
48 | |||
49 | #define NVGPU_GR_PREEMPTION_MODE_WFI 0 | ||
50 | #define NVGPU_GR_PREEMPTION_MODE_GFXP 1 | ||
51 | |||
35 | #endif | 52 | #endif |