diff options
author | Olof Johansson <olof@lixom.net> | 2005-09-19 23:46:44 -0400 |
---|---|---|
committer | Paul Mackerras <paulus@samba.org> | 2005-09-21 05:21:07 -0400 |
commit | d0035c62d9145a2ce3057c8182a7ff0b4921a41c (patch) | |
tree | 0a55703d5e71668f61439649f4963daba55401c3 /include/asm-ppc64/tce.h | |
parent | c707ffcf3a44914f30e5f2fd53089ad5586c9e42 (diff) |
[PATCH] ppc64: Updated Olof iommu updates 2/3
There are potential cases in the future where the IOMMU might be
mapping smaller pages than the regular MMU is using. Keep the
allocator working on MMU pagesizes, but the low-level mapping
functions need to map more than one TCE entry per page to deal with
this.
Signed-off-by: Olof Johansson <olof@lixom.net>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Signed-off-by: Paul Mackerras <paulus@samba.org>
Diffstat (limited to 'include/asm-ppc64/tce.h')
-rw-r--r-- | include/asm-ppc64/tce.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/include/asm-ppc64/tce.h b/include/asm-ppc64/tce.h index 636504c62c88..d40b6b42ab35 100644 --- a/include/asm-ppc64/tce.h +++ b/include/asm-ppc64/tce.h | |||
@@ -28,6 +28,13 @@ | |||
28 | #define TCE_VB 0 | 28 | #define TCE_VB 0 |
29 | #define TCE_PCI 1 | 29 | #define TCE_PCI 1 |
30 | 30 | ||
31 | /* TCE page size is 4096 bytes (1 << 12) */ | ||
32 | |||
33 | #define TCE_SHIFT 12 | ||
34 | #define TCE_PAGE_SIZE (1 << TCE_SHIFT) | ||
35 | #define TCE_PAGE_FACTOR (PAGE_SHIFT - TCE_SHIFT) | ||
36 | |||
37 | |||
31 | /* tce_entry | 38 | /* tce_entry |
32 | * Used by pSeries (SMP) and iSeries/pSeries LPAR, but there it's | 39 | * Used by pSeries (SMP) and iSeries/pSeries LPAR, but there it's |
33 | * abstracted so layout is irrelevant. | 40 | * abstracted so layout is irrelevant. |