aboutsummaryrefslogtreecommitdiffstats
path: root/arch/mips/include/asm/dma-coherence.h
diff options
context:
space:
mode:
Diffstat (limited to 'arch/mips/include/asm/dma-coherence.h')
-rw-r--r--arch/mips/include/asm/dma-coherence.h16
1 files changed, 12 insertions, 4 deletions
diff --git a/arch/mips/include/asm/dma-coherence.h b/arch/mips/include/asm/dma-coherence.h
index bc5e85d579e6..72d0eab02afc 100644
--- a/arch/mips/include/asm/dma-coherence.h
+++ b/arch/mips/include/asm/dma-coherence.h
@@ -9,14 +9,22 @@
9#ifndef __ASM_DMA_COHERENCE_H 9#ifndef __ASM_DMA_COHERENCE_H
10#define __ASM_DMA_COHERENCE_H 10#define __ASM_DMA_COHERENCE_H
11 11
12#ifdef CONFIG_DMA_MAYBE_COHERENT 12enum coherent_io_user_state {
13extern int coherentio; 13 IO_COHERENCE_DEFAULT,
14 IO_COHERENCE_ENABLED,
15 IO_COHERENCE_DISABLED,
16};
17
18#if defined(CONFIG_DMA_PERDEV_COHERENT)
19/* Don't provide (hw_)coherentio to avoid misuse */
20#elif defined(CONFIG_DMA_MAYBE_COHERENT)
21extern enum coherent_io_user_state coherentio;
14extern int hw_coherentio; 22extern int hw_coherentio;
15#else 23#else
16#ifdef CONFIG_DMA_COHERENT 24#ifdef CONFIG_DMA_COHERENT
17#define coherentio 1 25#define coherentio IO_COHERENCE_ENABLED
18#else 26#else
19#define coherentio 0 27#define coherentio IO_COHERENCE_DISABLED
20#endif 28#endif
21#define hw_coherentio 0 29#define hw_coherentio 0
22#endif /* CONFIG_DMA_MAYBE_COHERENT */ 30#endif /* CONFIG_DMA_MAYBE_COHERENT */