Files
android_kernel_samsung_sm86…/qcom/opensource/securemsm-kernel/smcinvoke/smci_qseecomcompat.h
David Wronek 587685c687 Add 'qcom/opensource/securemsm-kernel/' from commit 'a6005ceed271246683596608e4c56b4d921fb363'
git-subtree-dir: qcom/opensource/securemsm-kernel
git-subtree-mainline: 46e9caf0d0
git-subtree-split: a6005ceed2
Change-Id:
repo: https://git.codelinaro.org/clo/la/platform/vendor/qcom/opensource/securemsm-kernel
tag: LA.VENDOR.14.3.0.r1-17300-lanai.QSSI15.0
2024-10-06 16:45:20 +02:00

65 行
1.7 KiB
C

/* SPDX-License-Identifier: GPL-2.0-only
*
* Copyright (c) 2024 Qualcomm Innovation Center, Inc. All rights reserved.
*/
#ifndef __SMCI_QSEECOMCOMPAT_H
#define __SMCI_QSEECOMCOMPAT_H
#include "smci_object.h"
#include "IQSEEComCompat.h"
#define SMCI_QSEECOMCOMPAT_ERROR_APP_UNAVAILABLE INT32_C(10)
#define SMCI_QSEECOMCOMPAT_OP_SENDREQUEST 0
#define SMCI_QSEECOMCOMPAT_OP_DISCONNECT 1
#define SMCI_QSEECOMCOMPAT_OP_UNLOAD 2
static inline int32_t
smci_qseecomcompat_release(struct smci_object self)
{
return IQSEEComCompat_release(self);
}
static inline int32_t
smci_qseecomcompat_retain(struct smci_object self)
{
return IQSEEComCompat_retain(self);
}
static inline int32_t
smci_qseecomcompat_sendrequest(struct smci_object self,
const void *req_in_ptr, size_t req_in_len,
const void *rsp_in_ptr, size_t rsp_in_len,
void *req_out_ptr, size_t req_out_len, size_t *req_out_lenout,
void *rsp_out_ptr, size_t rsp_out_len, size_t *rsp_out_lenout,
const uint32_t *embedded_buf_offsets_ptr,
size_t embedded_buf_offsets_len, uint32_t is64_val,
struct smci_object smo1_val, struct smci_object smo2_val,
struct smci_object smo3_val, struct smci_object smo4_val)
{
return IQSEEComCompat_sendRequest(self,
req_in_ptr, req_in_len,
rsp_in_ptr, rsp_in_len,
req_out_ptr, req_out_len, req_out_lenout,
rsp_out_ptr, rsp_out_len, rsp_out_lenout,
embedded_buf_offsets_ptr,
embedded_buf_offsets_len, is64_val,
smo1_val, smo2_val,
smo3_val, smo4_val);
}
static inline int32_t
smci_qseecomcompat_disconnect(struct smci_object self)
{
return IQSEEComCompat_disconnect(self);
}
static inline int32_t
smci_qseecomcompat_unload(struct smci_object self)
{
return IQSEEComCompat_unload(self);
}
#endif /* __SMCI_QSEECOMCOMPAT_H */