aboutsummaryrefslogtreecommitdiffstats
path: root/include/asm-powerpc
diff options
context:
space:
mode:
Diffstat (limited to 'include/asm-powerpc')
-rw-r--r--include/asm-powerpc/dma-mapping.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/asm-powerpc/dma-mapping.h b/include/asm-powerpc/dma-mapping.h
index 5eea6dbc0aa2..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);