diff options
Diffstat (limited to 'drivers/gpu/nvgpu/gp10b/hw_ctxsw_prog_gp10b.h')
-rw-r--r-- | drivers/gpu/nvgpu/gp10b/hw_ctxsw_prog_gp10b.h | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/drivers/gpu/nvgpu/gp10b/hw_ctxsw_prog_gp10b.h b/drivers/gpu/nvgpu/gp10b/hw_ctxsw_prog_gp10b.h index 0892f12e..7872c19c 100644 --- a/drivers/gpu/nvgpu/gp10b/hw_ctxsw_prog_gp10b.h +++ b/drivers/gpu/nvgpu/gp10b/hw_ctxsw_prog_gp10b.h | |||
@@ -254,4 +254,20 @@ static inline u32 ctxsw_prog_main_image_full_preemption_ptr_o(void) | |||
254 | { | 254 | { |
255 | return 0x00000068; | 255 | return 0x00000068; |
256 | } | 256 | } |
257 | static inline u32 ctxsw_prog_main_image_compute_preemption_options_o(void) | ||
258 | { | ||
259 | return 0x00000084; | ||
260 | } | ||
261 | static inline u32 ctxsw_prog_main_image_compute_preemption_options_control_f(u32 v) | ||
262 | { | ||
263 | return (v & 0x3) << 0; | ||
264 | } | ||
265 | static inline u32 ctxsw_prog_main_image_compute_preemption_options_control_cta_f(void) | ||
266 | { | ||
267 | return 0x1; | ||
268 | } | ||
269 | static inline u32 ctxsw_prog_main_image_compute_preemption_options_control_cilp_f(void) | ||
270 | { | ||
271 | return 0x2; | ||
272 | } | ||
257 | #endif | 273 | #endif |