linux/drivers/net/ethernet/stmicro/stmmac/dwmac4_descs.c

// SPDX-License-Identifier: GPL-2.0-only
/*
 * This contains the functions to handle the descriptors for DesignWare databook
 * 4.xx.
 *
 * Copyright (C) 2015  STMicroelectronics Ltd
 *
 * Author: Alexandre Torgue <[email protected]>
 */

#include <linux/stmmac.h>
#include "common.h"
#include "dwmac4.h"
#include "dwmac4_descs.h"

static int dwmac4_wrback_get_tx_status(struct stmmac_extra_stats *x,
				       struct dma_desc *p,
				       void __iomem *ioaddr)
{}

static int dwmac4_wrback_get_rx_status(struct stmmac_extra_stats *x,
				       struct dma_desc *p)
{}

static int dwmac4_rd_get_tx_len(struct dma_desc *p)
{}

static int dwmac4_get_tx_owner(struct dma_desc *p)
{}

static void dwmac4_set_tx_owner(struct dma_desc *p)
{}

static void dwmac4_set_rx_owner(struct dma_desc *p, int disable_rx_ic)
{}

static int dwmac4_get_tx_ls(struct dma_desc *p)
{}

static u16 dwmac4_wrback_get_rx_vlan_tci(struct dma_desc *p)
{}

static bool dwmac4_wrback_get_rx_vlan_valid(struct dma_desc *p)
{}

static int dwmac4_wrback_get_rx_frame_len(struct dma_desc *p, int rx_coe)
{}

static void dwmac4_rd_enable_tx_timestamp(struct dma_desc *p)
{}

static int dwmac4_wrback_get_tx_timestamp_status(struct dma_desc *p)
{}

static inline void dwmac4_get_timestamp(void *desc, u32 ats, u64 *ts)
{}

static int dwmac4_rx_check_timestamp(void *desc)
{}

static int dwmac4_wrback_get_rx_timestamp_status(void *desc, void *next_desc,
						 u32 ats)
{}

static void dwmac4_rd_init_rx_desc(struct dma_desc *p, int disable_rx_ic,
				   int mode, int end, int bfsize)
{}

static void dwmac4_rd_init_tx_desc(struct dma_desc *p, int mode, int end)
{}

static void dwmac4_rd_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 dwmac4_rd_prepare_tso_tx_desc(struct dma_desc *p, int is_fs,
					  int len1, int len2, bool tx_own,
					  bool ls, unsigned int tcphdrlen,
					  unsigned int tcppayloadlen)
{}

static void dwmac4_release_tx_desc(struct dma_desc *p, int mode)
{}

static void dwmac4_rd_set_tx_ic(struct dma_desc *p)
{}

static void dwmac4_display_ring(void *head, unsigned int size, bool rx,
				dma_addr_t dma_rx_phy, unsigned int desc_size)
{}

static void dwmac4_set_mss_ctxt(struct dma_desc *p, unsigned int mss)
{}

static void dwmac4_set_addr(struct dma_desc *p, dma_addr_t addr)
{}

static void dwmac4_clear(struct dma_desc *p)
{}

static void dwmac4_set_sarc(struct dma_desc *p, u32 sarc_type)
{}

static int set_16kib_bfsize(int mtu)
{}

static void dwmac4_set_vlan_tag(struct dma_desc *p, u16 tag, u16 inner_tag,
				u32 inner_type)
{}

static void dwmac4_set_vlan(struct dma_desc *p, u32 type)
{}

static void dwmac4_get_rx_header_len(struct dma_desc *p, unsigned int *len)
{}

static void dwmac4_set_sec_addr(struct dma_desc *p, dma_addr_t addr, bool buf2_valid)
{}

static void dwmac4_set_tbs(struct dma_edesc *p, u32 sec, u32 nsec)
{}

const struct stmmac_desc_ops dwmac4_desc_ops =;

const struct stmmac_mode_ops dwmac4_ring_mode_ops =;