#define pr_fmt(fmt) …
#include <linux/bitops.h>
#include <linux/export.h>
#include <linux/io.h>
#include <linux/netdevice.h>
#include <linux/phy.h>
#include "sxgbe_common.h"
#include "sxgbe_dma.h"
#include "sxgbe_desc.h"
static void sxgbe_init_tx_desc(struct sxgbe_tx_norm_desc *p)
{ … }
static void sxgbe_tx_desc_enable_tse(struct sxgbe_tx_norm_desc *p, u8 is_tse,
u32 total_hdr_len, u32 tcp_hdr_len,
u32 tcp_payload_len)
{ … }
static void sxgbe_prepare_tx_desc(struct sxgbe_tx_norm_desc *p, u8 is_fd,
int buf1_len, int pkt_len, int cksum)
{ … }
static void sxgbe_tx_vlanctl_desc(struct sxgbe_tx_norm_desc *p, int vlan_ctl)
{ … }
static void sxgbe_set_tx_owner(struct sxgbe_tx_norm_desc *p)
{ … }
static int sxgbe_get_tx_owner(struct sxgbe_tx_norm_desc *p)
{ … }
static void sxgbe_close_tx_desc(struct sxgbe_tx_norm_desc *p)
{ … }
static void sxgbe_release_tx_desc(struct sxgbe_tx_norm_desc *p)
{ … }
static void sxgbe_clear_tx_ic(struct sxgbe_tx_norm_desc *p)
{ … }
static int sxgbe_get_tx_ls(struct sxgbe_tx_norm_desc *p)
{ … }
static int sxgbe_get_tx_len(struct sxgbe_tx_norm_desc *p)
{ … }
static void sxgbe_tx_enable_tstamp(struct sxgbe_tx_norm_desc *p)
{ … }
static int sxgbe_get_tx_timestamp_status(struct sxgbe_tx_norm_desc *p)
{ … }
static void sxgbe_tx_ctxt_desc_set_ctxt(struct sxgbe_tx_ctxt_desc *p)
{ … }
static void sxgbe_tx_ctxt_desc_set_owner(struct sxgbe_tx_ctxt_desc *p)
{ … }
static int sxgbe_tx_ctxt_desc_get_owner(struct sxgbe_tx_ctxt_desc *p)
{ … }
static void sxgbe_tx_ctxt_desc_set_mss(struct sxgbe_tx_ctxt_desc *p, u16 mss)
{ … }
static int sxgbe_tx_ctxt_desc_get_mss(struct sxgbe_tx_ctxt_desc *p)
{ … }
static void sxgbe_tx_ctxt_desc_set_tcmssv(struct sxgbe_tx_ctxt_desc *p)
{ … }
static void sxgbe_tx_ctxt_desc_reset_ostc(struct sxgbe_tx_ctxt_desc *p)
{ … }
static void sxgbe_tx_ctxt_desc_set_ivlantag(struct sxgbe_tx_ctxt_desc *p,
int is_ivlanvalid, int ivlan_tag,
int ivlan_ctl)
{ … }
static int sxgbe_tx_ctxt_desc_get_ivlantag(struct sxgbe_tx_ctxt_desc *p)
{ … }
static void sxgbe_tx_ctxt_desc_set_vlantag(struct sxgbe_tx_ctxt_desc *p,
int is_vlanvalid, int vlan_tag)
{ … }
static int sxgbe_tx_ctxt_desc_get_vlantag(struct sxgbe_tx_ctxt_desc *p)
{ … }
static void sxgbe_tx_ctxt_desc_set_tstamp(struct sxgbe_tx_ctxt_desc *p,
u8 ostc_enable, u64 tstamp)
{ … }
static void sxgbe_tx_ctxt_desc_close(struct sxgbe_tx_ctxt_desc *p)
{ … }
static int sxgbe_tx_ctxt_desc_get_cde(struct sxgbe_tx_ctxt_desc *p)
{ … }
static void sxgbe_init_rx_desc(struct sxgbe_rx_norm_desc *p, int disable_rx_ic,
int mode, int end)
{ … }
static int sxgbe_get_rx_owner(struct sxgbe_rx_norm_desc *p)
{ … }
static void sxgbe_set_rx_owner(struct sxgbe_rx_norm_desc *p)
{ … }
static void sxgbe_set_rx_int_on_com(struct sxgbe_rx_norm_desc *p)
{ … }
static int sxgbe_get_rx_frame_len(struct sxgbe_rx_norm_desc *p)
{ … }
static int sxgbe_get_rx_fd_status(struct sxgbe_rx_norm_desc *p)
{ … }
static int sxgbe_get_rx_ld_status(struct sxgbe_rx_norm_desc *p)
{ … }
static int sxgbe_rx_wbstatus(struct sxgbe_rx_norm_desc *p,
struct sxgbe_extra_stats *x, int *checksum)
{ … }
static int sxgbe_get_rx_ctxt_owner(struct sxgbe_rx_ctxt_desc *p)
{ … }
static void sxgbe_set_ctxt_rx_owner(struct sxgbe_rx_ctxt_desc *p)
{ … }
static void sxgbe_rx_ctxt_wbstatus(struct sxgbe_rx_ctxt_desc *p,
struct sxgbe_extra_stats *x)
{ … }
static int sxgbe_get_rx_ctxt_tstamp_status(struct sxgbe_rx_ctxt_desc *p)
{ … }
static u64 sxgbe_get_rx_timestamp(struct sxgbe_rx_ctxt_desc *p)
{ … }
static const struct sxgbe_desc_ops desc_ops = …;
const struct sxgbe_desc_ops *sxgbe_get_desc_ops(void)
{ … }