Glauber Costa | 22456b9 | 2008-03-25 18:36:21 -0300 | [diff] [blame^] | 1 | #include <linux/mm.h> |
| 2 | #include <linux/kernel.h> |
| 3 | #include <linux/module.h> |
| 4 | #include <linux/dma-mapping.h> |
| 5 | #include <asm/dma-mapping.h> |
| 6 | |
| 7 | static dma_addr_t pci32_map_single(struct device *dev, void *ptr, |
| 8 | size_t size, int direction) |
| 9 | { |
| 10 | WARN_ON(size == 0); |
| 11 | flush_write_buffers(); |
| 12 | return virt_to_phys(ptr); |
| 13 | } |
| 14 | |
| 15 | static const struct dma_mapping_ops pci32_dma_ops = { |
| 16 | .map_single = pci32_map_single, |
| 17 | }; |
| 18 | |
| 19 | const struct dma_mapping_ops *dma_ops = &pci32_dma_ops; |
| 20 | EXPORT_SYMBOL(dma_ops); |