summaryrefslogtreecommitdiff
path: root/include/linux/nvhost_ioctl.h
diff options
context:
space:
mode:
authorXue Dong <xdong@nvidia.com>2013-03-08 16:11:36 -0800
committerDan Willemsen <dwillemsen@nvidia.com>2013-09-14 13:23:07 -0700
commit95491b623bdc6cfa19920c78f3f99284d4dff073 (patch)
tree967a2a5dfccfe0fd9f9227df81e1f3cb3490483f /include/linux/nvhost_ioctl.h
parent0d49c836fa61fe81b42903270fe1875adaec471c (diff)
drivers : video: host: gpu cycle state support
bug 1154464 Change-Id: Ie35f8ecc2236e4abdbd86c14a646a12b00b6144e Signed-off-by: Xue Dong <xdong@nvidia.com> Reviewed-on: http://git-master/r/201518 Reviewed-by: Chao Xu <cxu@nvidia.com>
Diffstat (limited to 'include/linux/nvhost_ioctl.h')
-rw-r--r--include/linux/nvhost_ioctl.h9
1 files changed, 8 insertions, 1 deletions
diff --git a/include/linux/nvhost_ioctl.h b/include/linux/nvhost_ioctl.h
index 3d14ed16b8c7..61ce7110bebb 100644
--- a/include/linux/nvhost_ioctl.h
+++ b/include/linux/nvhost_ioctl.h
@@ -190,6 +190,11 @@ struct nvhost_wait_args {
} condition; /* determined by type field */
};
+/* cycle stats support */
+struct nvhost_cycle_stats_args {
+ u32 nvmap_handle;
+};
+
struct nvhost_read_3d_reg_args {
__u32 offset;
__u32 value;
@@ -336,9 +341,11 @@ struct nvhost_set_ctxswitch_args {
_IOWR(NVHOST_IOCTL_MAGIC, 104, struct nvhost_alloc_obj_ctx_args)
#define NVHOST_IOCTL_CHANNEL_FREE_OBJ_CTX \
_IOR(NVHOST_IOCTL_MAGIC, 105, struct nvhost_free_obj_ctx_args)
+#define NVHOST_IOCTL_CHANNEL_CYCLE_STATS \
+ _IOWR(NVHOST_IOCTL_MAGIC, 106, struct nvhost_cycle_stats_args)
#define NVHOST_IOCTL_CHANNEL_LAST \
- _IOC_NR(NVHOST_IOCTL_CHANNEL_ZCULL_BIND)
+ _IOC_NR(NVHOST_IOCTL_CHANNEL_CYCLE_STATS)
#define NVHOST_IOCTL_CHANNEL_MAX_ARG_SIZE sizeof(struct nvhost_submit_args)