%PDF- <> %âãÏÓ endobj 2 0 obj <> endobj 3 0 obj <>/ExtGState<>/ProcSet[/PDF/Text/ImageB/ImageC/ImageI] >>/Annots[ 28 0 R 29 0 R] /MediaBox[ 0 0 595.5 842.25] /Contents 4 0 R/Group<>/Tabs/S>> endobj ºaâÚÎΞ-ÌE1ÍØÄ÷{òò2ÿ ÛÖ^ÔÀá TÎ{¦?§®¥kuµùÕ5sLOšuY>endobj 2 0 obj<>endobj 2 0 obj<>endobj 2 0 obj<>endobj 2 0 obj<> endobj 2 0 obj<>endobj 2 0 obj<>es 3 0 R>> endobj 2 0 obj<> ox[ 0.000000 0.000000 609.600000 935.600000]/Fi endobj 3 0 obj<> endobj 7 1 obj<>/ProcSet[/PDF/Text/ImageB/ImageC/ImageI]>>/Subtype/Form>> stream
/* * Copyright 2004-2009 Analog Devices Inc. * * Licensed under the GPL-2 or later. */ #ifndef _BLACKFIN_DMA_MAPPING_H #define _BLACKFIN_DMA_MAPPING_H #include <asm/cacheflush.h> extern void __dma_sync(dma_addr_t addr, size_t size, enum dma_data_direction dir); static inline void __dma_sync_inline(dma_addr_t addr, size_t size, enum dma_data_direction dir) { switch (dir) { case DMA_NONE: BUG(); case DMA_TO_DEVICE: /* writeback only */ flush_dcache_range(addr, addr + size); break; case DMA_FROM_DEVICE: /* invalidate only */ case DMA_BIDIRECTIONAL: /* flush and invalidate */ /* Blackfin has no dedicated invalidate (it includes a flush) */ invalidate_dcache_range(addr, addr + size); break; } } static inline void _dma_sync(dma_addr_t addr, size_t size, enum dma_data_direction dir) { if (__builtin_constant_p(dir)) __dma_sync_inline(addr, size, dir); else __dma_sync(addr, size, dir); } extern const struct dma_map_ops bfin_dma_ops; static inline const struct dma_map_ops *get_arch_dma_ops(struct bus_type *bus) { return &bfin_dma_ops; } #endif /* _BLACKFIN_DMA_MAPPING_H */