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

// SPDX-License-Identifier: (GPL-2.0 OR MIT)
/*
 * Copyright (c) 2018 Synopsys, Inc. and/or its affiliates.
 * stmmac XGMAC support.
 */

#include <linux/stmmac.h>
#include "common.h"
#include "dwxgmac2.h"

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

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

static int dwxgmac2_get_tx_len(struct dma_desc *p)
{}

static int dwxgmac2_get_tx_owner(struct dma_desc *p)
{}

static void dwxgmac2_set_tx_owner(struct dma_desc *p)
{}

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

static int dwxgmac2_get_tx_ls(struct dma_desc *p)
{}

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

static void dwxgmac2_enable_tx_timestamp(struct dma_desc *p)
{}

static int dwxgmac2_get_tx_timestamp_status(struct dma_desc *p)
{}

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

static int dwxgmac2_rx_check_timestamp(void *desc)
{}

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

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

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

static void dwxgmac2_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 dwxgmac2_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 dwxgmac2_release_tx_desc(struct dma_desc *p, int mode)
{}

static void dwxgmac2_set_tx_ic(struct dma_desc *p)
{}

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

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

static void dwxgmac2_clear(struct dma_desc *p)
{}

static int dwxgmac2_get_rx_hash(struct dma_desc *p, u32 *hash,
				enum pkt_hash_types *type)
{}

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

static void dwxgmac2_set_sec_addr(struct dma_desc *p, dma_addr_t addr, bool is_valid)
{}

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

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

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

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

const struct stmmac_desc_ops dwxgmac210_desc_ops =;