dma.h 706 B

123456789101112131415161718192021222324252627
  1. /*
  2. * Copyright (C) 2006 Atmark Techno, Inc.
  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. #ifndef _ASM_MICROBLAZE_DMA_H
  9. #define _ASM_MICROBLAZE_DMA_H
  10. #ifndef CONFIG_MMU
  11. /* we don't have dma address limit. define it as zero to be
  12. * unlimited. */
  13. #define MAX_DMA_ADDRESS (0)
  14. #else
  15. /* Virtual address corresponding to last available physical memory address. */
  16. #define MAX_DMA_ADDRESS (CONFIG_KERNEL_START + memory_size - 1)
  17. #endif
  18. #ifdef CONFIG_PCI
  19. extern int isa_dma_bridge_buggy;
  20. #else
  21. #define isa_dma_bridge_buggy (0)
  22. #endif
  23. #endif /* _ASM_MICROBLAZE_DMA_H */