diff options
| author | Deepak Nibade <dnibade@nvidia.com> | 2015-06-03 05:45:38 -0400 |
|---|---|---|
| committer | Arto Merilainen <amerilainen@nvidia.com> | 2015-06-05 03:53:03 -0400 |
| commit | 7d14f40bc1bc2f0bfe72ce947b01ecd45717c528 (patch) | |
| tree | b6b5af0c7643a7e2fde64da24ad1012612d204d8 /include/linux | |
| parent | 39fd5e26a0f4da2ddc3a0c390e12c9556f2e8919 (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.h | 8 |
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, | |||
| 390 | extern const struct dev_pm_ops nvhost_module_pm_ops; | 390 | extern 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 */ |
| 393 | u32 nvhost_get_syncpt_client_managed(const char *syncpt_name); | 393 | u32 nvhost_get_syncpt_client_managed(struct platform_device *pdev, |
| 394 | const char *syncpt_name); | ||
| 394 | u32 nvhost_get_syncpt_host_managed(struct platform_device *pdev, | 395 | u32 nvhost_get_syncpt_host_managed(struct platform_device *pdev, |
| 395 | u32 param); | 396 | u32 param, const char *syncpt_name); |
| 396 | u32 nvhost_get_syncpt_host_managed_by_name(const char *syncpt_name); | 397 | void nvhost_syncpt_put_ref_ext(struct platform_device *pdev, u32 id); |
| 397 | void nvhost_syncpt_put_ref_ext(u32 id); | ||
| 398 | const char *nvhost_syncpt_get_name(struct platform_device *dev, int id); | 398 | const char *nvhost_syncpt_get_name(struct platform_device *dev, int id); |
| 399 | u32 nvhost_syncpt_incr_max_ext(struct platform_device *dev, u32 id, u32 incrs); | 399 | u32 nvhost_syncpt_incr_max_ext(struct platform_device *dev, u32 id, u32 incrs); |
| 400 | void nvhost_syncpt_cpu_incr_ext(struct platform_device *dev, u32 id); | 400 | void nvhost_syncpt_cpu_incr_ext(struct platform_device *dev, u32 id); |
