// SPDX-License-Identifier: GPL-2.0 #include <linux/module.h> #include <asm/io.h> #include <arch/cache.h> #include <arch/hwregs/dma.h> /* This file is used to workaround a cache bug, Guinness TR 106. */
inline void flush_dma_descr(struct dma_descr_data *descr, int flush_buf) { /* Flush descriptor to make sure we get correct in_eop and after. */ asm volatile ("ftagd [%0]" :: "r" (descr)); /* Flush buffer pointed out by descriptor. */ if (flush_buf) cris_flush_cache_range(phys_to_virt((unsigned)descr->buf), (unsigned)(descr->after - descr->buf)); }Contributors
Person | Tokens | Prop | Commits | CommitProp |
Jesper Nilsson | 49 | 100.00% | 1 | 100.00% |
Total | 49 | 100.00% | 1 | 100.00% |
Person | Tokens | Prop | Commits | CommitProp |
Jesper Nilsson | 42 | 100.00% | 1 | 100.00% |
Total | 42 | 100.00% | 1 | 100.00% |
Person | Tokens | Prop | Commits | CommitProp |
Jesper Nilsson | 126 | 99.21% | 2 | 66.67% |
Greg Kroah-Hartman | 1 | 0.79% | 1 | 33.33% |
Total | 127 | 100.00% | 3 | 100.00% |