summaryrefslogtreecommitdiffstats
path: root/include/linux
diff options
context:
space:
mode:
authorDeepak Nibade <dnibade@nvidia.com>2015-02-24 10:32:00 -0500
committerDan Willemsen <dwillemsen@nvidia.com>2015-04-04 21:08:19 -0400
commit1147500a3b5829bbc7e60f54873dafd3aeb0feb6 (patch)
treea579772b015da980c9a5f2b127e43947d0e2b67a /include/linux
parent4ed99d83f152b2665994f8e3c8cefab1bef982d8 (diff)
video: tegra: host: export common APIs in public header
Export below common APIs in linux/nvhost.h These APIs are needed by clients and should be available to clients anywhere in Kernel APIs: nvhost_client_device_init() nvhost_client_device_get_resources() nvhost_client_device_release() nvhost_check_bondout() nvhost_module_init() nvhost_module_add_domain() Common Struct: struct dev_pm_ops nvhost_module_pm_ops Bug 1584065 Change-Id: Id3c97568d979479e3c3df605bcdb8ce1e4a4d402 Signed-off-by: Deepak Nibade <dnibade@nvidia.com> Reviewed-on: http://git-master/r/710774 Reviewed-by: Arto Merilainen <amerilainen@nvidia.com>
Diffstat (limited to 'include/linux')
-rw-r--r--include/linux/nvhost.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/include/linux/nvhost.h b/include/linux/nvhost.h
index 8871c96c6..040ba072c 100644
--- a/include/linux/nvhost.h
+++ b/include/linux/nvhost.h
@@ -350,6 +350,18 @@ int nvhost_job_add_client_gather_address(struct nvhost_job *job,
350 u32 num_words, u32 class_id, dma_addr_t gather_address); 350 u32 num_words, u32 class_id, dma_addr_t gather_address);
351int nvhost_channel_submit(struct nvhost_job *job); 351int nvhost_channel_submit(struct nvhost_job *job);
352 352
353/* common device management APIs */
354int nvhost_client_device_get_resources(struct platform_device *dev);
355int nvhost_client_device_release(struct platform_device *dev);
356int nvhost_client_device_init(struct platform_device *dev);
357int nvhost_check_bondout(unsigned int id);
358
359/* common runtime pm and power domain APIs */
360int nvhost_module_init(struct platform_device *ndev);
361int nvhost_module_add_domain(struct generic_pm_domain *domain,
362 struct platform_device *pdev);
363extern const struct dev_pm_ops nvhost_module_pm_ops;
364
353/* public host1x sync-point management APIs */ 365/* public host1x sync-point management APIs */
354u32 nvhost_get_syncpt_client_managed(const char *syncpt_name); 366u32 nvhost_get_syncpt_client_managed(const char *syncpt_name);
355u32 nvhost_get_syncpt_host_managed(struct platform_device *pdev, 367u32 nvhost_get_syncpt_host_managed(struct platform_device *pdev,