From 1c7ca4fd69f129b13fb07f655a453af2d5cd12f6 Mon Sep 17 00:00:00 2001 From: Shridhar Rasal Date: Fri, 1 Jul 2016 21:18:47 +0530 Subject: video: tegra: host: add buffer pin and unpin for nvdla - Using nvhost buffer management framework API's support Buffer pin and unpin for multiple buffer handles. Jira DLA-21 Change-Id: I029dfae698a699caa6e19ef6e7e3c0641b9de782 Signed-off-by: Shridhar Rasal Reviewed-on: http://git-master/r/1174651 Reviewed-by: Prashant Gaikwad --- include/linux/nvhost_nvdla_ioctl.h | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) (limited to 'include/linux') diff --git a/include/linux/nvhost_nvdla_ioctl.h b/include/linux/nvhost_nvdla_ioctl.h index 633facb2a..b5b6c676b 100644 --- a/include/linux/nvhost_nvdla_ioctl.h +++ b/include/linux/nvhost_nvdla_ioctl.h @@ -33,15 +33,25 @@ struct nvdla_ctrl_ping_args { __u32 out_response; }; +struct nvdla_ctrl_pin_unpin_args { + __u64 buffers; + __u32 num_buffers; + __u32 reserved; +}; + #define NVHOST_NVDLA_IOCTL_MAGIC 'D' #define NVDLA_IOCTL_CTRL_PING \ _IOWR(NVHOST_NVDLA_IOCTL_MAGIC, 1, struct nvdla_ctrl_ping_args) +#define NVDLA_IOCTL_CTRL_PIN \ + _IOW(NVHOST_NVDLA_IOCTL_MAGIC, 2, struct nvdla_ctrl_pin_unpin_args) +#define NVDLA_IOCTL_CTRL_UNPIN \ + _IOW(NVHOST_NVDLA_IOCTL_MAGIC, 3, struct nvdla_ctrl_pin_unpin_args) #define NVDLA_IOCTL_CTRL_LAST \ - _IOC_NR(NVDLA_IOCTL_CTRL_PING) + _IOC_NR(NVDLA_IOCTL_CTRL_UNPIN) #define NVDLA_IOCTL_CTRL_MAX_ARG_SIZE \ - sizeof(struct nvdla_ctrl_ping_args) + sizeof(struct nvdla_ctrl_pin_unpin_args) #endif /* __LINUX_NVHOST_NVDLA_IOCTL_H */ -- cgit v1.2.2