1f64f8808SVince Bridgers /* Altera TSE SGDMA and MSGDMA Linux driver 2f64f8808SVince Bridgers * Copyright (C) 2014 Altera Corporation. All rights reserved 3f64f8808SVince Bridgers * 4f64f8808SVince Bridgers * This program is free software; you can redistribute it and/or modify it 5f64f8808SVince Bridgers * under the terms and conditions of the GNU General Public License, 6f64f8808SVince Bridgers * version 2, as published by the Free Software Foundation. 7f64f8808SVince Bridgers * 8f64f8808SVince Bridgers * This program is distributed in the hope it will be useful, but WITHOUT 9f64f8808SVince Bridgers * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 10f64f8808SVince Bridgers * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for 11f64f8808SVince Bridgers * more details. 12f64f8808SVince Bridgers * 13f64f8808SVince Bridgers * You should have received a copy of the GNU General Public License along with 14f64f8808SVince Bridgers * this program. If not, see <http://www.gnu.org/licenses/>. 15f64f8808SVince Bridgers */ 16f64f8808SVince Bridgers 17f64f8808SVince Bridgers #ifndef __ALTERA_SGDMA_H__ 18f64f8808SVince Bridgers #define __ALTERA_SGDMA_H__ 19f64f8808SVince Bridgers 20f64f8808SVince Bridgers void sgdma_reset(struct altera_tse_private *); 21f64f8808SVince Bridgers void sgdma_enable_txirq(struct altera_tse_private *); 22f64f8808SVince Bridgers void sgdma_enable_rxirq(struct altera_tse_private *); 23f64f8808SVince Bridgers void sgdma_disable_rxirq(struct altera_tse_private *); 24f64f8808SVince Bridgers void sgdma_disable_txirq(struct altera_tse_private *); 25f64f8808SVince Bridgers void sgdma_clear_rxirq(struct altera_tse_private *); 26f64f8808SVince Bridgers void sgdma_clear_txirq(struct altera_tse_private *); 27f64f8808SVince Bridgers int sgdma_tx_buffer(struct altera_tse_private *priv, struct tse_buffer *); 28f64f8808SVince Bridgers u32 sgdma_tx_completions(struct altera_tse_private *); 29f64f8808SVince Bridgers int sgdma_add_rx_desc(struct altera_tse_private *priv, struct tse_buffer *); 30f64f8808SVince Bridgers void sgdma_status(struct altera_tse_private *); 31f64f8808SVince Bridgers u32 sgdma_rx_status(struct altera_tse_private *); 32f64f8808SVince Bridgers int sgdma_initialize(struct altera_tse_private *); 33f64f8808SVince Bridgers void sgdma_uninitialize(struct altera_tse_private *); 34f64f8808SVince Bridgers 35f64f8808SVince Bridgers #endif /* __ALTERA_SGDMA_H__ */ 36