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

// SPDX-License-Identifier: GPL-2.0-only
/*******************************************************************************
  This is the driver for the GMAC on-chip Ethernet controller for ST SoCs.
  DWC Ether MAC 10/100/1000 Universal version 3.41a  has been used for
  developing this code.

  This only implements the mac core functions for this chip.

  Copyright (C) 2007-2009  STMicroelectronics Ltd


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

#include <linux/crc32.h>
#include <linux/slab.h>
#include <linux/ethtool.h>
#include <linux/io.h>
#include "stmmac.h"
#include "stmmac_pcs.h"
#include "dwmac1000.h"

static void dwmac1000_core_init(struct mac_device_info *hw,
				struct net_device *dev)
{}

static int dwmac1000_rx_ipc_enable(struct mac_device_info *hw)
{}

static void dwmac1000_dump_regs(struct mac_device_info *hw, u32 *reg_space)
{}

static void dwmac1000_set_umac_addr(struct mac_device_info *hw,
				    const unsigned char *addr,
				    unsigned int reg_n)
{}

static void dwmac1000_get_umac_addr(struct mac_device_info *hw,
				    unsigned char *addr,
				    unsigned int reg_n)
{}

static void dwmac1000_set_mchash(void __iomem *ioaddr, u32 *mcfilterbits,
				 int mcbitslog2)
{}

static void dwmac1000_set_filter(struct mac_device_info *hw,
				 struct net_device *dev)
{}


static void dwmac1000_flow_ctrl(struct mac_device_info *hw, unsigned int duplex,
				unsigned int fc, unsigned int pause_time,
				u32 tx_cnt)
{}

static void dwmac1000_pmt(struct mac_device_info *hw, unsigned long mode)
{}

/* RGMII or SMII interface */
static void dwmac1000_rgsmii(void __iomem *ioaddr, struct stmmac_extra_stats *x)
{}

static int dwmac1000_irq_status(struct mac_device_info *hw,
				struct stmmac_extra_stats *x)
{}

static void dwmac1000_set_eee_mode(struct mac_device_info *hw,
				   bool en_tx_lpi_clockgating)
{}

static void dwmac1000_reset_eee_mode(struct mac_device_info *hw)
{}

static void dwmac1000_set_eee_pls(struct mac_device_info *hw, int link)
{}

static void dwmac1000_set_eee_timer(struct mac_device_info *hw, int ls, int tw)
{}

static void dwmac1000_ctrl_ane(void __iomem *ioaddr, bool ane, bool srgmi_ral,
			       bool loopback)
{}

static void dwmac1000_get_adv_lp(void __iomem *ioaddr, struct rgmii_adv *adv)
{}

static void dwmac1000_debug(struct stmmac_priv *priv, void __iomem *ioaddr,
			    struct stmmac_extra_stats *x,
			    u32 rx_queues, u32 tx_queues)
{}

static void dwmac1000_set_mac_loopback(void __iomem *ioaddr, bool enable)
{}

const struct stmmac_ops dwmac1000_ops =;

int dwmac1000_setup(struct stmmac_priv *priv)
{}