linux/drivers/net/ethernet/stmicro/stmmac/descs_com.h

/* SPDX-License-Identifier: GPL-2.0-only */
/*******************************************************************************
  Header File to describe Normal/enhanced descriptor functions used for RING
  and CHAINED modes.

  Copyright(C) 2011  STMicroelectronics Ltd

  It defines all the functions used to handle the normal/enhanced
  descriptors in case of the DMA is configured to work in chained or
  in ring mode.


  Author: Giuseppe Cavallaro <[email protected]>
*******************************************************************************/

#ifndef __DESC_COM_H__
#define __DESC_COM_H__

/* Specific functions used for Ring mode */

/* Enhanced descriptors */
static inline void ehn_desc_rx_set_on_ring(struct dma_desc *p, int end,
					   int bfsize)
{}

static inline void enh_desc_end_tx_desc_on_ring(struct dma_desc *p, int end)
{}

static inline void enh_set_tx_desc_len_on_ring(struct dma_desc *p, int len)
{}

/* Normal descriptors */
static inline void ndesc_rx_set_on_ring(struct dma_desc *p, int end, int bfsize)
{}

static inline void ndesc_end_tx_desc_on_ring(struct dma_desc *p, int end)
{}

static inline void norm_set_tx_desc_len_on_ring(struct dma_desc *p, int len)
{}

/* Specific functions used for Chain mode */

/* Enhanced descriptors */
static inline void ehn_desc_rx_set_on_chain(struct dma_desc *p)
{}

static inline void enh_desc_end_tx_desc_on_chain(struct dma_desc *p)
{}

static inline void enh_set_tx_desc_len_on_chain(struct dma_desc *p, int len)
{}

/* Normal descriptors */
static inline void ndesc_rx_set_on_chain(struct dma_desc *p, int end)
{}

static inline void ndesc_tx_set_on_chain(struct dma_desc *p)
{}

static inline void norm_set_tx_desc_len_on_chain(struct dma_desc *p, int len)
{}
#endif /* __DESC_COM_H__ */