async_tx.h 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. /*
  2. * Copyright (C) 2008-2009 DENX Software Engineering.
  3. *
  4. * Author: Yuri Tikhonov <yur@emcraft.com>
  5. *
  6. * This program is free software; you can redistribute it and/or modify it
  7. * under the terms of the GNU General Public License as published by the Free
  8. * Software Foundation; either version 2 of the License, or (at your option)
  9. * any later version.
  10. *
  11. * This program is distributed in the hope that it will be useful, but WITHOUT
  12. * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  13. * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
  14. * more details.
  15. *
  16. * You should have received a copy of the GNU General Public License along with
  17. * this program; if not, write to the Free Software Foundation, Inc., 59
  18. * Temple Place - Suite 330, Boston, MA 02111-1307, USA.
  19. *
  20. * The full GNU General Public License is included in this distribution in the
  21. * file called COPYING.
  22. */
  23. #ifndef _ASM_POWERPC_ASYNC_TX_H_
  24. #define _ASM_POWERPC_ASYNC_TX_H_
  25. #if defined(CONFIG_440SPe) || defined(CONFIG_440SP)
  26. extern struct dma_chan *
  27. ppc440spe_async_tx_find_best_channel(enum dma_transaction_type cap,
  28. struct page **dst_lst, int dst_cnt, struct page **src_lst,
  29. int src_cnt, size_t src_sz);
  30. #define async_tx_find_channel(dep, cap, dst_lst, dst_cnt, src_lst, \
  31. src_cnt, src_sz) \
  32. ppc440spe_async_tx_find_best_channel(cap, dst_lst, dst_cnt, src_lst, \
  33. src_cnt, src_sz)
  34. #else
  35. #define async_tx_find_channel(dep, type, dst, dst_count, src, src_count, len) \
  36. __async_tx_find_channel(dep, type)
  37. struct dma_chan *
  38. __async_tx_find_channel(struct async_submit_ctl *submit,
  39. enum dma_transaction_type tx_type);
  40. #endif
  41. #endif