diff options
| author | Arto Merilainen <amerilainen@nvidia.com> | 2012-09-26 16:05:18 +0300 |
|---|---|---|
| committer | Dan Willemsen <dwillemsen@nvidia.com> | 2013-09-14 13:04:11 -0700 |
| commit | 8e2a4e9c836c56652965d6950b830809f0eda89f (patch) | |
| tree | 96f771d3a75aeea76070e04f17d861031de2acf5 /include/linux/nvhost_ioctl.h | |
| parent | bb0b53207c647152d278895e909d19da30267411 (diff) | |
video: tegra: host: "SP wait more extended" ioctl
This patch adds WAITMEX ioctl for querying extended information
about syncpoint completion (i.e. accurate time of ISR).
Bug 1051737
Change-Id: I434e04c3b0fd37fe84ff8788458dd75e86fe691d
Signed-off-by: Arto Merilainen <amerilainen@nvidia.com>
Reviewed-on: http://git-master/r/138969
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>
Diffstat (limited to 'include/linux/nvhost_ioctl.h')
| -rw-r--r-- | include/linux/nvhost_ioctl.h | 18 |
1 files changed, 16 insertions, 2 deletions
diff --git a/include/linux/nvhost_ioctl.h b/include/linux/nvhost_ioctl.h index 3e2d14729179..f454c4c69e88 100644 --- a/include/linux/nvhost_ioctl.h +++ b/include/linux/nvhost_ioctl.h @@ -255,6 +255,17 @@ struct nvhost_ctrl_syncpt_waitex_args { __u32 value; }; +struct nvhost_ctrl_syncpt_waitmex_args { + __u32 id; + __u32 thresh; + __s32 timeout; + __u32 value; + __u32 tv_sec; + __u32 tv_nsec; + __u32 reserved_1; + __u32 reserved_2; +}; + struct nvhost_ctrl_module_mutex_args { __u32 id; __u32 lock; @@ -292,9 +303,12 @@ enum nvhost_module_id { #define NVHOST_IOCTL_CTRL_SYNCPT_READ_MAX \ _IOWR(NVHOST_IOCTL_MAGIC, 8, struct nvhost_ctrl_syncpt_read_args) +#define NVHOST_IOCTL_CTRL_SYNCPT_WAITMEX \ + _IOWR(NVHOST_IOCTL_MAGIC, 9, struct nvhost_ctrl_syncpt_waitmex_args) + #define NVHOST_IOCTL_CTRL_LAST \ - _IOC_NR(NVHOST_IOCTL_CTRL_SYNCPT_READ_MAX) + _IOC_NR(NVHOST_IOCTL_CTRL_SYNCPT_WAITMEX) #define NVHOST_IOCTL_CTRL_MAX_ARG_SIZE \ - sizeof(struct nvhost_ctrl_module_regrdwr_args) + sizeof(struct nvhost_ctrl_syncpt_waitmex_args) #endif |
