diff options
author | Arto Merilainen <amerilainen@nvidia.com> | 2013-10-14 08:21:53 -0400 |
---|---|---|
committer | Thierry Reding <treding@nvidia.com> | 2013-10-31 04:55:48 -0400 |
commit | f5a954fed9b3eb04973ede72c50c66157fa9e15b (patch) | |
tree | d9d6faeb5b2bafbc5a4143feb10e27d975ec1da4 /include/linux/host1x.h | |
parent | 8736fe81532182ba0086a371fae0708ea42a2cdf (diff) |
gpu: host1x: Add syncpoint base support
This patch adds support for hardware syncpoint bases. This creates
a simple mechanism to stall the command FIFO until an operation is
completed.
Signed-off-by: Arto Merilainen <amerilainen@nvidia.com>
Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>
Signed-off-by: Thierry Reding <treding@nvidia.com>
Diffstat (limited to 'include/linux/host1x.h')
-rw-r--r-- | include/linux/host1x.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/linux/host1x.h b/include/linux/host1x.h index eb713dbbae29..f5b9b87ac9a9 100644 --- a/include/linux/host1x.h +++ b/include/linux/host1x.h | |||
@@ -125,7 +125,9 @@ static inline void host1x_bo_kunmap(struct host1x_bo *bo, | |||
125 | */ | 125 | */ |
126 | 126 | ||
127 | #define HOST1X_SYNCPT_CLIENT_MANAGED (1 << 0) | 127 | #define HOST1X_SYNCPT_CLIENT_MANAGED (1 << 0) |
128 | #define HOST1X_SYNCPT_HAS_BASE (1 << 1) | ||
128 | 129 | ||
130 | struct host1x_syncpt_base; | ||
129 | struct host1x_syncpt; | 131 | struct host1x_syncpt; |
130 | struct host1x; | 132 | struct host1x; |
131 | 133 | ||
@@ -140,6 +142,9 @@ struct host1x_syncpt *host1x_syncpt_request(struct device *dev, | |||
140 | unsigned long flags); | 142 | unsigned long flags); |
141 | void host1x_syncpt_free(struct host1x_syncpt *sp); | 143 | void host1x_syncpt_free(struct host1x_syncpt *sp); |
142 | 144 | ||
145 | struct host1x_syncpt_base *host1x_syncpt_get_base(struct host1x_syncpt *sp); | ||
146 | u32 host1x_syncpt_base_id(struct host1x_syncpt_base *base); | ||
147 | |||
143 | /* | 148 | /* |
144 | * host1x channel | 149 | * host1x channel |
145 | */ | 150 | */ |