home *** CD-ROM | disk | FTP | other *** search
/ PC Welt 2006 November (DVD) / PCWELT_11_2006.ISO / casper / filesystem.squashfs / usr / src / linux-headers-2.6.17-6 / include / asm-sh64 / dma.h < prev    next >
Encoding:
C/C++ Source or Header  |  2006-08-11  |  934 b   |  42 lines

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