Steven J. Hill | b6d92b4 | 2013-03-25 13:47:29 -0500 | [diff] [blame] | 1 | /* |
| 2 | * This file is subject to the terms and conditions of the GNU General Public |
| 3 | * License. See the file "COPYING" in the main directory of this archive |
| 4 | * for more details. |
| 5 | * |
| 6 | * Copyright (C) 2006 Ralf Baechle <ralf@linux-mips.org> |
| 7 | * |
| 8 | */ |
| 9 | #ifndef __ASM_DMA_COHERENCE_H |
| 10 | #define __ASM_DMA_COHERENCE_H |
| 11 | |
Felix Fietkau | 885014b | 2013-09-27 14:41:44 +0200 | [diff] [blame] | 12 | #ifdef CONFIG_DMA_MAYBE_COHERENT |
Steven J. Hill | b6d92b4 | 2013-03-25 13:47:29 -0500 | [diff] [blame] | 13 | extern int coherentio; |
| 14 | extern int hw_coherentio; |
Felix Fietkau | 885014b | 2013-09-27 14:41:44 +0200 | [diff] [blame] | 15 | #else |
| 16 | #ifdef CONFIG_DMA_COHERENT |
| 17 | #define coherentio 1 |
| 18 | #else |
| 19 | #define coherentio 0 |
| 20 | #endif |
| 21 | #define hw_coherentio 0 |
| 22 | #endif /* CONFIG_DMA_MAYBE_COHERENT */ |
Steven J. Hill | b6d92b4 | 2013-03-25 13:47:29 -0500 | [diff] [blame] | 23 | |
| 24 | #endif |