aboutsummaryrefslogtreecommitdiffstats
path: root/arch/powerpc/include/asm/swiotlb.h
diff options
context:
space:
mode:
authorFUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>2009-08-04 15:08:22 -0400
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>2009-08-28 00:24:09 -0400
commit762afb7317b1987fa0851135fe4f2947f68c3c2a (patch)
tree1cf83145c1bdd55b6a166d428af8ee195b09985b /arch/powerpc/include/asm/swiotlb.h
parent2864697cefb6e7596e39aef933b4131f6c9fa9e1 (diff)
powerpc: Remove addr_needs_map in struct dma_mapping_ops
This patch adds max_direct_dma_addr to struct dev_archdata to remove addr_needs_map in struct dma_mapping_ops. It also converts dma_capable() to use max_direct_dma_addr. max_direct_dma_addr is initialized in pci_dma_dev_setup_swiotlb(), called via ppc_md.pci_dma_dev_setup hook. For further information: http://marc.info/?t=124719060200001&r=1&w=2 Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp> Acked-by: Becky Bruce <beckyb@kernel.crashing.org> Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Diffstat (limited to 'arch/powerpc/include/asm/swiotlb.h')
-rw-r--r--arch/powerpc/include/asm/swiotlb.h5
1 files changed, 2 insertions, 3 deletions
diff --git a/arch/powerpc/include/asm/swiotlb.h b/arch/powerpc/include/asm/swiotlb.h
index 30891d6e2bc1..31e0e43c880d 100644
--- a/arch/powerpc/include/asm/swiotlb.h
+++ b/arch/powerpc/include/asm/swiotlb.h
@@ -16,12 +16,11 @@
16extern struct dma_mapping_ops swiotlb_dma_ops; 16extern struct dma_mapping_ops swiotlb_dma_ops;
17extern struct dma_mapping_ops swiotlb_pci_dma_ops; 17extern struct dma_mapping_ops swiotlb_pci_dma_ops;
18 18
19int swiotlb_arch_address_needs_mapping(struct device *, dma_addr_t,
20 size_t size);
21
22static inline void dma_mark_clean(void *addr, size_t size) {} 19static inline void dma_mark_clean(void *addr, size_t size) {}
23 20
24extern unsigned int ppc_swiotlb_enable; 21extern unsigned int ppc_swiotlb_enable;
25int __init swiotlb_setup_bus_notifier(void); 22int __init swiotlb_setup_bus_notifier(void);
26 23
24extern void pci_dma_dev_setup_swiotlb(struct pci_dev *pdev);
25
27#endif /* __ASM_SWIOTLB_H */ 26#endif /* __ASM_SWIOTLB_H */