提交 7ca16d26 编写于 作者: R Ralf Baechle

[MIPS] floppy: Rewrite fd_cacheflush() to use dma_cache_sync().

Signed-off-by: NRalf Baechle <ralf@linux-mips.org>
上级 abb4ae46
......@@ -10,9 +10,11 @@
#ifndef _ASM_FLOPPY_H
#define _ASM_FLOPPY_H
#include <linux/dma-mapping.h>
static inline void fd_cacheflush(char * addr, long size)
{
dma_cache_wback_inv((unsigned long)addr,size);
dma_cache_sync(NULL, addr, size, DMA_BIDIRECTIONAL);
}
#define MAX_BUFFER_SECTORS 24
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册