Chengci Xu | db1e75b | 2022-07-20 16:20:15 +0800 | [diff] [blame] | 1 | /* |
| 2 | * Copyright (c) 2022, MediaTek Inc. All rights reserved. |
| 3 | * |
| 4 | * SPDX-License-Identifier: BSD-3-Clause |
| 5 | */ |
| 6 | |
| 7 | #ifndef IOMMU_PLAT_H |
| 8 | #define IOMMU_PLAT_H |
| 9 | |
| 10 | #include <mtk_iommu_priv.h> |
| 11 | |
| 12 | /* mm iommu */ |
| 13 | #define SMI_LARB_NUM (26) |
| 14 | extern struct mtk_smi_larb_config *g_larb_cfg; |
| 15 | |
| 16 | /* infra iommu */ |
| 17 | #define MMU_DEV_NUM (1) |
| 18 | extern struct mtk_ifr_mst_config *g_ifr_mst_cfg; |
| 19 | extern uint32_t *g_ifr_mst_cfg_base; |
| 20 | extern uint32_t *g_ifr_mst_cfg_offs; |
| 21 | |
| 22 | extern void mtk_infra_iommu_enable_protect(void); |
| 23 | |
| 24 | #endif /* IOMMU_PLAT_H */ |