linux/drivers/net/ethernet/altera/altera_msgdma.c

// SPDX-License-Identifier: GPL-2.0-only
/* Altera TSE SGDMA and MSGDMA Linux driver
 * Copyright (C) 2014 Altera Corporation. All rights reserved
 */

#include <linux/netdevice.h>
#include "altera_utils.h"
#include "altera_tse.h"
#include "altera_msgdmahw.h"
#include "altera_msgdma.h"

/* No initialization work to do for MSGDMA */
int msgdma_initialize(struct altera_tse_private *priv)
{}

void msgdma_uninitialize(struct altera_tse_private *priv)
{}

void msgdma_start_rxdma(struct altera_tse_private *priv)
{}

void msgdma_reset(struct altera_tse_private *priv)
{}

void msgdma_disable_rxirq(struct altera_tse_private *priv)
{}

void msgdma_enable_rxirq(struct altera_tse_private *priv)
{}

void msgdma_disable_txirq(struct altera_tse_private *priv)
{}

void msgdma_enable_txirq(struct altera_tse_private *priv)
{}

void msgdma_clear_rxirq(struct altera_tse_private *priv)
{}

void msgdma_clear_txirq(struct altera_tse_private *priv)
{}

/* return 0 to indicate transmit is pending */
int msgdma_tx_buffer(struct altera_tse_private *priv, struct tse_buffer *buffer)
{}

u32 msgdma_tx_completions(struct altera_tse_private *priv)
{}

/* Put buffer to the mSGDMA RX FIFO
 */
void msgdma_add_rx_desc(struct altera_tse_private *priv,
			struct tse_buffer *rxbuffer)
{}

/* status is returned on upper 16 bits,
 * length is returned in lower 16 bits
 */
u32 msgdma_rx_status(struct altera_tse_private *priv)
{}