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

Change-Id: I175ad10922480689de57eb832040a7d59b29b9bd
Signed-off-by: Arvind M <am@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/2209415
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Ken Adams <kadams@nvidia.com>
Reviewed-by: Prashant Gaikwad <pgaikwad@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
This commit is contained in:
Arvind M
2019-09-30 14:25:34 +05:30
committed by Laxman Dewangan
parent 9343525fd1
commit 31a4285b17
2 changed files with 21 additions and 6 deletions

View File

@@ -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