From 29ffc31a01e226944beac43c8a440f4431d177d7 Mon Sep 17 00:00:00 2001 From: Ajay Nandakumar Date: Tue, 31 Jan 2017 11:27:56 +0530 Subject: tegra: host: pva: Support setting queue attributes Adding support to set queue attributes on PVA. JIRA PVA-47 Change-Id: Id3471c5f7b11e14d9f5e6acfe6ca5d981082ff86 Signed-off-by: Ajay Nandakumar Reviewed-on: http://git-master/r/1296362 Reviewed-by: mobile promotions Tested-by: mobile promotions --- include/uapi/linux/nvhost_pva_ioctl.h | 21 ++++++++++++++++++++- 1 file changed, 20 insertions(+), 1 deletion(-) (limited to 'include/uapi/linux') diff --git a/include/uapi/linux/nvhost_pva_ioctl.h b/include/uapi/linux/nvhost_pva_ioctl.h index a239a6f75..e577168c1 100644 --- a/include/uapi/linux/nvhost_pva_ioctl.h +++ b/include/uapi/linux/nvhost_pva_ioctl.h @@ -249,6 +249,23 @@ struct pva_ioctl_submit_args { __u32 version; }; +/** + * struct pva_ioctl_queue_attr - set queue attributes + * + * @attr_id: Attribute id which defines the attribute to be set + * @reserved: reserved + * @attr_val: The value to be set for the attribute + * + * This ioctl is used for setting attributes for a queue with id queue_id + * on the R5. + * + */ +struct pva_ioctl_queue_attr { + __u16 id; + __u16 reserved; + __u32 val; +}; + #define PVA_IOCTL_CHARACTERISTICS \ _IOWR(NVHOST_PVA_IOCTL_MAGIC, 1, struct pva_characteristics_req) #define PVA_IOCTL_PIN \ @@ -257,9 +274,11 @@ struct pva_ioctl_submit_args { _IOW(NVHOST_PVA_IOCTL_MAGIC, 3, struct pva_pin_unpin_args) #define PVA_IOCTL_SUBMIT \ _IOW(NVHOST_PVA_IOCTL_MAGIC, 4, struct pva_ioctl_submit_args) +#define PVA_IOCTL_SET_QUEUE_ATTRIBUTES \ + _IOW(NVHOST_PVA_IOCTL_MAGIC, 5, struct pva_ioctl_queue_attr) -#define NVHOST_PVA_IOCTL_LAST _IOC_NR(PVA_IOCTL_SUBMIT) +#define NVHOST_PVA_IOCTL_LAST _IOC_NR(PVA_IOCTL_SET_QUEUE_ATTRIBUTES) #define NVHOST_PVA_IOCTL_MAX_ARG_SIZE sizeof(struct pva_characteristics_req) #endif /* __LINUX_NVHOST_PVA_IOCTL_H */ -- cgit v1.2.2