diff options
Diffstat (limited to 'arch/sparc/include/asm/dma-mapping.h')
-rw-r--r-- | arch/sparc/include/asm/dma-mapping.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/arch/sparc/include/asm/dma-mapping.h b/arch/sparc/include/asm/dma-mapping.h index 34c92264208..2677818dc78 100644 --- a/arch/sparc/include/asm/dma-mapping.h +++ b/arch/sparc/include/asm/dma-mapping.h | |||
@@ -14,10 +14,15 @@ extern int dma_set_mask(struct device *dev, u64 dma_mask); | |||
14 | #define dma_free_noncoherent(d, s, v, h) dma_free_coherent(d, s, v, h) | 14 | #define dma_free_noncoherent(d, s, v, h) dma_free_coherent(d, s, v, h) |
15 | #define dma_is_consistent(d, h) (1) | 15 | #define dma_is_consistent(d, h) (1) |
16 | 16 | ||
17 | extern struct dma_map_ops *dma_ops; | 17 | extern struct dma_map_ops *dma_ops, pci32_dma_ops; |
18 | extern struct bus_type pci_bus_type; | ||
18 | 19 | ||
19 | static inline struct dma_map_ops *get_dma_ops(struct device *dev) | 20 | static inline struct dma_map_ops *get_dma_ops(struct device *dev) |
20 | { | 21 | { |
22 | #if defined(CONFIG_SPARC32) && defined(CONFIG_PCI) | ||
23 | if (dev->bus == &pci_bus_type) | ||
24 | return &pci32_dma_ops; | ||
25 | #endif | ||
21 | return dma_ops; | 26 | return dma_ops; |
22 | } | 27 | } |
23 | 28 | ||