/include/linux/fsl/mxs-dma.h

https://github.com/airy09/android_kernel_sony_apq8064 · C Header · 28 lines · 15 code · 6 blank · 7 comment · 0 complexity · 18212ddb53cb7bca7647ed1fc1a2a021 MD5 · raw file

  1. /*
  2. * Copyright 2011 Freescale Semiconductor, Inc. All Rights Reserved.
  3. *
  4. * This program is free software; you can redistribute it and/or modify
  5. * it under the terms of the GNU General Public License version 2 as
  6. * published by the Free Software Foundation.
  7. */
  8. #ifndef __MACH_MXS_DMA_H__
  9. #define __MACH_MXS_DMA_H__
  10. #include <linux/dmaengine.h>
  11. struct mxs_dma_data {
  12. int chan_irq;
  13. };
  14. static inline int mxs_dma_is_apbh(struct dma_chan *chan)
  15. {
  16. return !strcmp(dev_name(chan->device->dev), "mxs-dma-apbh");
  17. }
  18. static inline int mxs_dma_is_apbx(struct dma_chan *chan)
  19. {
  20. return !strcmp(dev_name(chan->device->dev), "mxs-dma-apbx");
  21. }
  22. #endif /* __MACH_MXS_DMA_H__ */