/* Mask for the cache policy attribute */ #define MSM_IOMMU_CP_MASK 0x03
/* Maximum number of Machine IDs that we are allowing to be mapped to the same * context bank. The number of MIDs mapped to the same CB does not affect * performance, but there is a practical limit on how many distinct MIDs may * be present. These mappings are typically determined at design time and are * not expected to change at run time.
*/ #define MAX_NUM_MIDS 32
/* Maximum number of context banks that can be present in IOMMU */ #define IOMMU_MAX_CBS 128
/** * struct msm_iommu_dev - a single IOMMU hardware instance * ncb Number of context banks present on this IOMMU HW instance * dev: IOMMU device * irq: Interrupt number * clk: The bus clock for this IOMMU hardware instance * pclk: The clock for the IOMMU bus interconnect * dev_node: list head in qcom_iommu_device_list * dom_node: list head for domain * ctx_list: list of 'struct msm_iommu_ctx_dev' * context_map: Bitmap to track allocated context banks
*/ struct msm_iommu_dev { void __iomem *base; int ncb; struct device *dev; int irq; struct clk *clk; struct clk *pclk; struct list_head dev_node; struct list_head dom_node; struct list_head ctx_list;
DECLARE_BITMAP(context_map, IOMMU_MAX_CBS);
struct iommu_device iommu;
};
/** * struct msm_iommu_ctx_dev - an IOMMU context bank instance * of_node node ptr of client device * num Index of this context bank within the hardware * mids List of Machine IDs that are to be mapped into this context * bank, terminated by -1. The MID is a set of signals on the * AXI bus that identifies the function associated with a specific * memory request. (See ARM spec). * num_mids Total number of mids * node list head in ctx_list
*/ struct msm_iommu_ctx_dev { struct device_node *of_node; int num; int mids[MAX_NUM_MIDS]; int num_mids; struct list_head list;
};
/* * Interrupt handler for the IOMMU context fault interrupt. Hooking the * interrupt is not supported in the API yet, but this will print an error * message and dump useful IOMMU registers.
*/
irqreturn_t msm_iommu_fault_handler(int irq, void *dev_id);
#endif
Messung V0.5
¤ Dauer der Verarbeitung: 0.1 Sekunden
(vorverarbeitet)
¤
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.