edma.h 807 B

123456789101112131415161718192021222324252627282930
  1. /*
  2. * TI EDMA DMA engine driver
  3. *
  4. * Copyright 2012 Texas Instruments
  5. *
  6. * This program is free software; you can redistribute it and/or
  7. * modify it under the terms of the GNU General Public License as
  8. * published by the Free Software Foundation version 2.
  9. *
  10. * This program is distributed "as is" WITHOUT ANY WARRANTY of any
  11. * kind, whether express or implied; without even the implied warranty
  12. * of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  13. * GNU General Public License for more details.
  14. */
  15. #ifndef __LINUX_EDMA_H
  16. #define __LINUX_EDMA_H
  17. struct dma_chan;
  18. #if defined(CONFIG_TI_EDMA) || defined(CONFIG_TI_EDMA_MODULE)
  19. bool edma_filter_fn(struct dma_chan *, void *);
  20. #else
  21. static inline bool edma_filter_fn(struct dma_chan *chan, void *param)
  22. {
  23. return false;
  24. }
  25. #endif
  26. #endif