|
@@ -54,6 +54,14 @@ struct dma_mapping_ops {
|
|
|
|
|
|
extern const struct dma_mapping_ops *dma_ops;
|
|
extern const struct dma_mapping_ops *dma_ops;
|
|
|
|
|
|
|
|
+static inline int dma_mapping_error(dma_addr_t dma_addr)
|
|
|
|
+{
|
|
|
|
+ if (dma_ops->mapping_error)
|
|
|
|
+ return dma_ops->mapping_error(dma_addr);
|
|
|
|
+
|
|
|
|
+ return (dma_addr == bad_dma_address);
|
|
|
|
+}
|
|
|
|
+
|
|
#define dma_alloc_noncoherent(d, s, h, f) dma_alloc_coherent(d, s, h, f)
|
|
#define dma_alloc_noncoherent(d, s, h, f) dma_alloc_coherent(d, s, h, f)
|
|
#define dma_free_noncoherent(d, s, v, h) dma_free_coherent(d, s, v, h)
|
|
#define dma_free_noncoherent(d, s, v, h) dma_free_coherent(d, s, v, h)
|
|
|
|
|