apusys_rv_public.h 476 B

123456789101112131415161718
  1. /*
  2. * Copyright (c) 2024, MediaTek Inc. All rights reserved.
  3. *
  4. * SPDX-License-Identifier: BSD-3-Clause
  5. */
  6. #ifndef APUSYS_RV_PUBLIC_H
  7. #define APUSYS_RV_PUBLIC_H
  8. #ifdef CONFIG_MTK_APUSYS_RV_IOMMU_HW_SEM_SUPPORT
  9. int apusys_rv_iommu_hw_sem_trylock(void);
  10. int apusys_rv_iommu_hw_sem_unlock(void);
  11. #else
  12. #define apusys_rv_iommu_hw_sem_trylock() 0
  13. #define apusys_rv_iommu_hw_sem_unlock() 0
  14. #endif /* CONFIG_MTK_APUSYS_RV_IOMMU_HW_SEM_SUPPORT */
  15. #endif /* APUSYS_RV_PUBLIC_H */