dma-mapping.h 467 Bytes
Newer Older
Linus Torvalds's avatar
Linus Torvalds committed
1 2 3
#ifndef _ALPHA_DMA_MAPPING_H
#define _ALPHA_DMA_MAPPING_H

4
#include <linux/dma-attrs.h>
Linus Torvalds's avatar
Linus Torvalds committed
5

6
extern struct dma_map_ops *dma_ops;
Linus Torvalds's avatar
Linus Torvalds committed
7

8 9 10 11
static inline struct dma_map_ops *get_dma_ops(struct device *dev)
{
	return dma_ops;
}
Linus Torvalds's avatar
Linus Torvalds committed
12

13
#include <asm-generic/dma-mapping-common.h>
Linus Torvalds's avatar
Linus Torvalds committed
14

15 16 17 18
static inline int dma_set_mask(struct device *dev, u64 mask)
{
	return get_dma_ops(dev)->set_dma_mask(dev, mask);
}
Linus Torvalds's avatar
Linus Torvalds committed
19

20
#define dma_cache_sync(dev, va, size, dir)		  ((void)0)
Linus Torvalds's avatar
Linus Torvalds committed
21 22

#endif	/* _ALPHA_DMA_MAPPING_H */