x86: implement dma_map_single through dma_ops
[deliverable/linux.git] / arch / x86 / kernel / pci-base_32.c
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);
This page took 0.042858 seconds and 6 git commands to generate.