pxa-dma.h 442 B

123456789101112131415161718192021222324252627
  1. #ifndef _PXA_DMA_H_
  2. #define _PXA_DMA_H_
  3. enum pxad_chan_prio {
  4. PXAD_PRIO_HIGHEST = 0,
  5. PXAD_PRIO_NORMAL,
  6. PXAD_PRIO_LOW,
  7. PXAD_PRIO_LOWEST,
  8. };
  9. struct pxad_param {
  10. unsigned int drcmr;
  11. enum pxad_chan_prio prio;
  12. };
  13. struct dma_chan;
  14. #ifdef CONFIG_PXA_DMA
  15. bool pxad_filter_fn(struct dma_chan *chan, void *param);
  16. #else
  17. static inline bool pxad_filter_fn(struct dma_chan *chan, void *param)
  18. {
  19. return false;
  20. }
  21. #endif
  22. #endif /* _PXA_DMA_H_ */