ARM: OMAP2+: Make some definitions local
[deliverable/linux.git] / drivers / iommu / omap-iommu.c
index 4db86e12c20031407955c4bd973b43ad8b9b44b1..df840870e2a1bcc77f2071cf4451e39b4cd58a64 100644 (file)
@@ -54,6 +54,21 @@ struct omap_iommu_domain {
        spinlock_t lock;
 };
 
+#define MMU_LOCK_BASE_SHIFT    10
+#define MMU_LOCK_BASE_MASK     (0x1f << MMU_LOCK_BASE_SHIFT)
+#define MMU_LOCK_BASE(x)       \
+       ((x & MMU_LOCK_BASE_MASK) >> MMU_LOCK_BASE_SHIFT)
+
+#define MMU_LOCK_VICT_SHIFT    4
+#define MMU_LOCK_VICT_MASK     (0x1f << MMU_LOCK_VICT_SHIFT)
+#define MMU_LOCK_VICT(x)       \
+       ((x & MMU_LOCK_VICT_MASK) >> MMU_LOCK_VICT_SHIFT)
+
+struct iotlb_lock {
+       short base;
+       short vict;
+};
+
 /* accommodate the difference between omap1 and omap2/3 */
 static const struct iommu_functions *arch_iommu;
 
This page took 0.031368 seconds and 5 git commands to generate.