diff options
| author | Ajay Nandakumar <anandakumarm@nvidia.com> | 2017-01-31 00:57:56 -0500 |
|---|---|---|
| committer | mobile promotions <svcmobile_promotions@nvidia.com> | 2017-05-05 19:44:40 -0400 |
| commit | 29ffc31a01e226944beac43c8a440f4431d177d7 (patch) | |
| tree | 356092ff6bfa3905f0e29585852e7a32dcb39bb0 /include/uapi/linux | |
| parent | 0933ebbce81d3f256aaa542f92b05d422e4eab5a (diff) | |
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 <anandakumarm@nvidia.com>
Reviewed-on: http://git-master/r/1296362
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
Diffstat (limited to 'include/uapi/linux')
| -rw-r--r-- | include/uapi/linux/nvhost_pva_ioctl.h | 21 |
1 files changed, 20 insertions, 1 deletions
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 { | |||
| 249 | __u32 version; | 249 | __u32 version; |
| 250 | }; | 250 | }; |
| 251 | 251 | ||
| 252 | /** | ||
| 253 | * struct pva_ioctl_queue_attr - set queue attributes | ||
| 254 | * | ||
| 255 | * @attr_id: Attribute id which defines the attribute to be set | ||
| 256 | * @reserved: reserved | ||
| 257 | * @attr_val: The value to be set for the attribute | ||
| 258 | * | ||
| 259 | * This ioctl is used for setting attributes for a queue with id queue_id | ||
| 260 | * on the R5. | ||
| 261 | * | ||
| 262 | */ | ||
| 263 | struct pva_ioctl_queue_attr { | ||
| 264 | __u16 id; | ||
| 265 | __u16 reserved; | ||
| 266 | __u32 val; | ||
| 267 | }; | ||
| 268 | |||
| 252 | #define PVA_IOCTL_CHARACTERISTICS \ | 269 | #define PVA_IOCTL_CHARACTERISTICS \ |
| 253 | _IOWR(NVHOST_PVA_IOCTL_MAGIC, 1, struct pva_characteristics_req) | 270 | _IOWR(NVHOST_PVA_IOCTL_MAGIC, 1, struct pva_characteristics_req) |
| 254 | #define PVA_IOCTL_PIN \ | 271 | #define PVA_IOCTL_PIN \ |
| @@ -257,9 +274,11 @@ struct pva_ioctl_submit_args { | |||
| 257 | _IOW(NVHOST_PVA_IOCTL_MAGIC, 3, struct pva_pin_unpin_args) | 274 | _IOW(NVHOST_PVA_IOCTL_MAGIC, 3, struct pva_pin_unpin_args) |
| 258 | #define PVA_IOCTL_SUBMIT \ | 275 | #define PVA_IOCTL_SUBMIT \ |
| 259 | _IOW(NVHOST_PVA_IOCTL_MAGIC, 4, struct pva_ioctl_submit_args) | 276 | _IOW(NVHOST_PVA_IOCTL_MAGIC, 4, struct pva_ioctl_submit_args) |
| 277 | #define PVA_IOCTL_SET_QUEUE_ATTRIBUTES \ | ||
| 278 | _IOW(NVHOST_PVA_IOCTL_MAGIC, 5, struct pva_ioctl_queue_attr) | ||
| 260 | 279 | ||
| 261 | 280 | ||
| 262 | #define NVHOST_PVA_IOCTL_LAST _IOC_NR(PVA_IOCTL_SUBMIT) | 281 | #define NVHOST_PVA_IOCTL_LAST _IOC_NR(PVA_IOCTL_SET_QUEUE_ATTRIBUTES) |
| 263 | #define NVHOST_PVA_IOCTL_MAX_ARG_SIZE sizeof(struct pva_characteristics_req) | 282 | #define NVHOST_PVA_IOCTL_MAX_ARG_SIZE sizeof(struct pva_characteristics_req) |
| 264 | 283 | ||
| 265 | #endif /* __LINUX_NVHOST_PVA_IOCTL_H */ | 284 | #endif /* __LINUX_NVHOST_PVA_IOCTL_H */ |
