diff --git a/include/linux/dma-mapping.h b/include/linux/dma-mapping.h index 347fdc32177a66f685f355e9ddf6c52d7bacccd5..aa32fecd1d345f9a681ca3ceaaa4b7d680f103fd 100644 --- a/include/linux/dma-mapping.h +++ b/include/linux/dma-mapping.h @@ -41,6 +41,9 @@ struct dma_map_ops { int (*mapping_error)(struct device *dev, dma_addr_t dma_addr); int (*dma_supported)(struct device *dev, u64 mask); int (*set_dma_mask)(struct device *dev, u64 mask); +#ifdef ARCH_HAS_DMA_GET_REQUIRED_MASK + u64 (*get_required_mask)(struct device *dev); +#endif int is_phys; };