summaryrefslogtreecommitdiffstats
path: root/include/linux/host1x.h
diff options
context:
space:
mode:
authorThierry Reding2015-01-28 14:29:02 +0100
committerThierry Reding2015-04-02 18:46:20 +0200
commitb4a20144e0c0a45431695fa5968ce2ed8c9ce6ca (patch)
treeb88e8ff21a35d398d18b1bb7725a80f307c51bfc /include/linux/host1x.h
parentdrm/tegra: sor: Dump registers via debugfs (diff)
downloadkernel-qcow2-linux-b4a20144e0c0a45431695fa5968ce2ed8c9ce6ca.tar.gz
kernel-qcow2-linux-b4a20144e0c0a45431695fa5968ce2ed8c9ce6ca.tar.xz
kernel-qcow2-linux-b4a20144e0c0a45431695fa5968ce2ed8c9ce6ca.zip
gpu: host1x: Export host1x_syncpt_read()
This function is used to read the current value of the syncpt and is useful in situations where drivers don't schedule work and wait for the syncpoint to increment. One particular use-case is using the syncpoint as a VBLANK counter. Signed-off-by: Thierry Reding <treding@nvidia.com>
Diffstat (limited to 'include/linux/host1x.h')
-rw-r--r--include/linux/host1x.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/host1x.h b/include/linux/host1x.h
index 464f33814a94..d2ba7d334039 100644
--- a/include/linux/host1x.h
+++ b/include/linux/host1x.h
@@ -135,6 +135,7 @@ struct host1x_syncpt *host1x_syncpt_get(struct host1x *host, u32 id);
u32 host1x_syncpt_id(struct host1x_syncpt *sp);
u32 host1x_syncpt_read_min(struct host1x_syncpt *sp);
u32 host1x_syncpt_read_max(struct host1x_syncpt *sp);
+u32 host1x_syncpt_read(struct host1x_syncpt *sp);
int host1x_syncpt_incr(struct host1x_syncpt *sp);
u32 host1x_syncpt_incr_max(struct host1x_syncpt *sp, u32 incrs);
int host1x_syncpt_wait(struct host1x_syncpt *sp, u32 thresh, long timeout,