summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/gk20a/css_gr_gk20a.h
diff options
context:
space:
mode:
authorAntony Clince Alex <aalex@nvidia.com>2018-05-28 06:35:58 -0400
committermobile promotions <svcmobile_promotions@nvidia.com>2018-06-15 00:41:22 -0400
commitd27d9ff7a89ab1a590a9cc8367af7f3a3ea698a8 (patch)
treeae4220f4ab040c702b39c6e9f1559342e3d569fa /drivers/gpu/nvgpu/gk20a/css_gr_gk20a.h
parent4d94b32d01e66cb0ba2799775ce2d79c5ff0f2ec (diff)
gpu: nvgpu: removed linux includes from CSS HAL
- removed inclusion of linux includes. - replaced with nvgpu/*.h's - reformated the function signature of "css_hw_get_pending_snapshot" and "css_hw_get_overflow_status" be global instead of static. - added get_pending_snapshot and get_overflow_status to ops->css. JIRA: VQRM-3699 Change-Id: I177904c263e143b414924c2c28ad6fd3cfd00132 Signed-off-by: Antony Clince Alex <aalex@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/1732783 Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com> Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu/gk20a/css_gr_gk20a.h')
-rw-r--r--drivers/gpu/nvgpu/gk20a/css_gr_gk20a.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/gpu/nvgpu/gk20a/css_gr_gk20a.h b/drivers/gpu/nvgpu/gk20a/css_gr_gk20a.h
index bee8f4fb..8aefe848 100644
--- a/drivers/gpu/nvgpu/gk20a/css_gr_gk20a.h
+++ b/drivers/gpu/nvgpu/gk20a/css_gr_gk20a.h
@@ -129,6 +129,8 @@ struct gk20a_cs_snapshot {
129 struct gk20a_cs_snapshot_fifo_entry *hw_get; 129 struct gk20a_cs_snapshot_fifo_entry *hw_get;
130}; 130};
131 131
132bool css_hw_get_overflow_status(struct gk20a *g);
133u32 css_hw_get_pending_snapshots(struct gk20a *g);
132void css_hw_set_handled_snapshots(struct gk20a *g, u32 done); 134void css_hw_set_handled_snapshots(struct gk20a *g, u32 done);
133int css_hw_enable_snapshot(struct channel_gk20a *ch, 135int css_hw_enable_snapshot(struct channel_gk20a *ch,
134 struct gk20a_cs_snapshot_client *cs_client); 136 struct gk20a_cs_snapshot_client *cs_client);
@@ -140,5 +142,7 @@ u32 css_gr_release_perfmon_ids(struct gk20a_cs_snapshot *data,
140 u32 count); 142 u32 count);
141int css_hw_check_data_available(struct channel_gk20a *ch, u32 *pending, 143int css_hw_check_data_available(struct channel_gk20a *ch, u32 *pending,
142 bool *hw_overflow); 144 bool *hw_overflow);
145struct gk20a_cs_snapshot_client*
146css_gr_search_client(struct nvgpu_list_node *clients, u32 perfmon);
143 147
144#endif /* CSS_GR_GK20A_H */ 148#endif /* CSS_GR_GK20A_H */