dma.h 643 B

1234567891011121314151617181920212223242526
  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. struct mxs_dma_data {
  11. int chan_irq;
  12. };
  13. static inline int mxs_dma_is_apbh(struct dma_chan *chan)
  14. {
  15. return !strcmp(dev_name(chan->device->dev), "mxs-dma-apbh");
  16. }
  17. static inline int mxs_dma_is_apbx(struct dma_chan *chan)
  18. {
  19. return !strcmp(dev_name(chan->device->dev), "mxs-dma-apbx");
  20. }
  21. #endif /* __MACH_MXS_DMA_H__ */