diff options
author | Arto Merilainen <amerilainen@nvidia.com> | 2014-04-09 08:04:33 -0400 |
---|---|---|
committer | Dan Willemsen <dwillemsen@nvidia.com> | 2015-03-18 15:09:05 -0400 |
commit | 38de7b64757cd683ec367b44976eda6bf41fb8c7 (patch) | |
tree | c7cb391039b8a7978f921ce3d8c1f81f09e07f10 /drivers/gpu/nvgpu/gk20a/gk20a.h | |
parent | 2c615d68b835697f1c77dcb4f069ce5a84abd3d6 (diff) |
gpu: nvgpu: Add CBC clean and invalidate
Bug 1409151
Change-Id: I232af159d402f818cf972498d721c3b57846ce74
Signed-off-by: Arto Merilainen <amerilainen@nvidia.com>
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); |