1 /* SPDX-License-Identifier: BSD-2-Clause */
2 /*
3  * Copyright (c) 2019-2022, Linaro Limited
4  */
5 #ifndef OPTEE_SCMI_H
6 #define OPTEE_SCMI_H
7 
8 #include <tee_api_types.h>
9 #include <types_ext.h>
10 
11 /*
12  * Return virtual address mapped for target SMT IOMEM address range
13  *
14  * @pa: Target address range base physical address
15  * @sz: Target address range byte size
16  * @shmem_is_secure: True if memory is secure, false otherwise
17  * Return a virtual address or 0 is memory is not mapped
18  */
19 uintptr_t smt_phys_to_virt(uintptr_t pa, size_t sz, bool shmem_is_secure);
20 
21 #endif /* OPTEE_SCMI_H */
22