mirror of
https://github.com/torvalds/linux.git
synced 2026-11-27 00:43:12 +00:00
Introduce a new architecture-specific get_arch_dma_ops() function that takes a struct bus_type * argument. Add get_dma_ops() in <linux/dma-mapping.h>. Signed-off-by: Bart Van Assche <[email protected]> Cc: Benjamin Herrenschmidt <[email protected]> Cc: Boris Ostrovsky <[email protected]> Cc: David Woodhouse <[email protected]> Cc: Juergen Gross <[email protected]> Cc: H. Peter Anvin <[email protected]> Cc: Ingo Molnar <[email protected]> Cc: [email protected] Cc: [email protected] Cc: Russell King <[email protected]> Cc: [email protected] Signed-off-by: Doug Ledford <[email protected]>
30 lines
784 B
C
30 lines
784 B
C
/*
|
|
* Copyright (C) 2011 Tobias Klauser <[email protected]>
|
|
* Copyright (C) 2009 Wind River Systems Inc
|
|
*
|
|
* This file is subject to the terms and conditions of the GNU General
|
|
* Public License. See the file COPYING in the main directory of this
|
|
* archive for more details.
|
|
*/
|
|
|
|
#ifndef _ASM_NIOS2_DMA_MAPPING_H
|
|
#define _ASM_NIOS2_DMA_MAPPING_H
|
|
|
|
extern const struct dma_map_ops nios2_dma_ops;
|
|
|
|
static inline const struct dma_map_ops *get_arch_dma_ops(struct bus_type *bus)
|
|
{
|
|
return &nios2_dma_ops;
|
|
}
|
|
|
|
/*
|
|
* dma_alloc_noncoherent() returns non-cacheable memory, so there's no need to
|
|
* do any flushing here.
|
|
*/
|
|
static inline void dma_cache_sync(struct device *dev, void *vaddr, size_t size,
|
|
enum dma_data_direction direction)
|
|
{
|
|
}
|
|
|
|
#endif /* _ASM_NIOS2_DMA_MAPPING_H */
|