basicAlgorithmEncapsulation.h 1.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. /*
  2. * dma.h - Blackfin DMA defines/structures/etc...
  3. *
  4. * Copyright 2004-2008 Analog Devices Inc.
  5. * Licensed under the GPL-2 or later.
  6. */
  7. #ifndef _BLACKFIN_DMA_H_
  8. #define _BLACKFIN_DMA_H_
  9. #include <linux/interrupt.h>
  10. #include <mach/dma.h>
  11. #include <linux/atomic.h>
  12. #include <asm/blackfin.h>
  13. #include <asm/page.h>
  14. #include <asm-generic/dma.h>
  15. #include <asm/bfin_dma.h>
  16. /*-------------------------
  17. * config reg bits value
  18. *-------------------------*/
  19. #define DATA_SIZE_8 0
  20. #define DATA_SIZE_16 1
  21. #define DATA_SIZE_32 2
  22. #ifdef CONFIG_BF60x
  23. #define DATA_SIZE_64 3
  24. #endif
  25. #define DMA_FLOW_STOP 0
  26. #define DMA_FLOW_AUTO 1
  27. #ifdef CONFIG_BF60x
  28. #define DMA_FLOW_LIST 4
  29. #define DMA_FLOW_ARRAY 5
  30. #define DMA_FLOW_LIST_DEMAND 6
  31. #define DMA_FLOW_ARRAY_DEMAND 7
  32. #else
  33. #define DMA_FLOW_ARRAY 4
  34. #define DMA_FLOW_SMALL 6
  35. #define DMA_FLOW_LARGE 7
  36. #endif
  37. #define DIMENSION_LINEAR 0
  38. #define DIMENSION_2D 1
  39. #define DIR_READ 0
  40. #define DIR_WRITE 1
  41. #define INTR_DISABLE 0
  42. #ifdef CONFIG_BF60x
  43. #define INTR_ON_PERI 1
  44. #endif