summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/gk20a/gk20a.h
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/gpu/nvgpu/gk20a/gk20a.h')
-rw-r--r--drivers/gpu/nvgpu/gk20a/gk20a.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/gpu/nvgpu/gk20a/gk20a.h b/drivers/gpu/nvgpu/gk20a/gk20a.h
index 4ede8982..e639ace4 100644
--- a/drivers/gpu/nvgpu/gk20a/gk20a.h
+++ b/drivers/gpu/nvgpu/gk20a/gk20a.h
@@ -620,6 +620,7 @@ struct gpu_ops {
620 620
621 int (*get_litter_value)(struct gk20a *g, enum nvgpu_litter_value value); 621 int (*get_litter_value)(struct gk20a *g, enum nvgpu_litter_value value);
622 int (*chip_init_gpu_characteristics)(struct gk20a *g); 622 int (*chip_init_gpu_characteristics)(struct gk20a *g);
623 int (*read_ptimer)(struct gk20a *g, u64 *value);
623 624
624 struct { 625 struct {
625 int (*init)(struct gk20a *g); 626 int (*init)(struct gk20a *g);
@@ -1111,7 +1112,7 @@ static inline u32 scale_ptimer(u32 timeout , u32 scale10x)
1111 return (timeout * 10) / scale10x; 1112 return (timeout * 10) / scale10x;
1112} 1113}
1113 1114
1114u64 gk20a_read_ptimer(struct gk20a *g); 1115int gk20a_read_ptimer(struct gk20a *g, u64 *value);
1115extern struct class nvgpu_class; 1116extern struct class nvgpu_class;
1116 1117
1117#define INTERFACE_NAME "nvhost%s-gpu" 1118#define INTERFACE_NAME "nvhost%s-gpu"