Back to home page

OSCL-LXR

 
 

    


0001 /* SPDX-License-Identifier: GPL-2.0-only */
0002 /* Altera TSE SGDMA and MSGDMA Linux driver
0003  * Copyright (C) 2014 Altera Corporation. All rights reserved
0004  */
0005 
0006 #ifndef __ALTERA_SGDMA_H__
0007 #define __ALTERA_SGDMA_H__
0008 
0009 void sgdma_reset(struct altera_tse_private *);
0010 void sgdma_enable_txirq(struct altera_tse_private *);
0011 void sgdma_enable_rxirq(struct altera_tse_private *);
0012 void sgdma_disable_rxirq(struct altera_tse_private *);
0013 void sgdma_disable_txirq(struct altera_tse_private *);
0014 void sgdma_clear_rxirq(struct altera_tse_private *);
0015 void sgdma_clear_txirq(struct altera_tse_private *);
0016 int sgdma_tx_buffer(struct altera_tse_private *priv, struct tse_buffer *);
0017 u32 sgdma_tx_completions(struct altera_tse_private *);
0018 void sgdma_add_rx_desc(struct altera_tse_private *priv, struct tse_buffer *);
0019 void sgdma_status(struct altera_tse_private *);
0020 u32 sgdma_rx_status(struct altera_tse_private *);
0021 int sgdma_initialize(struct altera_tse_private *);
0022 void sgdma_uninitialize(struct altera_tse_private *);
0023 void sgdma_start_rxdma(struct altera_tse_private *);
0024 
0025 #endif /*  __ALTERA_SGDMA_H__ */