diff options
author | Arto Merilainen <amerilainen@nvidia.com> | 2014-03-05 16:21:10 +0200 |
---|---|---|
committer | Arto Merilainen <amerilainen@nvidia.com> | 2014-03-25 05:39:40 -0700 |
commit | 379ff392afb81f9a563f56471ff37d57188d52d7 (patch) | |
tree | 7349f8f4a276923ff6563e9415c90151c081f6dc /include/linux/nvhost.h | |
parent | 9472de168089e493541ff8ba6d10958a9b5a74e6 (diff) |
video: tegra: host: Extend syncpoint API
This patch extends syncpoint API to support some commonly used functions.
In addition, this patch modifies the current API so that it does not
require giving the host1x client device but it allows giving also host1x
device pointer directly.
Change-Id: Ie3ea53b0faaaa8209639a41f7c375b025b3a277e
Signed-off-by: Arto Merilainen <amerilainen@nvidia.com>
Reviewed-on: http://git-master/r/378343
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>
Diffstat (limited to 'include/linux/nvhost.h')
-rw-r--r-- | include/linux/nvhost.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/include/linux/nvhost.h b/include/linux/nvhost.h index ab6eb9d7ae7f..ef44b5b2971a 100644 --- a/include/linux/nvhost.h +++ b/include/linux/nvhost.h @@ -270,6 +270,10 @@ void nvhost_module_idle_ext(struct platform_device *dev); /* public host1x sync-point management APIs */ u32 nvhost_get_syncpt_client_managed(const char *syncpt_name); +u32 nvhost_get_syncpt_host_managed(struct platform_device *pdev, + u32 param); +void nvhost_free_syncpt(u32 id); +const char *nvhost_syncpt_get_name(struct platform_device *dev, int id); u32 nvhost_syncpt_incr_max_ext(struct platform_device *dev, u32 id, u32 incrs); void nvhost_syncpt_cpu_incr_ext(struct platform_device *dev, u32 id); int nvhost_syncpt_read_ext_check(struct platform_device *dev, u32 id, u32 *val); @@ -277,6 +281,10 @@ int nvhost_syncpt_wait_timeout_ext(struct platform_device *dev, u32 id, u32 thre u32 timeout, u32 *value, struct timespec *ts); int nvhost_syncpt_create_fence_single_ext(struct platform_device *dev, u32 id, u32 thresh, const char *name, int *fence_fd); +int nvhost_syncpt_is_expired_ext(struct platform_device *dev, + u32 id, u32 thresh); +void nvhost_syncpt_set_min_eq_max_ext(struct platform_device *dev, u32 id); +int nvhost_syncpt_nb_pts_ext(struct platform_device *dev); /* public host1x interrupt management APIs */ int nvhost_intr_register_notifier(struct platform_device *pdev, |