aboutsummaryrefslogtreecommitdiff
path: root/arch/powerpc/platforms/cell/iommu.h
diff options
context:
space:
mode:
authorBenjamin Herrenschmidt <benh@kernel.crashing.org>2006-11-11 17:25:09 +1100
committerPaul Mackerras <paulus@samba.org>2006-12-04 20:38:50 +1100
commitd03f387eb321189bc2ba278b6ca82f1a45cf19d6 (patch)
treeb194bd9921c0091e87d71162ec686eb1bb08ab85 /arch/powerpc/platforms/cell/iommu.h
parent4c9d2800be5dfabf26acdeb401cbabe9edc1dcf2 (diff)
[POWERPC] Cell fixup DMA offset for new southbridge
This patch makes the Cell DMA code work on both the Spider and the Axon south bridges by turning cell_dma_valid into a variable instead of a constant. This is a temporary patch until we have full iommu support. Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org> Signed-off-by: Paul Mackerras <paulus@samba.org>
Diffstat (limited to 'arch/powerpc/platforms/cell/iommu.h')
-rw-r--r--arch/powerpc/platforms/cell/iommu.h8
1 files changed, 5 insertions, 3 deletions
diff --git a/arch/powerpc/platforms/cell/iommu.h b/arch/powerpc/platforms/cell/iommu.h
index 490d77abfe8..2a9ab95604a 100644
--- a/arch/powerpc/platforms/cell/iommu.h
+++ b/arch/powerpc/platforms/cell/iommu.h
@@ -53,9 +53,11 @@ enum {
IOC_ST_ORIGIN = 0x918,
IOC_CONF = 0x930,
- /* The high bit needs to be set on every DMA address,
- only 2GB are addressable */
- CELL_DMA_VALID = 0x80000000,
+ /* The high bit needs to be set on every DMA address when using
+ * a spider bridge and only 2GB are addressable with the current
+ * iommu code.
+ */
+ SPIDER_DMA_VALID = 0x80000000,
CELL_DMA_MASK = 0x7fffffff,
};