diff options
author | Benjamin Herrenschmidt <benh@kernel.crashing.org> | 2006-11-11 09:25:09 +0300 |
---|---|---|
committer | Paul Mackerras <paulus@samba.org> | 2006-12-04 12:38:50 +0300 |
commit | d03f387eb321189bc2ba278b6ca82f1a45cf19d6 (patch) | |
tree | b194bd9921c0091e87d71162ec686eb1bb08ab85 /arch/powerpc/platforms/cell/iommu.h | |
parent | 4c9d2800be5dfabf26acdeb401cbabe9edc1dcf2 (diff) | |
download | linux-d03f387eb321189bc2ba278b6ca82f1a45cf19d6.tar.xz |
[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.h | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/arch/powerpc/platforms/cell/iommu.h b/arch/powerpc/platforms/cell/iommu.h index 490d77abfe85..2a9ab95604a9 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, }; |