diff options
| author | Deepak Nibade <dnibade@nvidia.com> | 2015-02-24 10:32:00 -0500 |
|---|---|---|
| committer | Dan Willemsen <dwillemsen@nvidia.com> | 2015-04-04 21:08:19 -0400 |
| commit | 1147500a3b5829bbc7e60f54873dafd3aeb0feb6 (patch) | |
| tree | a579772b015da980c9a5f2b127e43947d0e2b67a /include/linux | |
| parent | 4ed99d83f152b2665994f8e3c8cefab1bef982d8 (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.h | 12 |
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); |
| 351 | int nvhost_channel_submit(struct nvhost_job *job); | 351 | int nvhost_channel_submit(struct nvhost_job *job); |
| 352 | 352 | ||
| 353 | /* common device management APIs */ | ||
| 354 | int nvhost_client_device_get_resources(struct platform_device *dev); | ||
| 355 | int nvhost_client_device_release(struct platform_device *dev); | ||
| 356 | int nvhost_client_device_init(struct platform_device *dev); | ||
| 357 | int nvhost_check_bondout(unsigned int id); | ||
| 358 | |||
| 359 | /* common runtime pm and power domain APIs */ | ||
| 360 | int nvhost_module_init(struct platform_device *ndev); | ||
| 361 | int nvhost_module_add_domain(struct generic_pm_domain *domain, | ||
| 362 | struct platform_device *pdev); | ||
| 363 | extern const struct dev_pm_ops nvhost_module_pm_ops; | ||
| 364 | |||
| 353 | /* public host1x sync-point management APIs */ | 365 | /* public host1x sync-point management APIs */ |
| 354 | u32 nvhost_get_syncpt_client_managed(const char *syncpt_name); | 366 | u32 nvhost_get_syncpt_client_managed(const char *syncpt_name); |
| 355 | u32 nvhost_get_syncpt_host_managed(struct platform_device *pdev, | 367 | u32 nvhost_get_syncpt_host_managed(struct platform_device *pdev, |
