summaryrefslogtreecommitdiffstats
path: root/include/linux
diff options
context:
space:
mode:
authorDeepak Nibade <dnibade@nvidia.com>2018-02-26 08:38:39 -0500
committermobile promotions <svcmobile_promotions@nvidia.com>2018-03-06 15:18:35 -0500
commitd3ce5146f6bdff47cd36d5ed2e561997ec1b7a2e (patch)
tree12b7349b25cf5c42bb699f92be0008619bb76059 /include/linux
parent573cb291ea2de46d1da0737a5893e3b94f23a5f9 (diff)
video: tegra: host: add User API to trigger event on poll'able FD
Add User IOCTL API NVHOST_IOCTL_CTRL_POLL_FD_TRIGGER_EVENT which will accept a syncpoint_id, a threshold and a file descriptor This API will register a fast notifier with syncpoint_id and threshold, and the notifier will post the event to poll'able fd received Bug 200326065 Jira HOSTX-332 Change-Id: I2eb452aea9beb2edb395f11b75f35511e108d42d Signed-off-by: Deepak Nibade <dnibade@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/1665695 Reviewed-by: svc-mobile-coverity <svc-mobile-coverity@nvidia.com> Reviewed-by: Mikko Perttunen <mperttunen@nvidia.com> GVS: Gerrit_Virtual_Submit Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com> Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
Diffstat (limited to 'include/linux')
-rw-r--r--include/linux/nvhost_ioctl.h11
1 files changed, 10 insertions, 1 deletions
diff --git a/include/linux/nvhost_ioctl.h b/include/linux/nvhost_ioctl.h
index 94d0f4a99..1c7b99d10 100644
--- a/include/linux/nvhost_ioctl.h
+++ b/include/linux/nvhost_ioctl.h
@@ -444,6 +444,13 @@ struct nvhost_ctrl_poll_fd_create_args {
444 __u32 padding; 444 __u32 padding;
445}; 445};
446 446
447struct nvhost_ctrl_poll_fd_trigger_event_args {
448 __s32 fd;
449 __u32 id;
450 __u32 thresh;
451 __u32 padding;
452};
453
447#define NVHOST_IOCTL_CTRL_SYNCPT_READ \ 454#define NVHOST_IOCTL_CTRL_SYNCPT_READ \
448 _IOWR(NVHOST_IOCTL_MAGIC, 1, struct nvhost_ctrl_syncpt_read_args) 455 _IOWR(NVHOST_IOCTL_MAGIC, 1, struct nvhost_ctrl_syncpt_read_args)
449#define NVHOST_IOCTL_CTRL_SYNCPT_INCR \ 456#define NVHOST_IOCTL_CTRL_SYNCPT_INCR \
@@ -482,9 +489,11 @@ struct nvhost_ctrl_poll_fd_create_args {
482 _IOWR(NVHOST_IOCTL_MAGIC, 15, struct nvhost_ctrl_check_module_support_args) 489 _IOWR(NVHOST_IOCTL_MAGIC, 15, struct nvhost_ctrl_check_module_support_args)
483#define NVHOST_IOCTL_CTRL_POLL_FD_CREATE \ 490#define NVHOST_IOCTL_CTRL_POLL_FD_CREATE \
484 _IOR(NVHOST_IOCTL_MAGIC, 16, struct nvhost_ctrl_poll_fd_create_args) 491 _IOR(NVHOST_IOCTL_MAGIC, 16, struct nvhost_ctrl_poll_fd_create_args)
492#define NVHOST_IOCTL_CTRL_POLL_FD_TRIGGER_EVENT \
493 _IOW(NVHOST_IOCTL_MAGIC, 17, struct nvhost_ctrl_poll_fd_trigger_event_args)
485 494
486#define NVHOST_IOCTL_CTRL_LAST \ 495#define NVHOST_IOCTL_CTRL_LAST \
487 _IOC_NR(NVHOST_IOCTL_CTRL_POLL_FD_CREATE) 496 _IOC_NR(NVHOST_IOCTL_CTRL_POLL_FD_TRIGGER_EVENT)
488#define NVHOST_IOCTL_CTRL_MAX_ARG_SIZE \ 497#define NVHOST_IOCTL_CTRL_MAX_ARG_SIZE \
489 sizeof(struct nvhost_ctrl_syncpt_waitmex_args) 498 sizeof(struct nvhost_ctrl_syncpt_waitmex_args)
490 499