diff options
Diffstat (limited to 'drivers/gpu/nvgpu/gk20a/gk20a.h')
-rw-r--r-- | drivers/gpu/nvgpu/gk20a/gk20a.h | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/drivers/gpu/nvgpu/gk20a/gk20a.h b/drivers/gpu/nvgpu/gk20a/gk20a.h index 669ef1b9..1ca8ff77 100644 --- a/drivers/gpu/nvgpu/gk20a/gk20a.h +++ b/drivers/gpu/nvgpu/gk20a/gk20a.h | |||
@@ -657,6 +657,24 @@ struct gpu_ops { | |||
657 | struct { | 657 | struct { |
658 | int (*init)(struct gk20a *g); | 658 | int (*init)(struct gk20a *g); |
659 | } bios; | 659 | } bios; |
660 | #if defined(CONFIG_GK20A_CYCLE_STATS) | ||
661 | struct { | ||
662 | int (*enable_snapshot)(struct channel_gk20a *ch, | ||
663 | struct gk20a_cs_snapshot_client *client); | ||
664 | void (*disable_snapshot)(struct gr_gk20a *gr); | ||
665 | int (*check_data_available)(struct channel_gk20a *ch, | ||
666 | u32 *pending, | ||
667 | bool *hw_overflow); | ||
668 | void (*set_handled_snapshots)(struct gk20a *g, u32 num); | ||
669 | u32 (*allocate_perfmon_ids)(struct gk20a_cs_snapshot *data, | ||
670 | u32 count); | ||
671 | u32 (*release_perfmon_ids)(struct gk20a_cs_snapshot *data, | ||
672 | u32 start, | ||
673 | u32 count); | ||
674 | int (*detach_snapshot)(struct channel_gk20a *ch, | ||
675 | struct gk20a_cs_snapshot_client *client); | ||
676 | } css; | ||
677 | #endif | ||
660 | }; | 678 | }; |
661 | 679 | ||
662 | struct nvgpu_bios_ucode { | 680 | struct nvgpu_bios_ucode { |