fsl_dma.h 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. /*
  2. * Freescale DMA Controller
  3. *
  4. * Copyright 2006 Freescale Semiconductor, Inc.
  5. *
  6. * This software may be used and distributed according to the
  7. * terms of the GNU Public License, Version 2, incorporated
  8. * herein by reference.
  9. *
  10. * This program is free software; you can redistribute it and/or
  11. * modify it under the terms of the GNU General Public License
  12. * Version 2 as published by the Free Software Foundation.
  13. *
  14. * This program is distributed in the hope that it will be useful,
  15. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  16. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  17. * GNU General Public License for more details.
  18. *
  19. * You should have received a copy of the GNU General Public License
  20. * along with this program; if not, write to the Free Software
  21. * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
  22. * MA 02111-1307 USA
  23. */
  24. #ifndef _ASM_FSL_DMA_H_
  25. #define _ASM_FSL_DMA_H_
  26. #include <asm/types.h>
  27. typedef struct fsl_dma {
  28. uint mr; /* DMA mode register */
  29. uint sr; /* DMA status register */
  30. char res0[4];
  31. uint clndar; /* DMA current link descriptor address register */
  32. uint satr; /* DMA source attributes register */
  33. uint sar; /* DMA source address register */
  34. uint datr; /* DMA destination attributes register */
  35. uint dar; /* DMA destination address register */
  36. uint bcr; /* DMA byte count register */
  37. char res1[4];
  38. uint nlndar; /* DMA next link descriptor address register */
  39. char res2[8];
  40. uint clabdar; /* DMA current List - alternate base descriptor address Register */
  41. char res3[4];
  42. uint nlsdar; /* DMA next list descriptor address register */
  43. uint ssr; /* DMA source stride register */
  44. uint dsr; /* DMA destination stride register */
  45. char res4[56];
  46. } fsl_dma_t;
  47. #endif /* _ASM_DMA_H_ */