Allow client to send information to replace a specific field of the cmd buffer with the physical address. This is done via a new IOCTL, TZCOM_IOCTL_SEND_CMD_FD_REQ, which is used to import the ion fd handle. This IOCTL takes in a new send_cmd_fd_op_req structure that has the same format as send-cmd_op_req with a new field added: an array of ion handles (ifd_data.fd) and cmd_buf_offset. The client sends in an array of ion fd handle along with the offset to the command buffer field. This new IOCTL allows a client to send information regarding which field(s) (at cmd_buf_offset) in the cmd_buf to replace. These field(s) are replaced with the physical addr of the buffer addressed by the respective ifd_data.fd handle. Change-Id: If210013d46e24776fe6f5c6aa257505b3b1e6e00 Signed-off-by: Mona Hossain <mhossain@codeaurora.org>
4.4 KiB
4.4 KiB