aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/host1x/syncpt.h
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/gpu/host1x/syncpt.h')
-rw-r--r--drivers/gpu/host1x/syncpt.h13
1 files changed, 5 insertions, 8 deletions
diff --git a/drivers/gpu/host1x/syncpt.h b/drivers/gpu/host1x/syncpt.h
index c99806130f2e..267c0b9d3647 100644
--- a/drivers/gpu/host1x/syncpt.h
+++ b/drivers/gpu/host1x/syncpt.h
@@ -36,7 +36,7 @@ struct host1x_syncpt {
36 atomic_t max_val; 36 atomic_t max_val;
37 u32 base_val; 37 u32 base_val;
38 const char *name; 38 const char *name;
39 int client_managed; 39 bool client_managed;
40 struct host1x *host; 40 struct host1x *host;
41 struct device *dev; 41 struct device *dev;
42 42
@@ -94,7 +94,7 @@ static inline bool host1x_syncpt_check_max(struct host1x_syncpt *sp, u32 real)
94} 94}
95 95
96/* Return true if sync point is client managed. */ 96/* Return true if sync point is client managed. */
97static inline int host1x_syncpt_client_managed(struct host1x_syncpt *sp) 97static inline bool host1x_syncpt_client_managed(struct host1x_syncpt *sp)
98{ 98{
99 return sp->client_managed; 99 return sp->client_managed;
100} 100}
@@ -115,9 +115,6 @@ static inline bool host1x_syncpt_idle(struct host1x_syncpt *sp)
115/* Return pointer to struct denoting sync point id. */ 115/* Return pointer to struct denoting sync point id. */
116struct host1x_syncpt *host1x_syncpt_get(struct host1x *host, u32 id); 116struct host1x_syncpt *host1x_syncpt_get(struct host1x *host, u32 id);
117 117
118/* Request incrementing a sync point. */
119void host1x_syncpt_cpu_incr(struct host1x_syncpt *sp);
120
121/* Load current value from hardware to the shadow register. */ 118/* Load current value from hardware to the shadow register. */
122u32 host1x_syncpt_load(struct host1x_syncpt *sp); 119u32 host1x_syncpt_load(struct host1x_syncpt *sp);
123 120
@@ -133,8 +130,8 @@ void host1x_syncpt_restore(struct host1x *host);
133/* Read current wait base value into shadow register and return it. */ 130/* Read current wait base value into shadow register and return it. */
134u32 host1x_syncpt_load_wait_base(struct host1x_syncpt *sp); 131u32 host1x_syncpt_load_wait_base(struct host1x_syncpt *sp);
135 132
136/* Increment sync point and its max. */ 133/* Request incrementing a sync point. */
137void host1x_syncpt_incr(struct host1x_syncpt *sp); 134int host1x_syncpt_incr(struct host1x_syncpt *sp);
138 135
139/* Indicate future operations by incrementing the sync point max. */ 136/* Indicate future operations by incrementing the sync point max. */
140u32 host1x_syncpt_incr_max(struct host1x_syncpt *sp, u32 incrs); 137u32 host1x_syncpt_incr_max(struct host1x_syncpt *sp, u32 incrs);
@@ -157,7 +154,7 @@ u32 host1x_syncpt_id(struct host1x_syncpt *sp);
157 154
158/* Allocate a sync point for a device. */ 155/* Allocate a sync point for a device. */
159struct host1x_syncpt *host1x_syncpt_request(struct device *dev, 156struct host1x_syncpt *host1x_syncpt_request(struct device *dev,
160 int client_managed); 157 bool client_managed);
161 158
162/* Free a sync point. */ 159/* Free a sync point. */
163void host1x_syncpt_free(struct host1x_syncpt *sp); 160void host1x_syncpt_free(struct host1x_syncpt *sp);