securemsm-kernel: Add the base SMMU proxy driver

Add the base of the SMMU proxy driver for Android. The proxy driver
will take memory from the PVM, share it with the TVM and map it into
an S1 context bank on the TVM, before returning an IOVA for the mapped
buffer.

This patch intended to create the driver to allow other kenrel modules
to compile against it.

Change-Id: Id2951fbf467fcce0a3f1a1c45eba5b041f76f080
Signed-off-by: Chris Goldsworthy <quic_cgoldswo@quicinc.com>
此提交包含在:
Chris Goldsworthy
2022-12-12 21:58:00 -08:00
父節點 08b1eb82e2
當前提交 e9c5417cdd
共有 8 個檔案被更改,包括 199 行新增0 行删除

查看文件

@@ -0,0 +1,14 @@
/* SPDX-License-Identifier: GPL-2.0-only */
/*
* Copyright (c) 2023 Qualcomm Innovation Center, Inc. All rights reserved.
*/
#ifndef __QTI_SMMU_PROXY_H_
#define __QTI_SMMU_PROXY_H_
#include "../uapi/linux/qti-smmu-proxy.h"
#define SMMU_PROXY_MEM_ALIGNMENT (1 << 21)
int smmu_proxy_get_csf_version(struct csf_version *csf_version);
#endif /* __QTI_SMMU_PROXY_H_ */