aboutsummaryrefslogtreecommitdiff
path: root/include/asm-ppc64/tce.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/asm-ppc64/tce.h')
-rw-r--r--include/asm-ppc64/tce.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/include/asm-ppc64/tce.h b/include/asm-ppc64/tce.h
index 636504c62c8..d40b6b42ab3 100644
--- a/include/asm-ppc64/tce.h
+++ b/include/asm-ppc64/tce.h
@@ -28,6 +28,13 @@
#define TCE_VB 0
#define TCE_PCI 1
+/* TCE page size is 4096 bytes (1 << 12) */
+
+#define TCE_SHIFT 12
+#define TCE_PAGE_SIZE (1 << TCE_SHIFT)
+#define TCE_PAGE_FACTOR (PAGE_SHIFT - TCE_SHIFT)
+
+
/* tce_entry
* Used by pSeries (SMP) and iSeries/pSeries LPAR, but there it's
* abstracted so layout is irrelevant.