aboutsummaryrefslogtreecommitdiffstats
path: root/include/asm-powerpc/dma-mapping.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/asm-powerpc/dma-mapping.h')
-rw-r--r--include/asm-powerpc/dma-mapping.h10
1 files changed, 8 insertions, 2 deletions
diff --git a/include/asm-powerpc/dma-mapping.h b/include/asm-powerpc/dma-mapping.h
index ff52013c0e2d..bbefb69bfb67 100644
--- a/include/asm-powerpc/dma-mapping.h
+++ b/include/asm-powerpc/dma-mapping.h
@@ -76,6 +76,11 @@ static inline struct dma_mapping_ops *get_dma_ops(struct device *dev)
76 return dev->archdata.dma_ops; 76 return dev->archdata.dma_ops;
77} 77}
78 78
79static inline void set_dma_ops(struct device *dev, struct dma_mapping_ops *ops)
80{
81 dev->archdata.dma_ops = ops;
82}
83
79static inline int dma_supported(struct device *dev, u64 mask) 84static inline int dma_supported(struct device *dev, u64 mask)
80{ 85{
81 struct dma_mapping_ops *dma_ops = get_dma_ops(dev); 86 struct dma_mapping_ops *dma_ops = get_dma_ops(dev);
@@ -87,6 +92,9 @@ static inline int dma_supported(struct device *dev, u64 mask)
87 return dma_ops->dma_supported(dev, mask); 92 return dma_ops->dma_supported(dev, mask);
88} 93}
89 94
95/* We have our own implementation of pci_set_dma_mask() */
96#define HAVE_ARCH_PCI_SET_DMA_MASK
97
90static inline int dma_set_mask(struct device *dev, u64 dma_mask) 98static inline int dma_set_mask(struct device *dev, u64 dma_mask)
91{ 99{
92 struct dma_mapping_ops *dma_ops = get_dma_ops(dev); 100 struct dma_mapping_ops *dma_ops = get_dma_ops(dev);
@@ -186,8 +194,6 @@ static inline void dma_unmap_sg(struct device *dev, struct scatterlist *sg,
186extern struct dma_mapping_ops dma_iommu_ops; 194extern struct dma_mapping_ops dma_iommu_ops;
187extern struct dma_mapping_ops dma_direct_ops; 195extern struct dma_mapping_ops dma_direct_ops;
188 196
189extern unsigned long dma_direct_offset;
190
191#else /* CONFIG_PPC64 */ 197#else /* CONFIG_PPC64 */
192 198
193#define dma_supported(dev, mask) (1) 199#define dma_supported(dev, mask) (1)