target/cxgbit: Use T6 specific macros to get ETH/IP hdr len
[linux/fpc-iii.git] / arch / nios2 / include / asm / dma-mapping.h
blobbec8ac8e6ad2311cf1703334c71c367af6248ebb
1 /*
2 * Copyright (C) 2011 Tobias Klauser <tklauser@distanz.ch>
3 * Copyright (C) 2009 Wind River Systems Inc
5 * This file is subject to the terms and conditions of the GNU General
6 * Public License. See the file COPYING in the main directory of this
7 * archive for more details.
8 */
10 #ifndef _ASM_NIOS2_DMA_MAPPING_H
11 #define _ASM_NIOS2_DMA_MAPPING_H
13 extern struct dma_map_ops nios2_dma_ops;
15 static inline struct dma_map_ops *get_dma_ops(struct device *dev)
17 return &nios2_dma_ops;
21 * dma_alloc_noncoherent() returns non-cacheable memory, so there's no need to
22 * do any flushing here.
24 static inline void dma_cache_sync(struct device *dev, void *vaddr, size_t size,
25 enum dma_data_direction direction)
29 #endif /* _ASM_NIOS2_DMA_MAPPING_H */