summaryrefslogtreecommitdiff
path: root/include/linux/nvhost.h
diff options
context:
space:
mode:
authorArto Merilainen <amerilainen@nvidia.com>2014-03-05 15:33:54 +0200
committerArto Merilainen <amerilainen@nvidia.com>2014-03-25 05:39:31 -0700
commit9472de168089e493541ff8ba6d10958a9b5a74e6 (patch)
tree59fca46ca070a5286a3c0a8ecd8f2a7c1a71097c /include/linux/nvhost.h
parent9639afc93d564bad31acf8cc0d81d7e9d7e0651d (diff)
video: tegra: host: Support external syncpt cbs
This far the nvhost driver has published interface for waiting syncpoint values synchronously, however, we have need to do similar waiting asynchronously (i.e. trigger event when certain syncpoint value has been reached). This patch adds public function nvhost_intr_register_notifier() that allows registering callbacks. Change-Id: I3e8a12fad229b264a2ace5bb7f4726e17c90f112 Signed-off-by: Arto Merilainen <amerilainen@nvidia.com> Reviewed-on: http://git-master/r/378342 Reviewed-by: Automatic_Commit_Validation_User Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>
Diffstat (limited to 'include/linux/nvhost.h')
-rw-r--r--include/linux/nvhost.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/include/linux/nvhost.h b/include/linux/nvhost.h
index 48b1ce177a2a..ab6eb9d7ae7f 100644
--- a/include/linux/nvhost.h
+++ b/include/linux/nvhost.h
@@ -278,6 +278,12 @@ int nvhost_syncpt_wait_timeout_ext(struct platform_device *dev, u32 id, u32 thre
int nvhost_syncpt_create_fence_single_ext(struct platform_device *dev,
u32 id, u32 thresh, const char *name, int *fence_fd);
+/* public host1x interrupt management APIs */
+int nvhost_intr_register_notifier(struct platform_device *pdev,
+ u32 id, u32 thresh,
+ void (*callback)(void *, int),
+ void *private_data);
+
#ifdef CONFIG_TEGRA_GK20A
int nvhost_vpr_info_fetch(void);
#else