linux/drivers/net/ethernet/dnet.c

// SPDX-License-Identifier: GPL-2.0-only
/*
 * Dave DNET Ethernet Controller driver
 *
 * Copyright (C) 2008 Dave S.r.l. <www.dave.eu>
 * Copyright (C) 2009 Ilya Yanok, Emcraft Systems Ltd, <[email protected]>
 */
#include <linux/io.h>
#include <linux/module.h>
#include <linux/moduleparam.h>
#include <linux/kernel.h>
#include <linux/types.h>
#include <linux/slab.h>
#include <linux/delay.h>
#include <linux/interrupt.h>
#include <linux/netdevice.h>
#include <linux/etherdevice.h>
#include <linux/dma-mapping.h>
#include <linux/platform_device.h>
#include <linux/phy.h>

#include "dnet.h"

#undef DEBUG

/* function for reading internal MAC register */
static u16 dnet_readw_mac(struct dnet *bp, u16 reg)
{}

/* function for writing internal MAC register */
static void dnet_writew_mac(struct dnet *bp, u16 reg, u16 val)
{}

static void __dnet_set_hwaddr(struct dnet *bp)
{}

static void dnet_get_hwaddr(struct dnet *bp)
{}

static int dnet_mdio_read(struct mii_bus *bus, int mii_id, int regnum)
{}

static int dnet_mdio_write(struct mii_bus *bus, int mii_id, int regnum,
			   u16 value)
{}

static void dnet_handle_link_change(struct net_device *dev)
{}

static int dnet_mii_probe(struct net_device *dev)
{}

static int dnet_mii_init(struct dnet *bp)
{}

/* For Neptune board: LINK1000 as Link LED and TX as activity LED */
static int dnet_phy_marvell_fixup(struct phy_device *phydev)
{}

static void dnet_update_stats(struct dnet *bp)
{}

static int dnet_poll(struct napi_struct *napi, int budget)
{}

static irqreturn_t dnet_interrupt(int irq, void *dev_id)
{}

#ifdef DEBUG
static inline void dnet_print_skb(struct sk_buff *skb)
{
	int k;
	printk(KERN_DEBUG PFX "data:");
	for (k = 0; k < skb->len; k++)
		printk(" %02x", (unsigned int)skb->data[k]);
	printk("\n");
}
#else
#define dnet_print_skb(skb)
#endif

static netdev_tx_t dnet_start_xmit(struct sk_buff *skb, struct net_device *dev)
{}

static void dnet_reset_hw(struct dnet *bp)
{}

static void dnet_init_hw(struct dnet *bp)
{}

static int dnet_open(struct net_device *dev)
{}

static int dnet_close(struct net_device *dev)
{}

static inline void dnet_print_pretty_hwstats(struct dnet_stats *hwstat)
{}

static struct net_device_stats *dnet_get_stats(struct net_device *dev)
{}

static void dnet_get_drvinfo(struct net_device *dev,
			     struct ethtool_drvinfo *info)
{}

static const struct ethtool_ops dnet_ethtool_ops =;

static const struct net_device_ops dnet_netdev_ops =;

static int dnet_probe(struct platform_device *pdev)
{}

static void dnet_remove(struct platform_device *pdev)
{}

static struct platform_driver dnet_driver =;

module_platform_driver();

MODULE_LICENSE();
MODULE_DESCRIPTION();
MODULE_AUTHOR();