xref: /linux/drivers/net/ethernet/altera/altera_msgdma.h (revision 75bf465f0bc33e9b776a46d6a1b9b990f5fb7c37)
1*9952f691SThomas Gleixner /* SPDX-License-Identifier: GPL-2.0-only */
294fb0ef4SVince Bridgers /* Altera TSE SGDMA and MSGDMA Linux driver
394fb0ef4SVince Bridgers  * Copyright (C) 2014 Altera Corporation. All rights reserved
494fb0ef4SVince Bridgers  */
594fb0ef4SVince Bridgers 
694fb0ef4SVince Bridgers #ifndef __ALTERA_MSGDMA_H__
794fb0ef4SVince Bridgers #define __ALTERA_MSGDMA_H__
894fb0ef4SVince Bridgers 
994fb0ef4SVince Bridgers void msgdma_reset(struct altera_tse_private *);
1094fb0ef4SVince Bridgers void msgdma_enable_txirq(struct altera_tse_private *);
1194fb0ef4SVince Bridgers void msgdma_enable_rxirq(struct altera_tse_private *);
1294fb0ef4SVince Bridgers void msgdma_disable_rxirq(struct altera_tse_private *);
1394fb0ef4SVince Bridgers void msgdma_disable_txirq(struct altera_tse_private *);
1494fb0ef4SVince Bridgers void msgdma_clear_rxirq(struct altera_tse_private *);
1594fb0ef4SVince Bridgers void msgdma_clear_txirq(struct altera_tse_private *);
1694fb0ef4SVince Bridgers u32 msgdma_tx_completions(struct altera_tse_private *);
1737c0ffaaSVince Bridgers void msgdma_add_rx_desc(struct altera_tse_private *, struct tse_buffer *);
1894fb0ef4SVince Bridgers int msgdma_tx_buffer(struct altera_tse_private *, struct tse_buffer *);
1994fb0ef4SVince Bridgers u32 msgdma_rx_status(struct altera_tse_private *);
2094fb0ef4SVince Bridgers int msgdma_initialize(struct altera_tse_private *);
2194fb0ef4SVince Bridgers void msgdma_uninitialize(struct altera_tse_private *);
2237c0ffaaSVince Bridgers void msgdma_start_rxdma(struct altera_tse_private *);
2394fb0ef4SVince Bridgers 
2494fb0ef4SVince Bridgers #endif /*  __ALTERA_MSGDMA_H__ */
25