2008-04-08 16:20:43 +00:00
|
|
|
#include <linux/dma-mapping.h>
|
|
|
|
|
2008-04-08 16:20:50 +00:00
|
|
|
const struct dma_mapping_ops *dma_ops;
|
|
|
|
EXPORT_SYMBOL(dma_ops);
|
|
|
|
|
2008-04-08 16:20:43 +00:00
|
|
|
int dma_set_mask(struct device *dev, u64 mask)
|
|
|
|
{
|
|
|
|
if (!dev->dma_mask || !dma_supported(dev, mask))
|
|
|
|
return -EIO;
|
|
|
|
|
|
|
|
*dev->dma_mask = mask;
|
|
|
|
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
EXPORT_SYMBOL(dma_set_mask);
|
|
|
|
|
|
|
|
|