mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-06-27 17:11:46 +00:00
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>
This commit is contained in:
parent
8736fe8153
commit
f5a954fed9
6 changed files with 92 additions and 2 deletions
|
@ -125,7 +125,9 @@ static inline void host1x_bo_kunmap(struct host1x_bo *bo,
|
|||
*/
|
||||
|
||||
#define HOST1X_SYNCPT_CLIENT_MANAGED (1 << 0)
|
||||
#define HOST1X_SYNCPT_HAS_BASE (1 << 1)
|
||||
|
||||
struct host1x_syncpt_base;
|
||||
struct host1x_syncpt;
|
||||
struct host1x;
|
||||
|
||||
|
@ -140,6 +142,9 @@ struct host1x_syncpt *host1x_syncpt_request(struct device *dev,
|
|||
unsigned long flags);
|
||||
void host1x_syncpt_free(struct host1x_syncpt *sp);
|
||||
|
||||
struct host1x_syncpt_base *host1x_syncpt_get_base(struct host1x_syncpt *sp);
|
||||
u32 host1x_syncpt_base_id(struct host1x_syncpt_base *base);
|
||||
|
||||
/*
|
||||
* host1x channel
|
||||
*/
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue