pci-dma.c 280 字节
Newer Older
G
Glauber Costa 已提交
1 2
#include <linux/dma-mapping.h>

3 4 5
const struct dma_mapping_ops *dma_ops;
EXPORT_SYMBOL(dma_ops);

G
Glauber Costa 已提交
6 7 8 9 10 11 12 13 14 15 16 17
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);