#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)
{ … }
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)
{ … }