diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/asm-x86/dma-mapping.h | 6 | ||||
-rw-r--r-- | include/asm-x86/dma-mapping_32.h | 7 | ||||
-rw-r--r-- | include/asm-x86/dma-mapping_64.h | 7 |
3 files changed, 6 insertions, 14 deletions
diff --git a/include/asm-x86/dma-mapping.h b/include/asm-x86/dma-mapping.h index b331a8d3a7cf..51a79d71dabd 100644 --- a/include/asm-x86/dma-mapping.h +++ b/include/asm-x86/dma-mapping.h | |||
@@ -185,4 +185,10 @@ static inline void dma_unmap_page(struct device *dev, dma_addr_t addr, | |||
185 | dma_unmap_single(dev, addr, size, direction); | 185 | dma_unmap_single(dev, addr, size, direction); |
186 | } | 186 | } |
187 | 187 | ||
188 | static inline void | ||
189 | dma_cache_sync(struct device *dev, void *vaddr, size_t size, | ||
190 | enum dma_data_direction dir) | ||
191 | { | ||
192 | flush_write_buffers(); | ||
193 | } | ||
188 | #endif | 194 | #endif |
diff --git a/include/asm-x86/dma-mapping_32.h b/include/asm-x86/dma-mapping_32.h index c61ae7ff222c..e60c30a88311 100644 --- a/include/asm-x86/dma-mapping_32.h +++ b/include/asm-x86/dma-mapping_32.h | |||
@@ -55,13 +55,6 @@ dma_get_cache_alignment(void) | |||
55 | 55 | ||
56 | #define dma_is_consistent(d, h) (1) | 56 | #define dma_is_consistent(d, h) (1) |
57 | 57 | ||
58 | static inline void | ||
59 | dma_cache_sync(struct device *dev, void *vaddr, size_t size, | ||
60 | enum dma_data_direction direction) | ||
61 | { | ||
62 | flush_write_buffers(); | ||
63 | } | ||
64 | |||
65 | #define ARCH_HAS_DMA_DECLARE_COHERENT_MEMORY | 58 | #define ARCH_HAS_DMA_DECLARE_COHERENT_MEMORY |
66 | extern int | 59 | extern int |
67 | dma_declare_coherent_memory(struct device *dev, dma_addr_t bus_addr, | 60 | dma_declare_coherent_memory(struct device *dev, dma_addr_t bus_addr, |
diff --git a/include/asm-x86/dma-mapping_64.h b/include/asm-x86/dma-mapping_64.h index 2b4a43080db9..b1bc6ca7613d 100644 --- a/include/asm-x86/dma-mapping_64.h +++ b/include/asm-x86/dma-mapping_64.h | |||
@@ -24,13 +24,6 @@ static inline int dma_get_cache_alignment(void) | |||
24 | 24 | ||
25 | extern int dma_set_mask(struct device *dev, u64 mask); | 25 | extern int dma_set_mask(struct device *dev, u64 mask); |
26 | 26 | ||
27 | static inline void | ||
28 | dma_cache_sync(struct device *dev, void *vaddr, size_t size, | ||
29 | enum dma_data_direction dir) | ||
30 | { | ||
31 | flush_write_buffers(); | ||
32 | } | ||
33 | |||
34 | extern struct device fallback_dev; | 27 | extern struct device fallback_dev; |
35 | extern int panic_on_overflow; | 28 | extern int panic_on_overflow; |
36 | 29 | ||