dma-coherence.h 546 B

123456789101112131415161718192021222324
  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. #ifdef CONFIG_DMA_MAYBE_COHERENT
  12. extern int coherentio;
  13. extern int hw_coherentio;
  14. #else
  15. #ifdef CONFIG_DMA_COHERENT
  16. #define coherentio 1
  17. #else
  18. #define coherentio 0
  19. #endif
  20. #define hw_coherentio 0
  21. #endif /* CONFIG_DMA_MAYBE_COHERENT */
  22. #endif