linux-stable-rt/arch/x86/kernel/pci-dma.c

15 lines
216 B
C

#include <linux/dma-mapping.h>
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);