Re: [PATCH 2/4] POWERPC: Move iommu dma ops from dma.c to dma-iommu.c

2008-09-12 Thread Becky Bruce
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

Re: [PATCH 2/4] POWERPC: Move iommu dma ops from dma.c to dma-iommu.c

2008-09-08 Thread Christoph Hellwig
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

[PATCH 2/4] POWERPC: Move iommu dma ops from dma.c to dma-iommu.c

2008-09-08 Thread Becky Bruce
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