diff options
Diffstat (limited to 'drivers/gpu/nvgpu/gk20a/gk20a.h')
-rw-r--r-- | drivers/gpu/nvgpu/gk20a/gk20a.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/drivers/gpu/nvgpu/gk20a/gk20a.h b/drivers/gpu/nvgpu/gk20a/gk20a.h index 75c6ef89..4333cd20 100644 --- a/drivers/gpu/nvgpu/gk20a/gk20a.h +++ b/drivers/gpu/nvgpu/gk20a/gk20a.h | |||
@@ -61,6 +61,9 @@ enum gk20a_cbc_op { | |||
61 | gk20a_cbc_op_invalidate, | 61 | gk20a_cbc_op_invalidate, |
62 | }; | 62 | }; |
63 | 63 | ||
64 | #define MC_INTR_UNIT_DISABLE false | ||
65 | #define MC_INTR_UNIT_ENABLE true | ||
66 | |||
64 | struct gpu_ops { | 67 | struct gpu_ops { |
65 | struct { | 68 | struct { |
66 | int (*determine_L2_size_bytes)(struct gk20a *gk20a); | 69 | int (*determine_L2_size_bytes)(struct gk20a *gk20a); |
@@ -360,10 +363,13 @@ struct gpu_ops { | |||
360 | } regops; | 363 | } regops; |
361 | struct { | 364 | struct { |
362 | void (*intr_enable)(struct gk20a *g); | 365 | void (*intr_enable)(struct gk20a *g); |
366 | void (*intr_unit_config)(struct gk20a *g, | ||
367 | bool enable, bool is_stalling, u32 unit); | ||
363 | irqreturn_t (*isr_stall)(struct gk20a *g); | 368 | irqreturn_t (*isr_stall)(struct gk20a *g); |
364 | irqreturn_t (*isr_nonstall)(struct gk20a *g); | 369 | irqreturn_t (*isr_nonstall)(struct gk20a *g); |
365 | irqreturn_t (*isr_thread_stall)(struct gk20a *g); | 370 | irqreturn_t (*isr_thread_stall)(struct gk20a *g); |
366 | irqreturn_t (*isr_thread_nonstall)(struct gk20a *g); | 371 | irqreturn_t (*isr_thread_nonstall)(struct gk20a *g); |
372 | u32 intr_mask_restore[4]; | ||
367 | } mc; | 373 | } mc; |
368 | }; | 374 | }; |
369 | 375 | ||