summaryrefslogtreecommitdiffstats
path: root/include/linux
diff options
context:
space:
mode:
authorDeepak Nibade <dnibade@nvidia.com>2015-06-03 05:45:38 -0400
committerArto Merilainen <amerilainen@nvidia.com>2015-06-05 03:53:03 -0400
commit7d14f40bc1bc2f0bfe72ce947b01ecd45717c528 (patch)
treeb6b5af0c7643a7e2fde64da24ad1012612d204d8 /include/linux
parent39fd5e26a0f4da2ddc3a0c390e12c9556f2e8919 (diff)
video: tegra: host: update syncpoint APIs to include platform_device
Update below syncpoint APIs to receive pointer to platform_device of either host1x or its child : nvhost_get_syncpt_client_managed() nvhost_syncpt_put_ref_ext() Remove below API : nvhost_get_syncpt_host_managed_by_name() Update below API to optionally receive names for host managed syncpoints : nvhost_get_syncpt_host_managed() If syncpoint name is specified by caller, then use user specified name. Otherwise form a name depending on name of device and parameter passed. Use new APIs as applicable to get or put a syncpoint Bug 1611482 Change-Id: I9e9f94deb3e0b86cb08a0c8b280398e99629adf6 Signed-off-by: Deepak Nibade <dnibade@nvidia.com> Reviewed-on: http://git-master/r/751907 Reviewed-by: Automatic_Commit_Validation_User Reviewed-by: Arto Merilainen <amerilainen@nvidia.com>
Diffstat (limited to 'include/linux')
-rw-r--r--include/linux/nvhost.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/include/linux/nvhost.h b/include/linux/nvhost.h
index 2351efdb8..1de617af3 100644
--- a/include/linux/nvhost.h
+++ b/include/linux/nvhost.h
@@ -390,11 +390,11 @@ int nvhost_module_add_domain(struct generic_pm_domain *domain,
390extern const struct dev_pm_ops nvhost_module_pm_ops; 390extern const struct dev_pm_ops nvhost_module_pm_ops;
391 391
392/* public host1x sync-point management APIs */ 392/* public host1x sync-point management APIs */
393u32 nvhost_get_syncpt_client_managed(const char *syncpt_name); 393u32 nvhost_get_syncpt_client_managed(struct platform_device *pdev,
394 const char *syncpt_name);
394u32 nvhost_get_syncpt_host_managed(struct platform_device *pdev, 395u32 nvhost_get_syncpt_host_managed(struct platform_device *pdev,
395 u32 param); 396 u32 param, const char *syncpt_name);
396u32 nvhost_get_syncpt_host_managed_by_name(const char *syncpt_name); 397void nvhost_syncpt_put_ref_ext(struct platform_device *pdev, u32 id);
397void nvhost_syncpt_put_ref_ext(u32 id);
398const char *nvhost_syncpt_get_name(struct platform_device *dev, int id); 398const char *nvhost_syncpt_get_name(struct platform_device *dev, int id);
399u32 nvhost_syncpt_incr_max_ext(struct platform_device *dev, u32 id, u32 incrs); 399u32 nvhost_syncpt_incr_max_ext(struct platform_device *dev, u32 id, u32 incrs);
400void nvhost_syncpt_cpu_incr_ext(struct platform_device *dev, u32 id); 400void nvhost_syncpt_cpu_incr_ext(struct platform_device *dev, u32 id);