From a47b24973e9d7c5dcb75cd4ded39dd109274b791 Mon Sep 17 00:00:00 2001 From: Arvind M Date: Mon, 30 Sep 2019 14:25:34 +0530 Subject: video: tegra: host: pin with specific permission [1] Facilitate pinning of buffer with user requested access permission [2] This feature allows to restrict access to buffers shared with the device. Jira DLA-2502 Jira DLA-4175 Bug 3200422 Change-Id: I175ad10922480689de57eb832040a7d59b29b9bd Signed-off-by: Arvind M Reviewed-on: https://git-master.nvidia.com/r/2209415 Reviewed-on: https://git-master.nvidia.com/r/c/linux-nvidia/+/2412573 GVS: Gerrit_Virtual_Submit Tested-by: Bharat Nihalani Tested-by: mobile promotions Reviewed-by: Mitch Harwell Reviewed-by: Bharat Nihalani Reviewed-by: mobile promotions --- include/uapi/linux/nvhost_nvdla_ioctl.h | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'include/uapi/linux') diff --git a/include/uapi/linux/nvhost_nvdla_ioctl.h b/include/uapi/linux/nvhost_nvdla_ioctl.h index d2cf3ea0d..3bb1a8183 100644 --- a/include/uapi/linux/nvhost_nvdla_ioctl.h +++ b/include/uapi/linux/nvhost_nvdla_ioctl.h @@ -52,6 +52,21 @@ struct nvdla_ping_args { __u32 out_response; }; +/** + * struct nvdla_mem_share_handle structure for sharing memory identifier + * and its properties + * + * @share_id identifier of handle to be shared + * @offset offset within the shared memory + * @access_flags access with which memory is intended to be shared + * @reserved reserved for future use + **/ +struct nvdla_mem_share_handle { + __u32 share_id; + __u32 offset; + __u32 access_flags; + __u32 reserved; +}; /** * struct nvdla_pin_unpin_args strcture args for buffer pin/unpin -- cgit v1.2.2