diff options
Diffstat (limited to 'drivers/gpu/nvgpu/gk20a/gk20a.h')
-rw-r--r-- | drivers/gpu/nvgpu/gk20a/gk20a.h | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/drivers/gpu/nvgpu/gk20a/gk20a.h b/drivers/gpu/nvgpu/gk20a/gk20a.h index 3bc53992..7aca186e 100644 --- a/drivers/gpu/nvgpu/gk20a/gk20a.h +++ b/drivers/gpu/nvgpu/gk20a/gk20a.h | |||
@@ -56,12 +56,19 @@ struct cooling_device_gk20a { | |||
56 | struct gk20a *g; | 56 | struct gk20a *g; |
57 | }; | 57 | }; |
58 | 58 | ||
59 | enum gk20a_cbc_op { | ||
60 | gk20a_cbc_op_clear, | ||
61 | gk20a_cbc_op_clean, | ||
62 | gk20a_cbc_op_invalidate, | ||
63 | }; | ||
64 | |||
59 | struct gpu_ops { | 65 | struct gpu_ops { |
60 | struct { | 66 | struct { |
61 | int (*determine_L2_size_bytes)(struct gk20a *gk20a); | 67 | int (*determine_L2_size_bytes)(struct gk20a *gk20a); |
62 | void (*set_max_ways_evict_last)(struct gk20a *g, u32 max_ways); | 68 | void (*set_max_ways_evict_last)(struct gk20a *g, u32 max_ways); |
63 | int (*init_comptags)(struct gk20a *g, struct gr_gk20a *gr); | 69 | int (*init_comptags)(struct gk20a *g, struct gr_gk20a *gr); |
64 | int (*clear_comptags)(struct gk20a *g, u32 min, u32 max); | 70 | int (*cbc_ctrl)(struct gk20a *g, enum gk20a_cbc_op op, |
71 | u32 min, u32 max); | ||
65 | void (*set_zbc_color_entry)(struct gk20a *g, | 72 | void (*set_zbc_color_entry)(struct gk20a *g, |
66 | struct zbc_entry *color_val, | 73 | struct zbc_entry *color_val, |
67 | u32 index); | 74 | u32 index); |