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]>
18 lines
431 B
C
18 lines
431 B
C
#ifndef _M68K_DMA_MAPPING_H
|
|
#define _M68K_DMA_MAPPING_H
|
|
|
|
extern const struct dma_map_ops m68k_dma_ops;
|
|
|
|
static inline const struct dma_map_ops *get_arch_dma_ops(struct bus_type *bus)
|
|
{
|
|
return &m68k_dma_ops;
|
|
}
|
|
|
|
static inline void dma_cache_sync(struct device *dev, void *vaddr, size_t size,
|
|
enum dma_data_direction dir)
|
|
{
|
|
/* we use coherent allocation, so not much to do here. */
|
|
}
|
|
|
|
#endif /* _M68K_DMA_MAPPING_H */
|