summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/gk20a/bus_gk20a.h
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/gpu/nvgpu/gk20a/bus_gk20a.h')
-rw-r--r--drivers/gpu/nvgpu/gk20a/bus_gk20a.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/drivers/gpu/nvgpu/gk20a/bus_gk20a.h b/drivers/gpu/nvgpu/gk20a/bus_gk20a.h
index 72710c35..088c385e 100644
--- a/drivers/gpu/nvgpu/gk20a/bus_gk20a.h
+++ b/drivers/gpu/nvgpu/gk20a/bus_gk20a.h
@@ -22,10 +22,19 @@ struct gk20a;
22struct gpu_ops; 22struct gpu_ops;
23struct nvgpu_mem; 23struct nvgpu_mem;
24 24
25struct nvgpu_cpu_time_correlation_sample {
26 u64 cpu_timestamp;
27 u64 gpu_timestamp;
28};
29
25void gk20a_init_bus(struct gpu_ops *gops); 30void gk20a_init_bus(struct gpu_ops *gops);
26 31
27void gk20a_bus_isr(struct gk20a *g); 32void gk20a_bus_isr(struct gk20a *g);
28int gk20a_read_ptimer(struct gk20a *g, u64 *value); 33int gk20a_read_ptimer(struct gk20a *g, u64 *value);
29void gk20a_bus_init_hw(struct gk20a *g); 34void gk20a_bus_init_hw(struct gk20a *g);
30 35
36int gk20a_get_timestamps_zipper(struct gk20a *g,
37 u32 source_id, u32 count,
38 struct nvgpu_cpu_time_correlation_sample *samples);
39
31#endif /* GK20A_H */ 40#endif /* GK20A_H */