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:
Mukund Madhusudan Atre
2021-07-12 20:47:38 -07:00
committed by Gerrit - the friendly Code Review server
parent 37de6613a8
commit 5dba22d1fc
31 changed files with 324 additions and 37 deletions

View File

@@ -239,7 +239,7 @@ static struct cam_ctx_ops
int cam_cre_context_init(struct cam_cre_context *ctx,
struct cam_hw_mgr_intf *hw_intf,
uint32_t ctx_id)
uint32_t ctx_id, int img_iommu_hdl)
{
int rc;
int i;
@@ -254,7 +254,7 @@ int cam_cre_context_init(struct cam_cre_context *ctx,
ctx->req_base[i].req_priv = ctx;
rc = cam_context_init(ctx->base, cre_dev_name, CAM_CRE, ctx_id,
NULL, hw_intf, ctx->req_base, CAM_CTX_REQ_MAX);
NULL, hw_intf, ctx->req_base, CAM_CTX_REQ_MAX, img_iommu_hdl);
if (rc) {
CAM_ERR(CAM_CRE, "Camera Context Base init failed");
goto err;