/* * Copyright (c) 2015-2016 MediaTek Inc. * Author: Honghui Zhang <honghui.zhang@mediatek.com> * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2 as * published by the Free Software Foundation. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. */ #ifndef _MTK_IOMMU_H_ #define _MTK_IOMMU_H_ #include <linux/clk.h> #include <linux/component.h> #include <linux/device.h> #include <linux/io.h> #include <linux/iommu.h> #include <linux/list.h> #include <linux/spinlock.h> #include <soc/mediatek/smi.h> #include "io-pgtable.h" struct mtk_iommu_suspend_reg { u32 standard_axi_mode; u32 dcm_dis; u32 ctrl_reg; u32 int_control0; u32 int_main_control; }; enum mtk_iommu_plat { M4U_MT2701, M4U_MT2712, M4U_MT8173, }; struct mtk_iommu_domain; struct mtk_iommu_data { void __iomem *base; int irq; struct device *dev; struct clk *bclk; phys_addr_t protect_base; /* protect memory base */ struct mtk_iommu_suspend_reg reg; struct mtk_iommu_domain *m4u_dom; struct iommu_group *m4u_group; struct mtk_smi_iommu smi_imu; /* SMI larb iommu info */ bool enable_4GB; bool tlb_flush_active; struct iommu_device iommu; enum mtk_iommu_plat m4u_plat; struct list_head list; };
static inline int compare_of(struct device *dev, void *data) { return dev->of_node == data; }Contributors
Person | Tokens | Prop | Commits | CommitProp |
Honghui Zhang | 22 | 95.65% | 1 | 50.00% |
Joerg Roedel | 1 | 4.35% | 1 | 50.00% |
Total | 23 | 100.00% | 2 | 100.00% |
Person | Tokens | Prop | Commits | CommitProp |
Russell King | 21 | 100.00% | 1 | 100.00% |
Total | 21 | 100.00% | 1 | 100.00% |
Person | Tokens | Prop | Commits | CommitProp |
Honghui Zhang | 32 | 96.97% | 1 | 50.00% |
Joerg Roedel | 1 | 3.03% | 1 | 50.00% |
Total | 33 | 100.00% | 2 | 100.00% |
Person | Tokens | Prop | Commits | CommitProp |
Honghui Zhang | 31 | 96.88% | 1 | 50.00% |
Joerg Roedel | 1 | 3.12% | 1 | 50.00% |
Total | 32 | 100.00% | 2 | 100.00% |
Person | Tokens | Prop | Commits | CommitProp |
Honghui Zhang | 193 | 79.75% | 1 | 14.29% |
Russell King | 21 | 8.68% | 1 | 14.29% |
Yong Wu | 18 | 7.44% | 2 | 28.57% |
Joerg Roedel | 7 | 2.89% | 2 | 28.57% |
Robin Murphy | 3 | 1.24% | 1 | 14.29% |
Total | 242 | 100.00% | 7 | 100.00% |