#include <linux/stmmac.h>
#include "common.h"
#include "descs_com.h"
static int ndesc_get_tx_status(struct stmmac_extra_stats *x,
struct dma_desc *p, void __iomem *ioaddr)
{ … }
static int ndesc_get_tx_len(struct dma_desc *p)
{ … }
static int ndesc_get_rx_status(struct stmmac_extra_stats *x,
struct dma_desc *p)
{ … }
static void ndesc_init_rx_desc(struct dma_desc *p, int disable_rx_ic, int mode,
int end, int bfsize)
{ … }
static void ndesc_init_tx_desc(struct dma_desc *p, int mode, int end)
{ … }
static int ndesc_get_tx_owner(struct dma_desc *p)
{ … }
static void ndesc_set_tx_owner(struct dma_desc *p)
{ … }
static void ndesc_set_rx_owner(struct dma_desc *p, int disable_rx_ic)
{ … }
static int ndesc_get_tx_ls(struct dma_desc *p)
{ … }
static void ndesc_release_tx_desc(struct dma_desc *p, int mode)
{ … }
static void ndesc_prepare_tx_desc(struct dma_desc *p, int is_fs, int len,
bool csum_flag, int mode, bool tx_own,
bool ls, unsigned int tot_pkt_len)
{ … }
static void ndesc_set_tx_ic(struct dma_desc *p)
{ … }
static int ndesc_get_rx_frame_len(struct dma_desc *p, int rx_coe_type)
{ … }
static void ndesc_enable_tx_timestamp(struct dma_desc *p)
{ … }
static int ndesc_get_tx_timestamp_status(struct dma_desc *p)
{ … }
static void ndesc_get_timestamp(void *desc, u32 ats, u64 *ts)
{ … }
static int ndesc_get_rx_timestamp_status(void *desc, void *next_desc, u32 ats)
{ … }
static void ndesc_display_ring(void *head, unsigned int size, bool rx,
dma_addr_t dma_rx_phy, unsigned int desc_size)
{ … }
static void ndesc_set_addr(struct dma_desc *p, dma_addr_t addr)
{ … }
static void ndesc_clear(struct dma_desc *p)
{ … }
const struct stmmac_desc_ops ndesc_ops = …;