]> pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - arch/powerpc/kernel/dma_64.c
Merge git://git.kernel.org/pub/scm/linux/kernel/git/dtor/input
[linux-2.6-omap-h63xx.git] / arch / powerpc / kernel / dma_64.c
index 7c3419656ccce2f96fe98cd7a5362f6ab6bd671b..36aaa7663f028c53aec287fd65f97d7735cf5b4e 100644 (file)
@@ -10,6 +10,7 @@
 /* Include the busses we support */
 #include <linux/pci.h>
 #include <asm/vio.h>
+#include <asm/ibmebus.h>
 #include <asm/scatterlist.h>
 #include <asm/bug.h>
 
@@ -22,6 +23,10 @@ static struct dma_mapping_ops *get_dma_ops(struct device *dev)
 #ifdef CONFIG_IBMVIO
        if (dev->bus == &vio_bus_type)
                return &vio_dma_ops;
+#endif
+#ifdef CONFIG_IBMEBUS
+       if (dev->bus == &ibmebus_bus_type)
+               return &ibmebus_dma_ops;
 #endif
        return NULL;
 }
@@ -47,6 +52,10 @@ int dma_set_mask(struct device *dev, u64 dma_mask)
        if (dev->bus == &vio_bus_type)
                return -EIO;
 #endif /* CONFIG_IBMVIO */
+#ifdef CONFIG_IBMEBUS
+       if (dev->bus == &ibmebus_bus_type)
+               return -EIO;
+#endif
        BUG();
        return 0;
 }