diff options
Diffstat (limited to 'include/asm-mips/floppy.h')
-rw-r--r-- | include/asm-mips/floppy.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/include/asm-mips/floppy.h b/include/asm-mips/floppy.h index aa1ef8b352cc..a62d0990c8ae 100644 --- a/include/asm-mips/floppy.h +++ b/include/asm-mips/floppy.h | |||
@@ -10,9 +10,11 @@ | |||
10 | #ifndef _ASM_FLOPPY_H | 10 | #ifndef _ASM_FLOPPY_H |
11 | #define _ASM_FLOPPY_H | 11 | #define _ASM_FLOPPY_H |
12 | 12 | ||
13 | #include <linux/dma-mapping.h> | ||
14 | |||
13 | static inline void fd_cacheflush(char * addr, long size) | 15 | static inline void fd_cacheflush(char * addr, long size) |
14 | { | 16 | { |
15 | dma_cache_wback_inv((unsigned long)addr,size); | 17 | dma_cache_sync(NULL, addr, size, DMA_BIDIRECTIONAL); |
16 | } | 18 | } |
17 | 19 | ||
18 | #define MAX_BUFFER_SECTORS 24 | 20 | #define MAX_BUFFER_SECTORS 24 |
@@ -47,7 +49,7 @@ static inline void fd_cacheflush(char * addr, long size) | |||
47 | * Actually this needs to be a bit more complicated since the so much different | 49 | * Actually this needs to be a bit more complicated since the so much different |
48 | * hardware available with MIPS CPUs ... | 50 | * hardware available with MIPS CPUs ... |
49 | */ | 51 | */ |
50 | #define CROSS_64KB(a,s) ((unsigned long)(a)/K_64 != ((unsigned long)(a) + (s) - 1) / K_64) | 52 | #define CROSS_64KB(a, s) ((unsigned long)(a)/K_64 != ((unsigned long)(a) + (s) - 1) / K_64) |
51 | 53 | ||
52 | #define EXTRA_FLOPPY_PARAMS | 54 | #define EXTRA_FLOPPY_PARAMS |
53 | 55 | ||