/* * drivers/net/ethernet/nxp/lpc_eth.c * * Author: Kevin Wells <kevin.wells@nxp.com> * * Copyright (C) 2010 NXP Semiconductors * Copyright (C) 2012 Roland Stigge <stigge@antcom.de> * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. */#define pr_fmt(fmt) KBUILD_MODNAME": " fmt#include <linux/init.h>#include <linux/module.h>#include <linux/kernel.h>#include <linux/sched.h>#include <linux/slab.h>#include <linux/delay.h>#include <linux/interrupt.h>#include <linux/errno.h>#include <linux/ioport.h>#include <linux/crc32.h>#include <linux/platform_device.h>#include <linux/spinlock.h>#include <linux/ethtool.h>#include <linux/mii.h>#include <linux/clk.h>#include <linux/workqueue.h>#include <linux/netdevice.h>#include <linux/etherdevice.h>#include <linux/skbuff.h>#include <linux/phy.h>#include <linux/dma-mapping.h>#include <linux/of.h>#include <linux/of_net.h>#include <linux/types.h>#include <linux/delay.h>#include <linux/io.h>#include <mach/board.h>#include <mach/platform.h>#include <mach/hardware.h>#define MODNAME"lpc-eth"#define DRV_VERSION"1.00"#define PHYDEF_ADDR 0x00#define ENET_MAXF_SIZE 1536#define ENET_RX_DESC 48#define ENET_TX_DESC 16