sa11x0-dma.h 572 B

123456789101112131415161718192021222324
  1. /*
  2. * SA11x0 DMA Engine support
  3. *
  4. * Copyright (C) 2012 Russell King
  5. *
  6. * This program is free software; you can redistribute it and/or modify
  7. * it under the terms of the GNU General Public License version 2 as
  8. * published by the Free Software Foundation.
  9. */
  10. #ifndef __LINUX_SA11X0_DMA_H
  11. #define __LINUX_SA11X0_DMA_H
  12. struct dma_chan;
  13. #if defined(CONFIG_DMA_SA11X0) || defined(CONFIG_DMA_SA11X0_MODULE)
  14. bool sa11x0_dma_filter_fn(struct dma_chan *, void *);
  15. #else
  16. static inline bool sa11x0_dma_filter_fn(struct dma_chan *c, void *d)
  17. {
  18. return false;
  19. }
  20. #endif
  21. #endif