From 1147500a3b5829bbc7e60f54873dafd3aeb0feb6 Mon Sep 17 00:00:00 2001 From: Deepak Nibade Date: Tue, 24 Feb 2015 21:02:00 +0530 Subject: 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 Reviewed-on: http://git-master/r/710774 Reviewed-by: Arto Merilainen --- include/linux/nvhost.h | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'include/linux') 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, u32 num_words, u32 class_id, dma_addr_t gather_address); int nvhost_channel_submit(struct nvhost_job *job); +/* common device management APIs */ +int nvhost_client_device_get_resources(struct platform_device *dev); +int nvhost_client_device_release(struct platform_device *dev); +int nvhost_client_device_init(struct platform_device *dev); +int nvhost_check_bondout(unsigned int id); + +/* common runtime pm and power domain APIs */ +int nvhost_module_init(struct platform_device *ndev); +int nvhost_module_add_domain(struct generic_pm_domain *domain, + struct platform_device *pdev); +extern const struct dev_pm_ops nvhost_module_pm_ops; + /* 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, -- cgit v1.2.2