--- 1.4/include/asm-generic/dma-mapping.h Mon Jan 13 14:37:47 2003 +++ edited/include/asm-generic/dma-mapping.h Fri Oct 10 10:53:25 2003 @@ -13,12 +13,13 @@ /* need struct page definitions */ #include +/* FIXME use this everywhere there's no platform_dma_supported() */ static inline int dma_supported(struct device *dev, u64 mask) { - BUG_ON(dev->bus != &pci_bus_type); - - return pci_dma_supported(to_pci_dev(dev), mask); + /* device can dma, using those address bits */ + return dev->dma_mask + && (mask & *dev->dma_mask) == *dev->dma_mask; } static inline int