xref: /rk3399_ARM-atf/plat/mediatek/include/drivers/apusys_rv_public.h (revision 06f3c7058c42a9f1a9f7df75ea2de71a000855e8)
1 /*
2  * Copyright (c) 2024, MediaTek Inc. All rights reserved.
3  *
4  * SPDX-License-Identifier: BSD-3-Clause
5  */
6 
7 #ifndef APUSYS_RV_PUBLIC_H
8 #define APUSYS_RV_PUBLIC_H
9 
10 #ifdef CONFIG_MTK_APUSYS_RV_IOMMU_HW_SEM_SUPPORT
11 int apusys_rv_iommu_hw_sem_trylock(void);
12 int apusys_rv_iommu_hw_sem_unlock(void);
13 #else
14 #define apusys_rv_iommu_hw_sem_trylock() 0
15 #define apusys_rv_iommu_hw_sem_unlock() 0
16 #endif /* CONFIG_MTK_APUSYS_RV_IOMMU_HW_SEM_SUPPORT */
17 
18 #endif /* APUSYS_RV_PUBLIC_H */
19