Merge tag 'net-6.1-rc7' of git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net
[sfrench/cifs-2.6.git] / drivers / net / ethernet / altera / altera_sgdma.h
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
6 #ifndef __ALTERA_SGDMA_H__
7 #define __ALTERA_SGDMA_H__
8
9 void sgdma_reset(struct altera_tse_private *);
10 void sgdma_enable_txirq(struct altera_tse_private *);
11 void sgdma_enable_rxirq(struct altera_tse_private *);
12 void sgdma_disable_rxirq(struct altera_tse_private *);
13 void sgdma_disable_txirq(struct altera_tse_private *);
14 void sgdma_clear_rxirq(struct altera_tse_private *);
15 void sgdma_clear_txirq(struct altera_tse_private *);
16 int sgdma_tx_buffer(struct altera_tse_private *priv, struct tse_buffer *);
17 u32 sgdma_tx_completions(struct altera_tse_private *);
18 void sgdma_add_rx_desc(struct altera_tse_private *priv, struct tse_buffer *);
19 void sgdma_status(struct altera_tse_private *);
20 u32 sgdma_rx_status(struct altera_tse_private *);
21 int sgdma_initialize(struct altera_tse_private *);
22 void sgdma_uninitialize(struct altera_tse_private *);
23 void sgdma_start_rxdma(struct altera_tse_private *);
24
25 #endif /*  __ALTERA_SGDMA_H__ */