dma.h 934 B

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. #ifndef __ASM_SH64_DMA_H
  2. #define __ASM_SH64_DMA_H
  3. /*
  4. * This file is subject to the terms and conditions of the GNU General Public
  5. * License. See the file "COPYING" in the main directory of this archive
  6. * for more details.
  7. *
  8. * include/asm-sh64/dma.h
  9. *
  10. * Copyright (C) 2000, 2001 Paolo Alberelli
  11. * Copyright (C) 2003 Paul Mundt
  12. *
  13. */
  14. #include <linux/mm.h>
  15. #include <asm/io.h>
  16. #include <asm/pgtable.h>
  17. #define MAX_DMA_CHANNELS 4
  18. /*
  19. * SH5 can DMA in any memory area.
  20. *
  21. * The static definition is dodgy because it should limit
  22. * the highest DMA-able address based on the actual
  23. * Physical memory available. This is actually performed
  24. * at run time in defining the memory allowed to DMA_ZONE.
  25. */
  26. #define MAX_DMA_ADDRESS ~(NPHYS_MASK)
  27. #define DMA_MODE_READ 0
  28. #define DMA_MODE_WRITE 1
  29. #ifdef CONFIG_PCI
  30. extern int isa_dma_bridge_buggy;
  31. #else
  32. #define isa_dma_bridge_buggy (0)
  33. #endif
  34. #endif /* __ASM_SH64_DMA_H */