altera_sgdma.h 1.1 KB

12345678910111213141516171819202122232425
  1. /* SPDX-License-Identifier: GPL-2.0-only */
  2. /* Altera TSE SGDMA and MSGDMA Linux driver
  3. * Copyright (C) 2014 Altera Corporation. All rights reserved
  4. */
  5. #ifndef __ALTERA_SGDMA_H__
  6. #define __ALTERA_SGDMA_H__
  7. void sgdma_reset(struct altera_tse_private *);
  8. void sgdma_enable_txirq(struct altera_tse_private *);
  9. void sgdma_enable_rxirq(struct altera_tse_private *);
  10. void sgdma_disable_rxirq(struct altera_tse_private *);
  11. void sgdma_disable_txirq(struct altera_tse_private *);
  12. void sgdma_clear_rxirq(struct altera_tse_private *);
  13. void sgdma_clear_txirq(struct altera_tse_private *);
  14. int sgdma_tx_buffer(struct altera_tse_private *priv, struct tse_buffer *);
  15. u32 sgdma_tx_completions(struct altera_tse_private *);
  16. void sgdma_add_rx_desc(struct altera_tse_private *priv, struct tse_buffer *);
  17. void sgdma_status(struct altera_tse_private *);
  18. u32 sgdma_rx_status(struct altera_tse_private *);
  19. int sgdma_initialize(struct altera_tse_private *);
  20. void sgdma_uninitialize(struct altera_tse_private *);
  21. void sgdma_start_rxdma(struct altera_tse_private *);
  22. #endif /* __ALTERA_SGDMA_H__ */