async_tx.h 908 B

12345678910111213141516171819202122232425262728293031
  1. /* SPDX-License-Identifier: GPL-2.0-or-later */
  2. /*
  3. * Copyright (C) 2008-2009 DENX Software Engineering.
  4. *
  5. * Author: Yuri Tikhonov <[email protected]>
  6. */
  7. #ifndef _ASM_POWERPC_ASYNC_TX_H_
  8. #define _ASM_POWERPC_ASYNC_TX_H_
  9. #if defined(CONFIG_440SPe) || defined(CONFIG_440SP)
  10. extern struct dma_chan *
  11. ppc440spe_async_tx_find_best_channel(enum dma_transaction_type cap,
  12. struct page **dst_lst, int dst_cnt, struct page **src_lst,
  13. int src_cnt, size_t src_sz);
  14. #define async_tx_find_channel(dep, cap, dst_lst, dst_cnt, src_lst, \
  15. src_cnt, src_sz) \
  16. ppc440spe_async_tx_find_best_channel(cap, dst_lst, dst_cnt, src_lst, \
  17. src_cnt, src_sz)
  18. #else
  19. #define async_tx_find_channel(dep, type, dst, dst_count, src, src_count, len) \
  20. __async_tx_find_channel(dep, type)
  21. struct dma_chan *
  22. __async_tx_find_channel(struct async_submit_ctl *submit,
  23. enum dma_transaction_type tx_type);
  24. #endif
  25. #endif