On Sep 8, 2008, at 4:57 PM, Christoph Hellwig wrote:
On Mon, Sep 08, 2008 at 02:09:53PM -0500, Becky Bruce wrote:
+/* We support DMA to/from any memory page via the iommu */
+static int dma_iommu_dma_supported(struct device *dev, u64 mask)
+{
+ struct iommu_table *tbl = dev->archdata.dma
On Mon, Sep 08, 2008 at 02:09:53PM -0500, Becky Bruce wrote:
> +/* We support DMA to/from any memory page via the iommu */
> +static int dma_iommu_dma_supported(struct device *dev, u64 mask)
> +{
> + struct iommu_table *tbl = dev->archdata.dma_data;
> +
> + if (!tbl || tbl->it_offset > mask
32-bit platforms are about to start using dma.c; move the iommu
dma ops into their own file to make this a bit cleaner.
Signed-off-by: Becky Bruce <[EMAIL PROTECTED]>
---
arch/powerpc/kernel/Makefile|2 +-
arch/powerpc/kernel/dma-iommu.c | 103 +++
arc