18c2ecf20Sopenharmony_ci/* SPDX-License-Identifier: GPL-2.0-only */
28c2ecf20Sopenharmony_ci/* Altera TSE SGDMA and MSGDMA Linux driver
38c2ecf20Sopenharmony_ci * Copyright (C) 2014 Altera Corporation. All rights reserved
48c2ecf20Sopenharmony_ci */
58c2ecf20Sopenharmony_ci
68c2ecf20Sopenharmony_ci#ifndef __ALTERA_MSGDMA_H__
78c2ecf20Sopenharmony_ci#define __ALTERA_MSGDMA_H__
88c2ecf20Sopenharmony_ci
98c2ecf20Sopenharmony_civoid msgdma_reset(struct altera_tse_private *);
108c2ecf20Sopenharmony_civoid msgdma_enable_txirq(struct altera_tse_private *);
118c2ecf20Sopenharmony_civoid msgdma_enable_rxirq(struct altera_tse_private *);
128c2ecf20Sopenharmony_civoid msgdma_disable_rxirq(struct altera_tse_private *);
138c2ecf20Sopenharmony_civoid msgdma_disable_txirq(struct altera_tse_private *);
148c2ecf20Sopenharmony_civoid msgdma_clear_rxirq(struct altera_tse_private *);
158c2ecf20Sopenharmony_civoid msgdma_clear_txirq(struct altera_tse_private *);
168c2ecf20Sopenharmony_ciu32 msgdma_tx_completions(struct altera_tse_private *);
178c2ecf20Sopenharmony_civoid msgdma_add_rx_desc(struct altera_tse_private *, struct tse_buffer *);
188c2ecf20Sopenharmony_ciint msgdma_tx_buffer(struct altera_tse_private *, struct tse_buffer *);
198c2ecf20Sopenharmony_ciu32 msgdma_rx_status(struct altera_tse_private *);
208c2ecf20Sopenharmony_ciint msgdma_initialize(struct altera_tse_private *);
218c2ecf20Sopenharmony_civoid msgdma_uninitialize(struct altera_tse_private *);
228c2ecf20Sopenharmony_civoid msgdma_start_rxdma(struct altera_tse_private *);
238c2ecf20Sopenharmony_ci
248c2ecf20Sopenharmony_ci#endif /*  __ALTERA_MSGDMA_H__ */
25