summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/gk20a/platform_gk20a.h
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/gpu/nvgpu/gk20a/platform_gk20a.h')
-rw-r--r--drivers/gpu/nvgpu/gk20a/platform_gk20a.h28
1 files changed, 0 insertions, 28 deletions
diff --git a/drivers/gpu/nvgpu/gk20a/platform_gk20a.h b/drivers/gpu/nvgpu/gk20a/platform_gk20a.h
index 09f348cb..90333eef 100644
--- a/drivers/gpu/nvgpu/gk20a/platform_gk20a.h
+++ b/drivers/gpu/nvgpu/gk20a/platform_gk20a.h
@@ -71,17 +71,6 @@ struct gk20a_platform {
71 */ 71 */
72 int (*late_probe)(struct platform_device *dev); 72 int (*late_probe)(struct platform_device *dev);
73 73
74 /* Called before submitting work to the gpu. The platform may use this
75 * hook to ensure that any other hw modules that the gpu depends on are
76 * powered. The platform implementation must count refs to this call. */
77 int (*channel_busy)(struct platform_device *dev);
78
79 /* Called after the work on the gpu is completed. The platform may use
80 * this hook to release power refs to any other hw modules that the gpu
81 * depends on. The platform implementation must count refs to this
82 * call. */
83 void (*channel_idle)(struct platform_device *dev);
84
85 /* This function is called to allocate secure memory (memory that the 74 /* This function is called to allocate secure memory (memory that the
86 * CPU cannot see). The function should fill the context buffer 75 * CPU cannot see). The function should fill the context buffer
87 * descriptor (especially fields destroy, sgt, size). 76 * descriptor (especially fields destroy, sgt, size).
@@ -134,23 +123,6 @@ extern struct gk20a_platform gk20a_generic_platform;
134extern struct gk20a_platform gk20a_tegra_platform; 123extern struct gk20a_platform gk20a_tegra_platform;
135#endif 124#endif
136 125
137static inline int gk20a_platform_channel_busy(struct platform_device *dev)
138{
139 struct gk20a_platform *p = gk20a_get_platform(dev);
140 int ret = 0;
141 if (p->channel_busy)
142 ret = p->channel_busy(dev);
143
144 return ret;
145}
146
147static inline void gk20a_platform_channel_idle(struct platform_device *dev)
148{
149 struct gk20a_platform *p = gk20a_get_platform(dev);
150 if (p->channel_idle)
151 p->channel_idle(dev);
152}
153
154static inline bool gk20a_platform_has_syncpoints(struct platform_device *dev) 126static inline bool gk20a_platform_has_syncpoints(struct platform_device *dev)
155{ 127{
156 struct gk20a_platform *p = gk20a_get_platform(dev); 128 struct gk20a_platform *p = gk20a_get_platform(dev);