msm: camera: common: Add buffer send and receive mechanism
Add packet based buffer send and retrieve mechanism for presil testing. CRs-Fixed: 2932495 Change-Id: Ifd1e0fdb8b12feabb884e02a07a3813db01a3899 Signed-off-by: Mukund Madhusudan Atre <matre@codeaurora.org>
This commit is contained in:

committed by
Gerrit - the friendly Code Review server

parent
37de6613a8
commit
5dba22d1fc
@@ -1,6 +1,6 @@
|
||||
/* SPDX-License-Identifier: GPL-2.0-only */
|
||||
/*
|
||||
* Copyright (c) 2017-2020, The Linux Foundation. All rights reserved.
|
||||
* Copyright (c) 2017-2021, The Linux Foundation. All rights reserved.
|
||||
*/
|
||||
|
||||
#ifndef _CAM_PACKET_UTIL_H_
|
||||
@@ -137,4 +137,28 @@ int cam_packet_util_process_generic_cmd_buffer(
|
||||
struct cam_cmd_buf_desc *cmd_buf,
|
||||
cam_packet_generic_blob_handler blob_handler_cb, void *user_data);
|
||||
|
||||
/**
|
||||
* @brief : API to retrieve image buffers from presil after processing is
|
||||
* done,using packet from request
|
||||
*
|
||||
* @packet: Packet pointer for current request
|
||||
* @iommu_hdl: IOMMU hdl for Image buffers
|
||||
* @out_res_id: Resource ID corresponding to the output buffer
|
||||
*
|
||||
* @return: Success or Failure
|
||||
*/
|
||||
int cam_presil_retrieve_buffers_from_packet(struct cam_packet *packet, int iommu_hdl,
|
||||
int out_res_id);
|
||||
|
||||
/**
|
||||
* @brief : API to send relevant buffers to presil
|
||||
*
|
||||
* @packet : Packet pointer for current request
|
||||
* @img_iommu_hdl: IOMMU hdl for Image buffers
|
||||
* @cdm_iommu_hdl: IOMMU hdl for cdm buffers
|
||||
*
|
||||
*/
|
||||
int cam_presil_send_buffers_from_packet(struct cam_packet *packet, int img_iommu_hdl,
|
||||
int cdm_iommu_hdl);
|
||||
|
||||
#endif /* _CAM_PACKET_UTIL_H_ */
|
||||
|
Reference in New Issue
Block a user