summaryrefslogtreecommitdiff
path: root/arch/arm/plat-omap/iopgtable.h
diff options
context:
space:
mode:
authorHiroshi DOYU <Hiroshi.DOYU@nokia.com>2010-05-13 10:45:35 +0400
committerHiroshi DOYU <Hiroshi.DOYU@nokia.com>2010-06-29 08:55:04 +0400
commita1a54456d08ff8d406b550b60f97088ac7401b8c (patch)
tree7b0e4b61672507fa0634fd8e722c34caefb53b97 /arch/arm/plat-omap/iopgtable.h
parent7e27d6e778cd87b6f2415515d7127eba53fe5d02 (diff)
downloadlinux-a1a54456d08ff8d406b550b60f97088ac7401b8c.tar.xz
omap iommu: Introduce iopgd_is_table MACRO
A bit more strict comparison. Signed-off-by: Hiroshi DOYU <Hiroshi.DOYU@nokia.com>
Diffstat (limited to 'arch/arm/plat-omap/iopgtable.h')
-rw-r--r--arch/arm/plat-omap/iopgtable.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/arm/plat-omap/iopgtable.h b/arch/arm/plat-omap/iopgtable.h
index ab23b6a140fd..f2e6b64cca64 100644
--- a/arch/arm/plat-omap/iopgtable.h
+++ b/arch/arm/plat-omap/iopgtable.h
@@ -63,6 +63,8 @@
#define IOPGD_SECTION (2 << 0)
#define IOPGD_SUPER (1 << 18 | 2 << 0)
+#define iopgd_is_table(x) (((x) & 3) == IOPGD_TABLE)
+
#define IOPTE_SMALL (2 << 0)
#define IOPTE_LARGE (1 << 0)