pxa-dma.h 837 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. /* SPDX-License-Identifier: GPL-2.0 */
  2. #ifndef _PXA_DMA_H_
  3. #define _PXA_DMA_H_
  4. enum pxad_chan_prio {
  5. PXAD_PRIO_HIGHEST = 0,
  6. PXAD_PRIO_NORMAL,
  7. PXAD_PRIO_LOW,
  8. PXAD_PRIO_LOWEST,
  9. };
  10. /**
  11. * struct pxad_param - dma channel request parameters
  12. * @drcmr: requestor line number
  13. * @prio: minimal mandatory priority of the channel
  14. *
  15. * If a requested channel is granted, its priority will be at least @prio,
  16. * ie. if PXAD_PRIO_LOW is required, the requested channel will be either
  17. * PXAD_PRIO_LOW, PXAD_PRIO_NORMAL or PXAD_PRIO_HIGHEST.
  18. */
  19. struct pxad_param {
  20. unsigned int drcmr;
  21. enum pxad_chan_prio prio;
  22. };
  23. struct dma_chan;
  24. #ifdef CONFIG_PXA_DMA
  25. bool pxad_filter_fn(struct dma_chan *chan, void *param);
  26. #else
  27. static inline bool pxad_filter_fn(struct dma_chan *chan, void *param)
  28. {
  29. return false;
  30. }
  31. #endif
  32. #endif /* _PXA_DMA_H_ */